/ Модель

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

Контекст
512 токенов
Параметры
45,8 млн
Лицензия
Apache 2.0
Архитектура
t5 · dense
Базовая модель
t5-small-lm-adapt
Библиотека
transformers
Опубликована
19 ноя 2026

t5_small-xsum

СуммаризацияТекст → текст3 профессии

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

46скачиваний за 30 дней0лайковвеса обновлены19 ноя 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

yoshitomo-matsubara/t5_small-xsum — модель суммаризации на основе архитектуры T5 encoder-decoder, разработанная как базовый чекпойнт для экспериментов по дистилляции знаний. Это полноразмерное дообучение google/t5-small-lm-adapt на датасете XSum: 45,8 млн параметров по метаданным, формат safetensors. Модель принимает статью с префиксом «summarize: » и генерирует краткое резюме; при обучении использовались входы длиной до 1 024 токенов, а целевые резюме — до 64 токенов.

Основной сценарий — суммаризация англоязычных новостных статей BBC и исследовательские сравнения методов дистилляции. На тестовой выборке XSum указаны ROUGE-1 38,52, ROUGE-2 15,85 и ROUGE-L 30,94. Модель может выдавать беглые, но фактически неточные резюме; качество на других языках и доменах не оценивалось. Лицензия — Apache-2.0.

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

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

Ограничения

На XSum модель может добавлять сведения, которых нет в исходной статье, поэтому резюме могут быть неточными. Качество на других языках и доменах не оценивалось; обучающие входы ограничены 1 024 токенами, а резюме — 64 токенами.

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

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

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

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

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

Открыть на Hugging Face

t5_small-xsum

google/t5-small-lm-adapt (LM-adapted T5 v1.1 small) fully fine-tuned on XSum with torchdistill.

It reproduces the supervised fine-tuning stage of GKD (Agarwal et al., ICLR 2024, Appendix A.2). It is the student initialization and no-distillation baseline for the T5-small knowledge distillation (KD) experiments: every KD config for T5-small starts from this checkpoint, and the distilled students are compared against it.

Model details

Base modelgoogle/t5-small-lm-adapt (77M parameters, T5 v1.1 encoder-decoder, 8 encoder + 8 decoder layers)
Fine-tuningFull-parameter supervised fine-tuning, cross-entropy on the reference summaries
Training dataEdinburghNLP/xsum, first 99% of the train split
LanguageEnglish
Lengths used in traininginput up to 1,024 tokens, summary up to 64 tokens
Input formatsummarize: <document>
Weightsmodel.safetensors, float32
LicenseApache 2.0 (see License)

Usage

The model was trained on inputs prefixed with summarize: and evaluated with greedy decoding of up to 64 new tokens. Pass both explicitly: the bundled generation_config.json sets no length, so generate would otherwise stop at the library default of 20 tokens, and the tokenizer's model_max_length (512) is shorter than the 1,024 input tokens used in training.

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model_id = 'yoshitomo-matsubara/t5_small-xsum'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id, dtype='bfloat16', device_map='auto')

