/ Модель

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

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

t5_large-xsum

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

yoshitomo-matsubara/t5_large-xsum — модель суммаризации на базе T5 Large от Google, дообученная автором репозитория на датасете XSum с помощью torchdistill. Это полное обучение всех параметров на парах англоязычных новостных статей BBC и однофразовых сводок; модель содержит 385,2 млн параметров и использует архитектуру T5 encoder-decoder. Для подготовки входа требуется префикс «summarize: ».

При обучении использовались входы длиной до 1 024 токенов, а генерация оценивалась с ограничением до 64 новых токенов. Модель предназначена для суммаризации англоязычных новостных статей и служит базовой инициализацией студента без дистилляции в экспериментах по дистилляции знаний. На XSum модель получила ROUGE-1/2/L 43,72/20,44/35,58 на тестовой выборке; результаты на других доменах и языках не оценивались. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

t5_large-xsum

google/t5-large-lm-adapt (LM-adapted T5 v1.1 large) 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-large knowledge distillation (KD) experiments: every KD config for T5-large starts from this checkpoint, and the distilled students are compared against it.

Model details

Base modelgoogle/t5-large-lm-adapt (800M parameters, T5 v1.1 encoder-decoder, 24 encoder + 24 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_large-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-large for 38,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
Steps38,000 optimizer steps (7 epochs, the last one partial)
OptimizerAdafactor (scale_parameter=False, relative_step=False, warmup_init=False), lr 3e-4
ScheduleWarmup-stable-decay: linear warmup over 1,900 steps, constant, linear decay to 0 over the last 9,500 steps
Batch size8 per device x 2 devices x gradient accumulation 2 = 32
Dropout0.1
Gradient clippingnone
Gradient checkpointingyes
Precisionfp32 master weights, bf16 autocast
Hardware2x 24 GB GPUs, DDP, gradient checkpointing, bf16 mixed precision (accelerate launch)
Training time~5 h 55 min for the first epoch, ~35 h 45 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)43.7620.6235.80
Test (11,334)43.7220.4435.58

The paper reports a ROUGE-2 of 19.6 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
14.5663
24.3712
34.3457
44.4221
54.5678
64.9412
7 (released)4.9764

The monitor perplexity was lowest after epoch 3 (4.3457) 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-large-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
Ревизия весов
225f3b9

0 моделей