julien-c HF staff commited on
Commit
f2fc21c
1 Parent(s): b118a0c

Migrate model card from transformers-repo

Browse files

Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755
Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/clue/albert_chinese_small/README.md

Files changed (1) hide show
  1. README.md +35 -0
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: zh
3
+ ---
4
+
5
+ ## albert_chinese_small
6
+
7
+ ### Overview
8
+
9
+ **Language model:** albert-small
10
+ **Model size:** 18.5M
11
+ **Language:** Chinese
12
+ **Training data:** [CLUECorpusSmall](https://github.com/CLUEbenchmark/CLUECorpus2020)
13
+ **Eval data:** [CLUE dataset](https://github.com/CLUEbenchmark/CLUE)
14
+
15
+ ### Results
16
+
17
+ For results on downstream tasks like text classification, please refer to [this repository](https://github.com/CLUEbenchmark/CLUE).
18
+
19
+ ### Usage
20
+
21
+ **NOTE:**Since sentencepiece is not used in `albert_chinese_small` model, you have to call **BertTokenizer** instead of AlbertTokenizer !!!
22
+
23
+ ```
24
+ import torch
25
+ from transformers import BertTokenizer, AlbertModel
26
+ tokenizer = BertTokenizer.from_pretrained("clue/albert_chinese_small")
27
+ albert = AlbertModel.from_pretrained("clue/albert_chinese_small")
28
+ ```
29
+
30
+ ### About CLUE benchmark
31
+
32
+ Organization of Language Understanding Evaluation benchmark for Chinese: tasks & datasets, baselines, pre-trained Chinese models, corpus and leaderboard.
33
+
34
+ Github: https://github.com/CLUEbenchmark
35
+ Website: https://www.cluebenchmarks.com/