document = 'The full text of a news article ...'
inputs = tokenizer(
    f'summarize: {document}', max_length=1024, truncation=True, return_tensors='pt'
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False, num_beams=1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

For batches, pass a list of inputs with padding=True. Unlike a decoder-only model, T5 needs no left padding: the padded encoder positions are masked out, and the decoder starts from its own start token.

Use bf16 or fp32. T5 overflows in fp16.

Training data and split

EdinburghNLP/xsum has train (204,045 examples), validation (11,332) and test (11,334) splits. They are used as follows, with the datasets split syntax:

SplitUse
train[:99%]Training
train[99%:]"Monitor" split: perplexity after each epoch, for monitoring only
validationReported ROUGE (the paper's reporting split)
testReported ROUGE

The paper reports the validation split and selects no checkpoint, so this run keeps the last checkpoint (ckpt_selection: 'last'). Neither reported split, nor the monitor split, is used for any decision. The training run did not pin a dataset revision.

Each example maps the document field, prefixed with summarize: (the T5 convention; the paper does not state its input format), to the summary field as the target.

Training procedure

The paper fine-tunes T5-small for 100,000 steps and gives no other SFT hyperparameters, so the run reuses those of its distillation runs (Table A.1: Adafactor, batch size 32, input/output length 1024/64, learning rate per Appendix A.3), with warmup and cooldown at the same proportions of the run (5% and the last 25%).

Dropout is the one deviation: T5 v1.1's default 0.1 instead of Table A.1's 0.0. With 0.0, plain fine-tuning overfits (T5-base: monitor perplexity 5.2 after epoch 1, 52 after epoch 8) and falls short of the paper's ROUGE-2.

HyperparameterValue
Steps100,000 optimizer steps (16 epochs, the last one partial)
OptimizerAdafactor (scale_parameter=False, relative_step=False, warmup_init=False), lr 1e-3
ScheduleWarmup-stable-decay: linear warmup over 5,000 steps, constant, linear decay to 0 over the last 25,000 steps
Batch size8 per device x 2 devices x gradient accumulation 2 = 32
Dropout0.1
Gradient clippingnone
Precisionfp32 master weights, bf16 autocast
Hardware2 GPUs, DDP, bf16 mixed precision (accelerate launch)
Training time~34 min for the first epoch, ~9 h 5 min in total
Seed42

The full torchdistill config, CLI arguments and per-step metrics are in logs/: config.yaml, args.json, metrics.json and trackio/summary.csv. To reproduce the run with torchdistill, use the command in the header of logs/config.yaml.

Evaluation

ROUGE F-measure (x100) of greedy decoding (up to 64 new tokens) on the released, last checkpoint:

SplitROUGE-1ROUGE-2ROUGE-L
Validation (11,332)38.6316.0631.10
Test (11,334)38.5215.8530.94

The paper reports a ROUGE-2 of 13.4 on the validation split after this stage. Both splits are held out from training and were not used to select the checkpoint. The scores come from the 2-process distributed evaluation of the training run.

Perplexity over the summary tokens of the monitor split, measured after each epoch:

EpochMonitor perplexity
18.8971
27.8231
37.3308
47.1183
56.9253
66.8334
76.7924
86.7822
96.7498
106.7033
116.6901
126.6955
136.7240
146.7181
156.7818
16 (released)6.8748

The monitor perplexity was lowest after epoch 11 (6.6901) and rose afterwards, but no checkpoint was selected on it (see above).

Limitations

  • XSum's reference summaries often contain information that is not in the article, and models fine-tuned on it are known to hallucinate such content (Maynez et al., 2020). Summaries may be fluent but unfaithful.
  • Trained on English BBC news articles; quality on other domains and languages is not measured.
  • Inputs longer than 1,024 tokens were truncated in training; summaries are single sentences of up to 64 tokens.
  • No downstream evaluation beyond ROUGE on XSum (e.g. factual-consistency metrics or human evaluation) has been run.
  • Intended for research, in particular as a reference point for knowledge-distillation experiments.

License

The weights are released under the Apache License 2.0 (LICENSE).

This model is a modification of google/t5-small-lm-adapt by Google, which is licensed under the Apache License 2.0. The modification is full-parameter fine-tuning on the data described above.

The training data, XSum, consists of BBC articles collected by Narayan et al. (2018) for research and carries no explicit license on the Hugging Face Hub. Users are responsible for making sure their use of the model is consistent with the terms of the underlying data.

Citation

If you use this model, please cite torchdistill, as well as GKD, T5 and XSum:

@inproceedings{matsubara2021torchdistill,
  title={torchdistill: A Modular, Configuration-Driven Framework for Knowledge Distillation},
  author={Matsubara, Yoshitomo},
  booktitle={International Workshop on Reproducible Research in Pattern Recognition},
  pages={24--44},
  year={2021},
  organization={Springer}
}

@inproceedings{matsubara2023torchdistill,
  title={{torchdistill Meets Hugging Face Libraries for Reproducible, Coding-Free Deep Learning Studies: A Case Study on NLP}},
  author={Matsubara, Yoshitomo},
  booktitle={Proceedings of the 3rd Workshop for Natural Language Processing Open Source Software (NLP-OSS 2023)},
  publisher={Empirical Methods in Natural Language Processing},
  pages={153--164},
  year={2023}
}

@inproceedings{agarwal2024onpolicy,
  title={On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes},
  author={Rishabh Agarwal and Nino Vieillard and Yongchao Zhou and Piotr Stanczyk and Sabela Ramos Garea and Matthieu Geist and Olivier Bachem},
  booktitle={The Twelfth International Conference on Learning Representations},
  year={2024}
}

@article{raffel2020t5,
  title={Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
  author={Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
  journal={Journal of Machine Learning Research},
  volume={21},
  number={140},
  pages={1--67},
  year={2020}
}

@inproceedings{lester2021power,
  title={The Power of Scale for Parameter-Efficient Prompt Tuning},
  author={Brian Lester and Rami Al-Rfou and Noah Constant},
  booktitle={Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
  pages={3045--3059},
  year={2021}
}

@inproceedings{narayan2018xsum,
  title={Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarization},
  author={Shashi Narayan and Shay B. Cohen and Mirella Lapata},
  booktitle={Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
  pages={1797--1807},
  year={2018}
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

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

0 моделей