Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ As we all know, the single direction language model based on decoder structure h
|
|
22 |
```python
|
23 |
from transformers import GPT2Tokenizer, GPT2Model
|
24 |
tokenizer = GPT2Tokenizer.from_pretrained('IDEA-CCNL/Wenzhong2.0-GPT2-3.5B-chinese')
|
25 |
-
model = GPT2Model.from_pretrained('IDEA-CCNL/
|
26 |
text = "Replace me by any text you'd like."
|
27 |
encoded_input = tokenizer(text, return_tensors='pt')
|
28 |
output = model(**encoded_input)
|
|
|
22 |
```python
|
23 |
from transformers import GPT2Tokenizer, GPT2Model
|
24 |
tokenizer = GPT2Tokenizer.from_pretrained('IDEA-CCNL/Wenzhong2.0-GPT2-3.5B-chinese')
|
25 |
+
model = GPT2Model.from_pretrained('IDEA-CCNL/Wenzhong2.0-GPT2-3.5B-chinese')
|
26 |
text = "Replace me by any text you'd like."
|
27 |
encoded_input = tokenizer(text, return_tensors='pt')
|
28 |
output = model(**encoded_input)
|