/ Модель

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

Параметры
870 млн
Лицензия
Своя лицензия
Архитектура
t5 · dense
Базовая модель
FRED-T5-Summarizer
Библиотека
transformers
Опубликована
13 июл 2026

ru_summariser

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

Русскоязычная модель на базе FRED-T5 для краткого изложения новостей, энциклопедических и информационных текстов.

25скачиваний за 30 дней0лайковвеса обновлены24 июл 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Rahvusarhiiv разработал ru_summariser — русскоязычную модель суммаризации на архитектуре T5, дообученную с полными параметрами от RussianNLP/FRED-T5-Summarizer. Модель содержит 870,1 млн параметров и предназначена для краткого изложения новостей, энциклопедических и общих информационных текстов, в том числе в пакетной и офлайн-обработке. Для управления длиной в запрос добавляют префикс summary_length: medium; рекомендуемый максимум входа — 768 токенов, генерации — 96 новых токенов.

В обучении использовались русскоязычные пары «текст — резюме», преимущественно из новостных источников, а также данные общего характера. В описанной авторами оценке модель превзошла базовую FRED-T5 по некоторым метрикам суммаризации, но результаты основаны на ограниченных выборках и автоматическом оценивании. Модель может ошибаться в фактах, именах, числах и датах; длинные тексты чувствительны к выбору фрагментов, а длина резюме не гарантируется. Лицензия указана как other; перед использованием следует проверить применимые условия исходных наборов данных и репозитория.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Russian summariser

Rahvusarhiiv/ru_summariser is an experimental Russian summarization model fine-tuned from RussianNLP/FRED-T5-Summarizer.

This revision replaces the earlier mBART-50 checkpoint. On a matched three-domain evaluation it improves the Ollama judge overall score by 0.47 points over FRED-T5 base, with equal severe factual error counts. It is a research release, not a state-of-the-art claim.

Intended Use

  • Summarization of Russian news, encyclopedic, and general informational text.
  • Batch or offline summarization where outputs can be checked against the source.
  • Not intended as a sole source of factual truth or for unreviewed legal, medical, financial, or archival descriptions.

How to Use

The model was trained with a length-control prefix. medium is the evaluated default. The helper below also applies the source-only salience selection and sentence-boundary cleanup used for the reported release scores.

import re
from collections import Counter

import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

repo_id = "Rahvusarhiiv/ru_summariser"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForSeq2SeqLM.from_pretrained(repo_id)
model.eval()

WORD_RE = re.compile(r"[\w-]+", re.UNICODE)
SENTENCE_RE = re.compile(r"(?<=[.!?])\s+|\n+")


def select_source_evidence(text, max_words=700, trigger_words=760):
    if len(WORD_RE.findall(text)) <= trigger_words:
        return text

    sentences = [" ".join(part.split()) for part in SENTENCE_RE.split(text) if part.strip()]
    tokenized = [[token.casefold() for token in WORD_RE.findall(sentence)] for sentence in sentences]
    frequency = Counter(
        token for sentence in tokenized for token in sentence if len(token) >= 4
    )
    scored = []
    for index, tokens in enumerate(tokenized):
        if not tokens or (len(tokens) < 6 and index >= 3):
            continue
        unique = {token for token in tokens if len(token) >= 4}
        if not unique:
            continue
        lexical = sum(frequency[token] for token in unique) / len(unique)
        lead = max(0.0, 3.0 - index * 0.25)
        length_penalty = 0.02 * max(0, len(tokens) - 45)
        scored.append((lexical + lead - length_penalty, index))

    selected = set()
    total = 0
    for _, index in sorted(scored, reverse=True):
        sentence_words = len(tokenized[index])
        if total and total + sentence_words > max_words:
            continue
        selected.add(index)
        total += sentence_words
        if total >= max_words:
            break
    return " ".join(sentences[index] for index in sorted(selected or {0}))


def remove_incomplete_tail(text):
    text = text.strip()
    if not text or text[-1] in ".!?":
        return text
    end = max(text.rfind(mark) for mark in ".!?")
    return text if end < 0 else text[: end + 1].strip()


text = (
    "Городские власти сообщили о запуске новой программы поддержки общественного "
    "транспорта. По словам чиновников, дополнительные средства направят на обновление "
    "автобусов и повышение доступности маршрутов."
)
prompt = "summary_length: medium\n\n" + select_source_evidence(text)
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=768)

