/ Модель

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

Контекст
8 192 токена
Параметры
12,9 млрд
Размер весов
26 ГБ
Лицензия
Apache 2.0
Архитектура
llama · dense
Опубликована
26 июл 2023

LLongMA-2-13b-storysummarizer

Генерация текстаТекст → текст4 профессии

Дообученная LLaMA-модель для пересказа художественных произведений и анализа их сюжета, персонажей и тем.

167скачиваний за 30 дней15лайковвеса обновлены4 авг 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

LLongMA-2-13b-storysummarizer — дообученная модель семейства LLaMA, созданная на основе conceptofmind/LLongMA-2-13b. Она предназначена для создания кратких пересказов и литературного анализа художественных произведений, включая анализ отдельных глав и сюжетных линий. В карточке приведены примеры пересказа и анализа текста романа.

Модель содержит 12,9 млрд параметров, использует плотную архитектуру LlamaForCausalLM и работает с текстом. Размер контекстного окна — 8192 токена. Для обучения использовался адаптированный датасет BookSum; при инференсе предусмотрен пользовательский код для Flash Attention 2, ускоряющий обработку длинного контекста.

Модель подходит для анализа художественной прозы, но её специализация не подтверждает качество на иных жанрах и задачах. Лицензия — Apache-2.0.

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

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

Ограничения

Специализирована на художественной прозе; качество на других жанрах и задачах не описано. Для использования Flash Attention 2 требуется пользовательский код и параметр trust_remote_code=True.

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

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

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

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

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

Открыть на Hugging Face

LLongMA-2-13b-storysummarizer

This is a fine-tuned version of conceptofmind/LLongMA-2-13b intended for summarization and literary analysis of fiction stories. It contains custom modeling code to use Flash Attention 2 during inference, which provides a significant speedup, especially at longer context lengths. To enable, pass trust_remote_code=True,use_flash_attention=True to AutoModelForCausalLM.

How to Use

SOME_FICTION

### SUMMARY:

or

SOME_FICTION

### ANALYSIS:
tokenizer = AutoTokenizer.from_pretrained("emozilla/LLongMA-2-13b-storysummarizer")
model = AutoModelForCausalLM.from_pretrained(
  "emozilla/LLongMA-2-13b-storysummarizer",
  trust_remote_code=True,
  use_flash_attention=True,
  device_map="auto")

Example outputs

Outputs on the text of Waystation City (6,904 tokens)

Summary

temperature=0.8, repetition_penalty=1.1,do_sample=True

A nineteen-seventies pair of twins approaches Micheala and Gerty at a cafe. They ask them to write down their story of their disappearance. Gerty takes notes on their story as they tell it. The twins' names are Daphne and Claude. The twins explain that they came from London, England and were leading a movement against fascism there. But in Waystation City, they were stuck in the limbo between timelines with no real way of returning home to continue their work. In fact, it was harder for them to remember their lives at home as time went on. They tell Gerty that they cannot stay and Micheala encourages them not to go down to the stairs where Waystation City's ferry drivers will take them home. Daphne writes an inscription on a wall, leaving her mark as one of the disappeared, but she and Claude relent. Together they approach the docks with Gerty and Micheala trailing behind. There, the twins discuss which hole to go through and they agree it is the one showing their hometown in the 1970s. Daphne goes first and then Claude after he slips on a wet surface. The ferry drivers see him but Gerty yells for him to return from the hole as she writes his story down with her notes. But he cannot hear her over the slip of metal slats turning into stone and wood on the docks. He jumps in anyway and disappears into the other world through the hole. Micheala leaves a cigarette and Gerty drops her ticket back home to show that she's decided to stay in Waystation City where it is possible to grow, change, and live in the spaces between.

Analysis

temperature=0.8, repetition_penalty=1.1,do_sample=True

Notes In this final chapter, there is a brief but important flashback to the twins' home in England at the beginning of the 1970s, when racism and fascism are rampant. It is interesting to note the author's choice to set the story at such a pivotal time for immigrants in Britain. The twins feel like they have to choose between being their "true" selves in their home country or staying where they are as Waystation citizens. But this was also the time when racism and fascism were so openly practiced that anti-racists were fighting against these institutions with all of their might. It is interesting how there's an implication here that it's only at the risk of their "true" identities that the twins can go back to England. In this chapter, Gerty changes her name as well, choosing the gender neutral Michael. She does not specify why she decided to change her name or what inspired her choice. The story implies, but never says outright, that she changed her name in part because of the twins' disappearance. This suggests an important question: how far must a person be willing to go in order to stay true to themselves? It is clear by this point that Gerty has changed quite a bit since coming to Waystation City and her decision to change her name reflects the extent to which she has altered her identity. She realizes that she has settled into a comfortable, new life here with new clothes, new hobbies, and friends. Ultimately, this chapter suggests that while it is important to stay true to one's past, there are also new things to discover and experience in the present. Gerty has done just this by settling in Waystation City, embracing her new life and even changing her name and identity with it.

Training

The model was trained on emozilla/booksum-summary-analysis_llama-8192, which is adapted from kmfoda/booksum. The training run was performed using axolotl. The run can be viewed on wandb.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
398b458

0 моделей