julien-c HF staff commited on
Commit
735e6a1
1 Parent(s): 1265e05

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/roberta_chinese_base/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
+ ## roberta_chinese_base
6
+
7
+ ### Overview
8
+
9
+ **Language model:** roberta-base
10
+ **Model size:** 392M
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:** You have to call **BertTokenizer** instead of RobertaTokenizer !!!
22
+
23
+ ```
24
+ import torch
25
+ from transformers import BertTokenizer, BertModel
26
+ tokenizer = BertTokenizer.from_pretrained("clue/roberta_chinese_base")
27
+ roberta = BertModel.from_pretrained("clue/roberta_chinese_base")
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/