with torch.inference_mode():
    summary_ids = model.generate(
        **inputs,
        max_new_tokens=96,
        min_new_tokens=0,
        num_beams=4,
        length_penalty=0.7,
        no_repeat_ngram_size=3,
        early_stopping=True,
    )

summary = tokenizer.batch_decode(summary_ids, skip_special_tokens=True)[0]
print(remove_incomplete_tail(summary))

For CUDA inference, move the model and tokenized inputs to the same CUDA device. The checkpoint is also directly compatible with pipeline("summarization", model=repo_id), but the generic pipeline does not apply the evaluated prefix, salience selector, or incomplete-tail cleanup automatically.

Recommended Generation Settings

settingvalue
input prefixsummary_length: medium followed by a blank line
maximum input tokens768
maximum new tokens96
minimum new tokens0
beams4
length penalty0.7
repeated n-gram block3
early stoppingtrue

The checked-in generation_config.json contains the generation defaults. The input prefix and optional preprocessing remain application-side behavior.

Training Data

The training set contains 59,489 real source-summary pairs and the validation set contains 3,000. The mix is predominantly supported Russian news, with a capped general-domain WikiLingua component. No synthetic rows were used in this revision.

source familytraining rows
Gazeta14,500
Russian XL-Sum10,000
MLSUM8,000
Taiga-derived news7,000
WikiLingua6,716
LR-Sum6,000
SumNews5,000
Lenta-derived news2,273

Training preparation applied:

  • source-summary support filtering and low/medium risk bucketing;
  • exact and near-source deduplication;
  • source-level caps without oversampling;
  • source-only evidence selection for long inputs;
  • randomized metadata presentation when supported metadata was required;
  • short, medium, and long length-control prefixes;
  • exact/hash/shingle exclusion against protected Wiki4, GDELT, and supported-news benchmarks.

The final benchmark exclusion audit found zero overlaps across 59,489 training and 3,000 validation rows. Average training-pair lexical support was 0.715.

Evaluation

Automatic metrics use 30 matched source IDs per benchmark. Judge metrics use 10 matched source IDs per benchmark and gemma4:31b through Ollama at temperature zero.

benchmarkROUGE-Lcoveragesource precisionwordsjudge factualityjudge coveragejudge overall
Wiki4 strict v20.4310.4080.97050.24.503.504.00
GDELT news0.2020.4150.95556.05.004.304.50
Supported news0.2280.3210.81248.64.304.304.20
Macro average0.2870.3810.91251.64.604.034.23

Comparison with FRED-T5 base

modelmacro ROUGE-Lcoveragesource precisionjudge overall
This model0.2870.3810.9124.23
FRED-T5 base0.2700.3000.8603.77

Across the 30 paired judge examples, this model had 9 wins, 18 ties, and 3 losses. The average overall delta was +0.47, coverage delta was +0.70, and factuality delta was 0.00. Both models had three factuality scores of 2 or lower.

ROUGE and lexical support metrics are proxies. The local LLM judge is useful for matched comparison but should not be treated as an absolute or human-equivalent quality measure.

Limitations and Failure Modes

  • The model can hallucinate or misstate entities, numbers, dates, and relationships.
  • It is more verbose than FRED-T5 base on short-reference news.
  • Long-document quality depends on input selection. The evaluated selector can omit relevant material, while raw tokenizer truncation can overemphasize the beginning.
  • The 96-token ceiling is frequently reached. Sentence cleanup avoids an incomplete final clause but may remove useful content from the last generated sentence.
  • Length-control prefixes influence training behavior, but exact requested lengths are not guaranteed.
  • The data mix is news-heavy; performance may degrade on dialogue, highly technical writing, fiction, or legal text.
  • Factual claims should be checked against the source before publication.

Bias, Risks, and Ethical Considerations

The model can reproduce biases, framing, and omissions present in its source corpora. Training sources span different publishers, periods, collection methods, and upstream terms. Users are responsible for checking whether their intended use is compatible with those terms.

CO2 Emissions

Training energy and emissions were not instrumented with CodeCarbon or an equivalent tool, so no numeric CO2 estimate is reported. This revision fine-tuned an existing FRED-T5 checkpoint for 9,500 steps (2.55 epochs) on one local NVIDIA GB10 rather than pretraining a model from scratch.

Model Tree

  • Base model: RussianNLP/FRED-T5-Summarizer
  • Relationship: full-parameter sequence-to-sequence fine-tune
  • This revision: grounded, deduplicated Russian news/general data with length-control prefixes

License

The model card uses license: other because the training mix contains upstream sources with different or unspecified terms. Verify the relevant source terms before redistribution or commercial use.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей