Transformers
PyTorch
TensorFlow
JAX
TensorBoard
Italian
t5
text2text-generation
seq2seq
lm-head
text-generation-inference
Instructions to use gsarti/it5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gsarti/it5-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("gsarti/it5-base") model = AutoModelForSeq2SeqLM.from_pretrained("gsarti/it5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
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).*
|