Update README.md
Browse files
README.md
CHANGED
@@ -48,10 +48,10 @@ For a list of individual model parameters, refer to the `config.json` file in th
|
|
48 |
## Using the models
|
49 |
|
50 |
```python
|
51 |
-
from transformers import
|
52 |
|
53 |
-
tokenizer =
|
54 |
-
model =
|
55 |
```
|
56 |
|
57 |
*Note: You will need to fine-tune the model on your downstream seq2seq task to use it. See an example [here](https://huggingface.co/gsarti/it5-base-nli).*
|
|
|
48 |
## Using the models
|
49 |
|
50 |
```python
|
51 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
52 |
|
53 |
+
tokenizer = AutoTokenizer.from_pretrained("gsarti/it5-base")
|
54 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("gsarti/it5-base")
|
55 |
```
|
56 |
|
57 |
*Note: You will need to fine-tune the model on your downstream seq2seq task to use it. See an example [here](https://huggingface.co/gsarti/it5-base-nli).*
|