/ Модель

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

Контекст
512 токенов
Параметры
124 млн
Лицензия
Apache 2.0
Архитектура
t5 · dense
Библиотека
transformers
Опубликована
25 янв 2024

news-title-generator

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

Англоязычная модель на основе T5, которая генерирует заголовки новостных статей по их тексту.

2 348скачиваний за 30 дней10лайковвеса обновлены27 дек 2024

Бенчмарки

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

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

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

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

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

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

Ateeqq/news-title-generator — англоязычная модель для создания заголовков новостных статей, разработанная на основе T5 и дообученная автором на наборе новостных примеров. Она принимает текст статьи и генерирует краткий заголовок; подходит для подготовки черновиков заголовков в редакционных системах и автоматизации публикации новостей. Модель построена на архитектуре T5ForConditionalGeneration, содержит около 123,8 млн параметров и рассчитана на контекст до 512 токенов. Для работы используются Transformers и PyTorch; доступны веса PyTorch и Safetensors.

Карточка сообщает о более чем 78 тысячах примеров для обучения и отдельной тестовой выборке. Лицензия — Apache-2.0. Оценки качества не подтверждены приведёнными сравнительными результатами; сгенерированные заголовки могут упускать детали или неточно отражать содержание статьи и требуют редакторской проверки.

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

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

Ограничения

Модель рассчитана на английский язык и контекст до 512 токенов. Сгенерированные заголовки требуют проверки на точность и соответствие содержанию статьи.

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

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

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

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

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

Открыть на Hugging Face

News Title(Headline) Generator 📰

This document details the development of our innovative News Title Generator, designed to produce compelling and informative titles for your news articles. Check the Live Demo Here.

I've tested several other news headline generators on Hugging Face and across the internet, and I can confidently say that this one is the best. 🤗

Model Architecture:

  • Foundation: The T5 base model from the Transformers library is our title generator's foundation. This powerful pre-trained model is adept at various text-to-text tasks, making it an ideal choice for our application.
  • Fine-Tuning: To optimize performance specifically for news title generation, we fine-tuned the T5 base model on a curated dataset from Hugging Face https://huggingface.co/datasets/Ateeqq/news-title-generator. This dataset consists of over 78,000 training examples, ensuring the model learns the nuances and structure of effective news titles.

How to use?

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Ateeqq/news-title-generator")
model = AutoModelForSeq2SeqLM.from_pretrained("Ateeqq/news-title-generator")
def generate_title(input_text):

  input_ids = tokenizer.encode(input_text, return_tensors="pt")
  output = model.generate(input_ids)
  decoded_text = tokenizer.decode(output[0], skip_special_tokens=True)
  return decoded_text

input_text = """Microsoft is opening a new office in London dedicated to artificial
    intelligence (AI) research and development. The tech firm's AI boss Mustafa
    Suleyman said it will advertise roles for exceptional individuals in the
    coming weeks and months. But he has not said how many jobs will be created.
    Microsoft is a major investor in ChatGPT-creator OpenAI, which itself opened
    an office in London in 2023."""
generated_title = generate_title(input_text)

print(generated_title)

Output

Microsoft to open new London office dedicated to AI research

Technical Specifications

  • Framework: PyTorch, a popular deep learning framework, provides the foundation for our model's development and execution.
  • Dataset Split: The training data is strategically divided into two sets: 78,720 examples for training and 19,681 examples for testing. This split ensures the model is adequately trained while reserving a portion for evaluating its generalizability.
  • Model Parameters: The fine-tuned model boasts 223 million trainable parameters, allowing it to capture the intricate relationships between text elements that contribute to strong news titles.

Training Configuration

  • Batch Size: 8
  • Maximum Epochs: The training process iterates through the entire dataset three times (epochs) to ensure thorough learning.
  • Global Seed: A fixed random seed (42) is set to guarantee reproducibility of training results.
  • Token Length Limits: The source text (article content) is restricted to a maximum of 128 tokens, while the generated titles are capped at 50 tokens.

Key Takeaways

Our News Title Generator leverages the power of the T5 base model, fine-tuned on a comprehensive news title dataset, to deliver exceptional results. The model's architecture and training configuration are meticulously designed to produce high-quality, informative titles within an appropriate character length. This tool empowers creators and journalists to craft impactful headlines that effectively capture readers' attention.

Contact us (at exnrt.com/contact-us) today to learn more about integrating the News Title Generator into your editorial workflow and unlock the full potential of AI-driven journalism.

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

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

GPU в ailist

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

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

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

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

0 моделей