gsarti / it5-small

huggingface.co
Total runs: 47
24-hour runs: 0
7-day runs: -38
30-day runs: -38
Model's Last Updated: June 17 2024
text-generation

Introduction of it5-small

Model Details of it5-small

Italian T5 Small 🇮🇹

The IT5 model family represents the first effort in pretraining large-scale sequence-to-sequence transformer models for the Italian language, following the approach adopted by the original T5 model .

This model is released as part of the project "IT5: Text-to-Text Pretraining for Italian Language Understanding and Generation" , by Gabriele Sarti and Malvina Nissim with the support of Huggingface and with TPU usage sponsored by Google's TPU Research Cloud . All the training was conducted on a single TPU3v8-VM machine on Google Cloud. Refer to the Tensorboard tab of the repository for an overview of the training process.

The inference widget is deactivated because the model needs a task-specific seq2seq fine-tuning on a downstream task to be useful in practice. The models in the it5 organization provide some examples of this model fine-tuned on various downstream task.

Model variants

This repository contains the checkpoints for the 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 .

The following table summarizes the parameters for all available models

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

The high training time of it5-base-oscar was due to a bug in the training script.

For a list of individual model parameters, refer to the config.json file in the respective repositories.

Using the models
from transformers import AutoTokenzier, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("gsarti/it5-small")
model = AutoModelForSeq2SeqLM.from_pretrained("gsarti/it5-small")

Note: You will need to fine-tune the model on your downstream seq2seq task to use it. See an example here .

Flax and Tensorflow versions of the model are also available:

from transformers import FlaxT5ForConditionalGeneration, TFT5ForConditionalGeneration

model_flax = FlaxT5ForConditionalGeneration.from_pretrained("gsarti/it5-small")
model_tf = TFT5ForConditionalGeneration.from_pretrained("gsarti/it5-small")
Limitations

Due to the nature of the web-scraped corpus on which IT5 models were trained, it is likely that their usage could reproduce and amplify pre-existing biases in the data, resulting in potentially harmful content such as racial or gender stereotypes and conspiracist views. For this reason, the study of such biases is explicitly encouraged, and model usage should ideally be restricted to research-oriented and non-user-facing endeavors.

Model curators

For problems or updates on this model, please contact [email protected] .

Citation Information
@inproceedings{sarti-nissim-2024-it5-text,
    title = "{IT}5: Text-to-text Pretraining for {I}talian Language Understanding and Generation",
    author = "Sarti, Gabriele  and
      Nissim, Malvina",
    editor = "Calzolari, Nicoletta  and
      Kan, Min-Yen  and
      Hoste, Veronique  and
      Lenci, Alessandro  and
      Sakti, Sakriani  and
      Xue, Nianwen",
    booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
    month = may,
    year = "2024",
    address = "Torino, Italia",
    publisher = "ELRA and ICCL",
    url = "https://aclanthology.org/2024.lrec-main.823",
    pages = "9422--9433",
}

Runs of gsarti it5-small on huggingface.co

47
Total runs
0
24-hour runs
0
3-day runs
-38
7-day runs
-38
30-day runs

More Information About it5-small huggingface.co Model

More it5-small license Visit here:

https://choosealicense.com/licenses/apache-2.0

it5-small huggingface.co

it5-small huggingface.co is an AI model on huggingface.co that provides it5-small's model effect (), which can be used instantly with this gsarti it5-small model. huggingface.co supports a free trial of the it5-small model, and also provides paid use of the it5-small. Support call it5-small model through api, including Node.js, Python, http.

it5-small huggingface.co Url

https://huggingface.co/gsarti/it5-small

gsarti it5-small online free

it5-small huggingface.co is an online trial and call api platform, which integrates it5-small's modeling effects, including api services, and provides a free online trial of it5-small, you can try it5-small online for free by clicking the link below.

gsarti it5-small online free url in huggingface.co:

https://huggingface.co/gsarti/it5-small

it5-small install

it5-small is an open source model from GitHub that offers a free installation service, and any user can find it5-small on GitHub to install. At the same time, huggingface.co provides the effect of it5-small install, users can directly use it5-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

it5-small install url in huggingface.co:

https://huggingface.co/gsarti/it5-small

Url of it5-small

it5-small huggingface.co Url

Provider of it5-small huggingface.co

gsarti
ORGANIZATIONS

Other API from gsarti

huggingface.co

Total runs: 864
Run Growth: -71
Growth Rate: -6.87%
Updated:May 20 2021
huggingface.co

Total runs: 80
Run Growth: -6
Growth Rate: -5.08%
Updated:May 20 2021
huggingface.co

Total runs: 76
Run Growth: -106
Growth Rate: -145.21%
Updated:June 17 2024
huggingface.co

Total runs: 28
Run Growth: -54
Growth Rate: -192.86%
Updated:June 17 2024
huggingface.co

Total runs: 19
Run Growth: 2
Growth Rate: 10.53%
Updated:January 24 2024
huggingface.co

Total runs: 12
Run Growth: -40
Growth Rate: -333.33%
Updated:May 20 2021
huggingface.co

Total runs: 9
Run Growth: 0
Growth Rate: 0.00%
Updated:September 27 2021
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:October 05 2021