Update README.md
Browse files
README.md
CHANGED
@@ -14,6 +14,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
14 |
# how to use the model
|
15 |
|
16 |
# Load model directly
|
|
|
|
|
17 |
`from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
18 |
import torch
|
19 |
|
@@ -28,6 +30,7 @@ with torch.no_grad():
|
|
28 |
generated_text = tokenizer.decode(outputs[0])
|
29 |
|
30 |
print(generated_text)`
|
|
|
31 |
|
32 |
# checkpoint
|
33 |
|
|
|
14 |
# how to use the model
|
15 |
|
16 |
# Load model directly
|
17 |
+
|
18 |
+
```
|
19 |
`from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
20 |
import torch
|
21 |
|
|
|
30 |
generated_text = tokenizer.decode(outputs[0])
|
31 |
|
32 |
print(generated_text)`
|
33 |
+
```
|
34 |
|
35 |
# checkpoint
|
36 |
|