Update README.md
Browse files
README.md
CHANGED
@@ -28,9 +28,8 @@ To evaluate the model, we sample 50 times from the decoder for each input and th
|
|
28 |
One can load this model for their personal use of fine-tuning as follows:
|
29 |
|
30 |
```python
|
31 |
-
|
32 |
-
|
33 |
-
tokenizer = AutoTokenizer.from_pretrained("t5-
|
34 |
-
|
35 |
-
model = AutoModel.from_pretrained("DeepPavlov/t5-wikidata5M-with-neighbors")
|
36 |
```
|
|
|
28 |
One can load this model for their personal use of fine-tuning as follows:
|
29 |
|
30 |
```python
|
31 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
32 |
+
|
33 |
+
tokenizer = AutoTokenizer.from_pretrained("DeepPavlov/t5-wikidata5M-with-neighbors")
|
34 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("DeepPavlov/t5-wikidata5M-with-neighbors")
|
|
|
35 |
```
|