/ Модель

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

Контекст
32 768 токенов
Параметры
7,1 млрд
Размер весов
14,5 ГБ
Лицензия
Apache 2.0
Архитектура
mistral · dense
Опубликована
27 сен 2023

LimaRP-Mistral-7B-v0.1

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

LimaRP-Mistral-7B-v0.1 — дообученная Mistral-7B для длинных художественных ролевых диалогов с персонажами.

36скачиваний за 30 дней11лайковвеса обновлены19 окт 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

LimaRP-Mistral-7B-v0.1 — модель генерации текста на базе Mistral-7B-v0.1, обученная автором LimaRP на примерно 2000 вручную отобранных и слегка отредактированных диалогах для ролевых игр. Это плотная авторегрессионная модель с 7,1 млрд параметров и контекстом до 32 768 токенов; карточка описывает эксперимент с форматом Alpaca и изменённой системной инструкцией во второй эпохе обучения.

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

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

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

Ограничения

Короткий формат ролевых реплик в стиле IRC или Discord не поддерживается. При очень длинных ответах модель может многословно продолжать текст или писать реплики за пользователя.

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

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

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

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

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

Открыть на Hugging Face

LimaRP-Mistral-7B (Alpaca, flipped instruction experiment)

This is a version of LimaRP for Mistral-7B-v0.1 with about 2000 training samples up to 9k tokens length. The second training epoch used a differently arranged system instruction.

For more details about LimaRP, see the model page for the previously released v2 version for Llama-2. Most details written there apply for this version as well. Generally speaking, LimaRP is a longform-oriented, novel-style roleplaying chat model intended to replicate the experience of 1-on-1 roleplay on Internet forums. Short-form, IRC/Discord-style RP (aka "Markdown format") is not supported yet. The model does not include instruction tuning, only manually picked and slightly edited RP conversations with persona and scenario data.

Prompt format

Same as before. It uses the extended Alpaca format, with ### Input: immediately preceding user inputs and ### Response: immediately preceding model outputs. While Alpaca wasn't originally intended for multi-turn responses, in practice this is not a problem; the format follows a pattern already used by other models.

### Instruction:
Character's Persona: {bot character description}

User's Persona: {user character description}

Scenario: {what happens in the story}

Play the role of Character. You must engage in a roleplaying chat with User below this line. Do not write dialogues and narration for User.

### Input:
User: {utterance}

### Response:
Character: {utterance}

### Input
User: {utterance}

### Response:
Character: {utterance}

(etc.)

You should:

  • Replace all text in curly braces (curly braces included) with your own text.
  • Replace User and Character with appropriate names.

Message length control

Inspired by the previously named "Roleplay" preset in SillyTavern, with this version of LimaRP it is possible to append a length modifier to the response instruction sequence, like this:

### Input
User: {utterance}

### Response: (length = medium)
Character: {utterance}

This has an immediately noticeable effect on bot responses. The lengths using during training are: micro, tiny, short, medium, long, massive, huge, enormous, humongous, unlimited. The recommended starting length is medium. Keep in mind that the AI can ramble or impersonate the user with very long messages.

The length control effect is reproducible, but the messages will not necessarily follow lengths very precisely, rather follow certain ranges on average, as seen in this table with data from tests made with one reply at the beginning of the conversation:

lengths

Response length control appears to work well also deep into the conversation. By omitting the modifier, the model will choose the most appropriate response length (although it might not necessarily be what the user desires).

Suggested settings

You can follow these instruction format settings in SillyTavern. Replace medium with your desired response length:

settings

Text generation settings

These settings could be a good general starting point:

  • TFS = 0.92
  • Temperature = 0.70
  • Repetition penalty = ~1.1
  • Repetition penalty range = ~2048
  • top-k = 0 (disabled)
  • top-p = 1 (disabled)

Training procedure

Axolotl was used for training on 4x NVidia A40 GPUs.

The A40 GPUs have been graciously provided by Arc Compute.

Training hyperparameters

Although 1 training epoch was used, the underlying data comprised data repeated twice in slightly different formats.

  • learning_rate: 0.0003
  • lr_scheduler: constant_with_warmup
  • noisy_embedding_alpha: 5
  • num_epochs: 1
  • sequence_len: 8750
  • lora_r: 256
  • lora_alpha: 16
  • lora_dropout: 0.05
  • lora_target_linear: True
  • bf16: True
  • fp16: false
  • tf32: True
  • load_in_8bit: True
  • adapter: lora
  • micro_batch_size: 1
  • gradient_accumulation_steps: 1
  • warmup_steps: 10
  • optimizer: adamw_torch
  • flash_attention: true
  • sample_packing: true
  • pad_to_sequence_len: true

Using 4 GPUs, the effective global batch size would have been 4.

Training loss graph

Train loss

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
MistralForCausalLM
Ревизия весов
0558c89

0 моделей