gsarti / it5-base-oscar

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: 1
30-day runs: -4
Model's Last Updated: May 29 2022
text-generation

Introduction of it5-base-oscar

Model Details of it5-base-oscar

Italian T5 Base (Oscar) 🇮🇹

This repository contains the model formerly known as gsarti/t5-base-it

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: Large-Scale Text-to-Text Pretraining for Italian Language Understanding and Generation" (to be released), by Gabriele Sarti 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 model gsarti/it5-base-nli provides an example of this model fine-tuned on a downstream NLI task.

Model variants

This repository contains the checkpoints for a base version of the model trained on the OSCAR corpus using 🤗 Datasets. The original configuration for the model t5-base was adopted, with the exception of the parameter dropout_rate that was set at 0 instead of 0.1 during pre-training, following the implementation of t5-v1.1 . The tokenizer is a SentencePieceUnigramTokenizer trained on the first 2M sentences of the Italian portion of the mC4 corpus. An improved version of the model trained on the Thoroughly Cleaned Italian mC4 Corpus (~41B words, ~275GB) is also available under the name gsarti/it5-base . The training procedure is made available on Github .

The following table summarizes the parameters for all available models

it5-small it5-base it5-large it5-base-oscar (this one)
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 T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("gsarti/it5-base-oscar")
model = T5ForConditionalGeneration.from_pretrained("gsarti/it5-base-oscar")

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-base-oscar")
model_tf = TFT5ForConditionalGeneration.from_pretrained("gsarti/it5-base-oscar")
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
@article{sarti-nissim-2022-it5,
    title={IT5: Large-scale Text-to-text Pretraining for Italian Language Understanding and Generation},
    author={Sarti, Gabriele and Nissim, Malvina},
    journal={ArXiv preprint 2203.03759},
    url={https://arxiv.org/abs/2203.03759},
    year={2022},
    month={mar}
}

Runs of gsarti it5-base-oscar on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
-4
30-day runs

More Information About it5-base-oscar huggingface.co Model

More it5-base-oscar license Visit here:

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

it5-base-oscar huggingface.co

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

it5-base-oscar huggingface.co Url

https://huggingface.co/gsarti/it5-base-oscar

gsarti it5-base-oscar online free

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

gsarti it5-base-oscar online free url in huggingface.co:

https://huggingface.co/gsarti/it5-base-oscar

it5-base-oscar install

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

it5-base-oscar install url in huggingface.co:

https://huggingface.co/gsarti/it5-base-oscar

Url of it5-base-oscar

it5-base-oscar huggingface.co Url

Provider of it5-base-oscar huggingface.co

gsarti
ORGANIZATIONS

Other API from gsarti

huggingface.co

Total runs: 789
Run Growth: -480
Growth Rate: -59.33%
Updated:May 20 2021
huggingface.co

Total runs: 94
Run Growth: -5
Growth Rate: -5.62%
Updated:June 17 2024
huggingface.co

Total runs: 69
Run Growth: -47
Growth Rate: -79.66%
Updated:June 17 2024
huggingface.co

Total runs: 62
Run Growth: -105
Growth Rate: -169.35%
Updated:May 20 2021
huggingface.co

Total runs: 29
Run Growth: -53
Growth Rate: -176.67%
Updated:June 17 2024
huggingface.co

Total runs: 23
Run Growth: 16
Growth Rate: 69.57%
Updated:January 24 2024
huggingface.co

Total runs: 15
Run Growth: -37
Growth Rate: -264.29%
Updated:May 20 2021
huggingface.co

Total runs: 12
Run Growth: 2
Growth Rate: 18.18%
Updated:September 27 2021
huggingface.co

Total runs: 9
Run Growth: 5
Growth Rate: 55.56%
Updated:October 05 2021