Update README.md
Browse files
README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
-
|
2 |
|
3 |
```
|
4 |
-
from transformers import AutoModelForCausalLM
|
|
|
5 |
|
|
|
6 |
model = AutoModelForCausalLM.from_pretrained('truongpdd/vietnamese-news-gpt2-5epochs', from_flax=True)
|
7 |
```
|
|
|
1 |
+
## How to use:
|
2 |
|
3 |
```
|
4 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
5 |
+
|
6 |
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained('truongpdd/vietnamese-news-gpt2-5epochs')
|
8 |
model = AutoModelForCausalLM.from_pretrained('truongpdd/vietnamese-news-gpt2-5epochs', from_flax=True)
|
9 |
```
|