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