/ Модель

Характеристики

Параметры
124 млн
Лицензия
Apache 2.0
Архитектура
t5 · dense
Опубликована
2 мар 2022

it5-base

Языковая модель3 профессии

Базовая итальянская модель T5 для дообучения на задачах преобразования и генерации текста.

153скачиваний за 30 дней24лайкавеса обновлены17 июн 2024

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

gsarti/it5-base — базовая итальянская модель семейства IT5, разработанная Габриэле Сарти и Мальвиной Ниссим при поддержке Hugging Face и Google TPU Research Cloud. Это плотный трансформер encoder-decoder T5 для генерации текста по текстовому входу; модель содержит 123,7 млн параметров и доступна в форматах PyTorch, TensorFlow и Flax.

Модель предварительно обучена на одном проходе по очищенному итальянскому корпусу mC4 (около 41 млрд слов) с конфигурацией google/t5-v1_1-base. Она служит основой для дообучения под конкретные задачи понимания и генерации текста на итальянском языке; сама по себе без такого дообучения мало пригодна для практических downstream-сценариев. Лицензия — Apache-2.0.

Корпус собран из веб-страниц, поэтому модель может воспроизводить и усиливать содержащиеся в данных предубеждения, включая расовые и гендерные стереотипы и конспирологические взгляды. Авторы рекомендуют изучать эти смещения и ограничивать применение исследовательскими, не ориентированными на конечных пользователей сценариями.

Сценарии применения

  • дообучение для суммаризации итальянских текстов
  • создание итальянской модели ответов на вопросы
  • дообучение для перевода с итальянского или на итальянский
  • адаптация к классификации текстов в формате text-to-text

Ограничения

Для практических задач требуется дообучение под конкретный сценарий. Обучение на веб-корпусе может приводить к воспроизведению предубеждений и вредного содержания.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Italian T5 Base 🇮🇹

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.

TThe inference widget is deactivated because the model needs a task-specific seq2seq fine-tuning on a downstream task to be useful in practice.

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-base improved configuration. Another version of this model trained on the OSCAR corpus is also available under the name gsarti/it5-base-oscar. The training procedure is made available on Github.

The following table summarizes the parameters for all available models

it5-smallit5-base (this one)it5-largeit5-base-oscar
datasetgsarti/clean_mc4_itgsarti/clean_mc4_itgsarti/clean_mc4_itoscar/unshuffled_deduplicated_it
architecturegoogle/t5-v1_1-smallgoogle/t5-v1_1-basegoogle/t5-v1_1-larget5-base
learning rate5e-35e-35e-31e-2
steps1'050'0001'050'0002'100'000258'000
training time36 hours101 hours370 hours98 hours
ff projectiongated-gelugated-gelugated-gelurelu
tie embedsfalsefalsefalsetrue
optimizeradafactoradafactoradafactoradafactor
max seq. length512512512512
per-device batch size1616816
tot. batch size12812864128
weigth decay1e-31e-31e-21e-3
validation split size15K examples15K examples15K examples15K 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 AutoTokenizer, AutoModelForSeq2SeqLM

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

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")
model_tf = TFT5ForConditionalGeneration.from_pretrained("gsarti/it5-base")

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 gabriele.sarti996@gmail.com.

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",
    abstract = "We introduce IT5, the first family of encoder-decoder transformer models pretrained specifically on Italian. We document and perform a thorough cleaning procedure for a large Italian corpus and use it to pretrain four IT5 model sizes. We then introduce the ItaGen benchmark, which includes a broad range of natural language understanding and generation tasks for Italian, and use it to evaluate the performance of IT5 models and multilingual baselines. We find monolingual IT5 models to provide the best scale-to-performance ratio across tested models, consistently outperforming their multilingual counterparts and setting a new state-of-the-art for Italian language generation.",
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

У модели не указана задача.

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
3a5144f

0 моделей