/ Модель

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

Контекст
1 024 токена
Параметры
253 млн
Архитектура
bart · dense
Опубликована
28 фев 2024

BART_news_summarizer

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

Англоязычная модель на основе BART-large для быстрого абстрактивного суммирования новостных статей.

38скачиваний за 30 дней5лайковвеса обновлены15 июн 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

JordiAb/BART_news_summarizer — модель абстрактивного суммирования новостных статей на основе BART-large, дообученная JordiAb с использованием сводок StableBeluga-7B в роли учителя. Модель содержит 252,8 млн параметров, построена на архитектуре BART и принимает текст с контекстом до 1024 токенов; для хранения весов используется safetensors. Она рассчитана на английский язык и новостные тексты.

Модель подходит для быстрого создания кратких пересказов новостных статей и обработки больших потоков новостного контента при ограниченных вычислительных ресурсах. В README заявлены ROUGE-1 0,66, cosine similarity 0,90 и скорость вывода примерно втрое выше, чем у StableBeluga-7B; методика оценки не описана. Обучающие статьи происходили из мексиканской газеты, были переведены с испанского на английский, а затем использовались для обучения на сводках учителя. Качество перевода могло повлиять на результаты, а на текстах других жанров качество может снижаться. Лицензия в предоставленных данных не указана.

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

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

Ограничения

Модель обучалась на англоязычных переводах статей мексиканской газеты, поэтому возможны ошибки из-за перевода, а качество на других жанрах может снижаться. В README не описана методика оценки заявленных метрик.

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

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

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

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

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

Открыть на Hugging Face

Model Overview

The News Articles Teacher-Student Abstractive Summarizer is a fine-tuned model based on BART-large, utilizing StableBeluga-7B as the teacher model. This model is designed to provide high-quality abstractive summarization of news articles with improved efficiency in terms of speed and computational resource usage.

Model Details

  • Model Type: Abstractive Summarization
  • Base Model: BART-large
  • Teacher Model: StableBeluga-7B
  • Language: English

DataSet

  • Source: 295,174 news articles scrapped from a Mexican newspaper.
  • Translation: The Spanish articles were translated to English using the Helsinki-NLP/opus-mt-es-en NLP model.
  • Teacher Summaries: Generated by StableBeluga-7B.

Training

The fine-tuning process involved using the teacher observations (summaries) generated by StableBeluga-7B to train a lightweight BART model. This approach aims to replicate the summarization quality of the teacher model while achieving faster inference times and reduced GPU memory usage.

Performance

  • Evaluation Metrics:
    • ROUGE1: 0.66
    • Cosine Similarity: 0.90
  • Inference Speed: 3x faster than the teacher model (StableBeluga-7B)
  • Resource Usage: Significantly less GPU memory compared to StableBeluga-7B

Objective

The primary goal of this model is to provide a lightweight summarization solution that maintains high-quality output similar to the teacher model (StableBeluga-7B) but operates with greater efficiency, making it suitable for deployment in resource-constrained environments.

Use Cases

This model is ideal for applications requiring quick and efficient summarization of large volumes of news articles, particularly in settings where computational resources are limited.

Limitations

  • Language Translation: The initial translation from Spanish to English may introduce minor inaccuracies that could affect the summarization quality.
  • Domain Specificity: Fine-tuned specifically on news articles, performance may vary on texts from different domains.

Future Work

Future improvements could involve:

  • Fine-tuning the model on bilingual data to eliminate translation steps.
  • Expanding the dataset to include a wider variety of news sources and topics.
  • Exploring further optimizations to reduce inference time and resource usage.

Conclusion

The News Articles Teacher-Student Abstractive Summarizer model demonstrates the potential to deliver high-quality summaries efficiently, making it a valuable tool for news content processing and similar applications.

How to use:

# Load the Model
model = AutoModelForSeq2SeqLM.from_pretrained("JordiAb/BART_news_summarizer")
tokenizer = AutoTokenizer.from_pretrained("JordiAb/BART_news_summarizer")

# News article text
article_text = """
Los Angeles Lakers will have more time than anticipated. The four-time NBA Most Valuable Player (MVP) extended his contract for two years and $85 million, keeping him in California until 2023. In 2018, The King had already signed for 153 mdd and, in his second campaign in the quintet, led the championship in the Orlando bubble. With 35 years of life – he turns 36 on December 30 – and 17 campaigns of experience, LeBron is still considered one of the best (or the best) NBA players. You can read: "Mercedes found Lewis Hamilton\'s substitute" James just took the Lakers to his first NBA title since 2010 and was named MVP of the Finals; he led the League in assists per game (10.2) for the first time in his career, while adding 25.3 points and 7.8 rebounds per performance, during the last campaign. James has adapted to life in Hollywood, as he will be part of the sequel to Space Jam, to be released next year.
"""

# tokenize text
inputs = tokenizer(article_text, return_tensors='pt')
# generate summary
with torch.no_grad():
  summary_ids = model.generate(
    inputs['input_ids'],
    num_beams=4,
    max_length=250,
    early_stopping=True
  )
# decode summary
summary = tokenizer.decode(
  summary_ids[0],
  skip_special_tokens=True
)

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей