roygan commited on
Commit
e8e6b46
1 Parent(s): 234ccd0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -40,11 +40,11 @@ Compared with T5,-samll we implement its Chinese version. In order to use for ch
40
  ## 使用 Usage
41
 
42
  ```python
43
- from transformers import T5ForConditionalGeneration, AutoTokenizer
44
  import torch
45
 
46
- tokenizer=AutoTokenizer.from_pretrained('IDEA-CCNL/Randeng-T5-Char-57M-Chinese', use_fast=false)
47
- model=T5ForConditionalGeneration.from_pretrained('IDEA-CCNL/Randeng-T5-Char-57M-Chinese')
48
  ```
49
 
50
  ## 引用 Citation
 
40
  ## 使用 Usage
41
 
42
  ```python
43
+ from transformers import T5ForConditionalGeneration, BertTokenizer
44
  import torch
45
 
46
+ tokenizer=BertTokenizer.from_pretrained('IDEA-CCNL/Randeng-T5-Char-700M-Chinese', add_special_tokens=False)
47
+ model=T5ForConditionalGeneration.from_pretrained('IDEA-CCNL/Randeng-T5-Char-700M-Chinese')
48
  ```
49
 
50
  ## 引用 Citation