Views
No views yet
it5 organization provide some examples of this model fine-tuned on various downstream task.base version of the model. The model was trained for one epoch (1.05M steps) on the Thoroughly Cleaned Italian mC4 Corpus (~41B words, ~275GB) using 🤗 Datasets and the google/t5-v1_1-small improved configuration. The training procedure is made available on Github.it5-small (this one) | it5-base | it5-large | it5-base-oscar | |
|---|---|---|---|---|
dataset | gsarti/clean_mc4_it | gsarti/clean_mc4_it | gsarti/clean_mc4_it | oscar/unshuffled_deduplicated_it |
architecture | google/t5-v1_1-small | google/t5-v1_1-base | google/t5-v1_1-large | t5-base |
learning rate | 5e-3 | 5e-3 | 5e-3 | 1e-2 |
steps | 1'050'000 | 1'050'000 | 2'100'000 | 258'000 |
training time | 36 hours | 101 hours | 370 hours | 98 hours |
ff projection | gated-gelu | gated-gelu | gated-gelu | relu |
tie embeds | false | false | false | true |
optimizer | adafactor | adafactor | adafactor | adafactor |
max seq. length | 512 | 512 | 512 | 512 |
per-device batch size | 16 | 16 | 8 | 16 |
tot. batch size | 128 | 128 | 64 | 128 |
weigth decay | 1e-3 | 1e-3 | 1e-2 | 1e-3 |
validation split size | 15K examples | 15K examples | 15K examples | 15K examples |
it5-base-oscar was due to a bug in the training script.config.json file in the respective repositories.1from transformers import AutoTokenzier, AutoModelForSeq2SeqLM
2
3tokenizer = AutoTokenizer.from_pretrained("gsarti/it5-small")
4model = AutoModelForSeq2SeqLM.from_pretrained("gsarti/it5-small")1from transformers import FlaxT5ForConditionalGeneration, TFT5ForConditionalGeneration
2
3model_flax = FlaxT5ForConditionalGeneration.from_pretrained("gsarti/it5-small")
4model_tf = TFT5ForConditionalGeneration.from_pretrained("gsarti/it5-small")1@inproceedings{sarti-nissim-2024-it5-text,
2 title = "{IT}5: Text-to-text Pretraining for {I}talian Language Understanding and Generation",
3 author = "Sarti, Gabriele and
4 Nissim, Malvina",
5 editor = "Calzolari, Nicoletta and
6 Kan, Min-Yen and
7 Hoste, Veronique and
8 Lenci, Alessandro and
9 Sakti, Sakriani and
10 Xue, Nianwen",
11 booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
12 month = may,
13 year = "2024",
14 address = "Torino, Italia",
15 publisher = "ELRA and ICCL",
16 url = "https://aclanthology.org/2024.lrec-main.823",
17 pages = "9422--9433",
18}