gsarti commited on
Commit
5b4b3e3
1 Parent(s): c16db81

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
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 T5Tokenizer, T5ForConditionalGeneration
52
 
53
- tokenizer = T5Tokenizer.from_pretrained("gsarti/it5-small")
54
- model = T5ForConditionalGeneration.from_pretrained("gsarti/it5-small")
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).*