Migrate model card from transformers-repo
Browse filesRead 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_tiny/README.md
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: zh
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
## albert_chinese_tiny
|
| 6 |
+
|
| 7 |
+
### Overview
|
| 8 |
+
|
| 9 |
+
**Language model:** albert-tiny
|
| 10 |
+
**Model size:** 16M
|
| 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_tiny` 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_tiny")
|
| 27 |
+
albert = AlbertModel.from_pretrained("clue/albert_chinese_tiny")
|
| 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/
|