z-uo/squad-it
Viewer • Updated • 2 • 91 • 1
How to use z-uo/it5-squadv1-it with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("z-uo/it5-squadv1-it")
model = AutoModelForSeq2SeqLM.from_pretrained("z-uo/it5-squadv1-it")This model is a fine-tuned version of gsarti/it5-base on Thoroughly Cleaned Italian mC4 Corpus (~41B words, ~275GB).
To use add a question + context in the same string for example:
In quale anno si è verificato il terremoto nel Sichuan?
Il terremoto del Sichuan del 2008 o il terremoto del Gran Sichuan, misurato a 8.0 Ms e 7.9 Mw, e si è verificato alle 02:28:01 PM China Standard Time all' epicentro (06:28:01 UTC) il 12 maggio nella provincia del Sichuan, ha ucciso 69.197 persone e lasciato 18.222 dispersi.
The train achieves the following results/params:
To train the model use this repo, inside you find the requirements.txt and the src to create train.