Efficient IT5 models differ from the standard ones by adopting a different vocabulary that enables cased text generation and an
optimized model architecture
to improve performances while reducing parameter count. The Small-EL32 replaces the original encoder from the T5 Small architecture with a 32-layer deep encoder, showing improved performances over the base model.
A comprehensive overview of other released materials is provided in the
gsarti/it5
repository. Refer to the paper for additional details concerning the reported scores and the evaluation approach.
Using the model
Model checkpoints are available for usage in Tensorflow, Pytorch and JAX. They can be used directly with pipelines as:
from transformers import pipelines
qg = pipeline("text2text-generation", model='it5/it5-efficient-small-el32-question-generation')
qg("Le conoscenze mediche erano stagnanti durante il Medioevo. Il resoconto più autorevole di allora è venuto dalla facoltà di medicina di Parigi in un rapporto al re di Francia che ha incolpato i cieli, sotto forma di una congiunzione di tre pianeti nel 1345 che causò una "grande pestilenza nell\' aria". Questa relazione è diventata la prima e più diffusa di una serie di casi di peste che cercava di dare consigli ai malati. Che la peste fosse causata dalla cattiva aria divenne la teoria più accettata. Oggi, questo è conosciuto come la teoria di Miasma. La parola "peste" non aveva un significato particolare in questo momento, e solo la ricorrenza dei focolai durante il Medioevo gli diede il nome che è diventato il termine medico. Risposta: re di Francia")>>> [{"generated_text": "Per chi è stato redatto il referto medico?"}]
or loaded using autoclasses:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("it5/it5-efficient-small-el32-question-generation")
model = AutoModelForSeq2SeqLM.from_pretrained("it5/it5-efficient-small-el32-question-generation")
If you use this model in your research, please cite our work as:
@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}
}
Training hyperparameters
The following hyperparameters were used during training:
learning_rate: 0.0003
train_batch_size: 8
eval_batch_size: 8
seed: 42
optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
lr_scheduler_type: linear
num_epochs: 7.0
Framework versions
Transformers 4.15.0
Pytorch 1.10.0+cu102
Datasets 1.17.0
Tokenizers 0.10.3
Runs of gsarti it5-efficient-small-el32-question-generation on huggingface.co
13
Total runs
0
24-hour runs
2
3-day runs
0
7-day runs
3
30-day runs
More Information About it5-efficient-small-el32-question-generation huggingface.co Model
More it5-efficient-small-el32-question-generation license Visit here:
it5-efficient-small-el32-question-generation huggingface.co is an AI model on huggingface.co that provides it5-efficient-small-el32-question-generation's model effect (), which can be used instantly with this gsarti it5-efficient-small-el32-question-generation model. huggingface.co supports a free trial of the it5-efficient-small-el32-question-generation model, and also provides paid use of the it5-efficient-small-el32-question-generation. Support call it5-efficient-small-el32-question-generation model through api, including Node.js, Python, http.
it5-efficient-small-el32-question-generation huggingface.co is an online trial and call api platform, which integrates it5-efficient-small-el32-question-generation's modeling effects, including api services, and provides a free online trial of it5-efficient-small-el32-question-generation, you can try it5-efficient-small-el32-question-generation online for free by clicking the link below.
gsarti it5-efficient-small-el32-question-generation online free url in huggingface.co:
it5-efficient-small-el32-question-generation is an open source model from GitHub that offers a free installation service, and any user can find it5-efficient-small-el32-question-generation on GitHub to install. At the same time, huggingface.co provides the effect of it5-efficient-small-el32-question-generation install, users can directly use it5-efficient-small-el32-question-generation installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
it5-efficient-small-el32-question-generation install url in huggingface.co: