/ Модель

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

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

t5-efficient-mini-nl24

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

Предварительно обученная англоязычная encoder-decoder модель T5 для дообучения на задачах преобразования текста.

240скачиваний за 30 дней2лайкавеса обновлены24 янв 2023

Бенчмарки

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

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

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

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

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

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

T5-Efficient-MINI-NL24 — англоязычный предварительно обученный вариант архитектуры T5 от Google, выпущенный вместе с исследованием Scale Efficiently: Insights from Pre-training and Fine-tuning Transformers. Это плотная encoder-decoder модель для преобразования текста в текст; архитектура Deep-Narrow увеличивает глубину при сравнительно небольшом числе параметров. В README указано 125,69 млн параметров и 24 блока, тогда как метаданные каталога указывают 61,9 млн параметров; точный размер поэтому расходится между источниками. Метаданные также задают контекст длиной 512 токенов.

Модель обучена на английском корпусе C4 с задачей восстановления замаскированных фрагментов текста. Чекпойнт предназначен для дальнейшего дообучения под прикладные задачи, например суммаризацию, ответы на вопросы и классификацию текста; готовой специализированной способности к этим задачам карточка не подтверждает. Доступны веса в форматах PyTorch, TensorFlow и Flax. Лицензия — Apache-2.0.

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

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

Ограничения

Это только предварительно обученный чекпойнт: для практических задач его нужно дообучить. В README и метаданных расходятся сведения о числе параметров: 125,69 млн в README и 61,9 млн в метаданных каталога.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

T5-Efficient-MINI-NL24 (Deep-Narrow version)

T5-Efficient-MINI-NL24 is a variation of Google's original T5 following the T5 model architecture. It is a pretrained-only checkpoint and was released with the paper Scale Efficiently: Insights from Pre-training and Fine-tuning Transformers by Yi Tay, Mostafa Dehghani, Jinfeng Rao, William Fedus, Samira Abnar, Hyung Won Chung, Sharan Narang, Dani Yogatama, Ashish Vaswani, Donald Metzler.

In a nutshell, the paper indicates that a Deep-Narrow model architecture is favorable for downstream performance compared to other model architectures of similar parameter count.

To quote the paper:

We generally recommend a DeepNarrow strategy where the model’s depth is preferentially increased before considering any other forms of uniform scaling across other dimensions. This is largely due to how much depth influences the Pareto-frontier as shown in earlier sections of the paper. Specifically, a tall small (deep and narrow) model is generally more efficient compared to the base model. Likewise, a tall base model might also generally more efficient compared to a large model. We generally find that, regardless of size, even if absolute performance might increase as we continue to stack layers, the relative gain of Pareto-efficiency diminishes as we increase the layers, converging at 32 to 36 layers. Finally, we note that our notion of efficiency here relates to any one compute dimension, i.e., params, FLOPs or throughput (speed). We report all three key efficiency metrics (number of params, FLOPS and speed) and leave this decision to the practitioner to decide which compute dimension to consider.

To be more precise, model depth is defined as the number of transformer blocks that are stacked sequentially. A sequence of word embeddings is therefore processed sequentially by each transformer block.

Details model architecture

This model checkpoint - t5-efficient-mini-nl24 - is of model type Mini with the following variations:

  • nl is 24

It has 125.69 million parameters and thus requires ca. 502.75 MB of memory in full precision (fp32) or 251.37 MB of memory in half precision (fp16 or bf16).

A summary of the original T5 model architectures can be seen here:

Modelnl (el/dl)ffdmkvnh#Params
Tiny4/4102425632416M
Mini4/4153638432831M
Small6/6204851232860M
Base12/1230727686412220M
Large24/24409610246416738M
Xl24/24163841024128323B
XXl24/2465536102412812811B

whereas the following abbreviations are used:

AbbreviationDefinition
nlNumber of transformer blocks (depth)
dmDimension of embedding vector (output vector of transformers block)
kvDimension of key/value projection matrix
nhNumber of attention heads
ffDimension of intermediate vector within transformer block (size of feed-forward projection matrix)
elNumber of transformer blocks in the encoder (encoder depth)
dlNumber of transformer blocks in the decoder (decoder depth)
shSignifies that attention heads are shared
skvSignifies that key-values projection matrices are tied

If a model checkpoint has no specific, el or dl than both the number of encoder- and decoder layers correspond to nl.

Pre-Training

The checkpoint was pretrained on the Colossal, Cleaned version of Common Crawl (C4) for 524288 steps using the span-based masked language modeling (MLM) objective.

Fine-Tuning

Note: This model is a pretrained checkpoint and has to be fine-tuned for practical usage. The checkpoint was pretrained in English and is therefore only useful for English NLP tasks. You can follow on of the following examples on how to fine-tune the model:

PyTorch:

Tensorflow:

JAX/Flax:

Downstream Performance

TODO: Add table if available

Computational Complexity

TODO: Add table if available

More information

We strongly recommend the reader to go carefully through the original paper Scale Efficiently: Insights from Pre-training and Fine-tuning Transformers to get a more nuanced understanding of this model checkpoint. As explained in the following issue, checkpoints including the sh or skv model architecture variations have not been ported to Transformers as they are probably of limited practical usage and are lacking a more detailed description. Those checkpoints are kept here as they might be ported potentially in the future.

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

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

GPU в ailist

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

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

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

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

0 моделей