/ Модель

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

Контекст
2 048 токенов
Параметры
12,9 млрд
Размер весов
7,5 ГБ
Архитектура
llama · dense
Опубликована
19 мая 2023

Metharme-13b-4bit-GPTQ

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

Квантизированная до 4 бит инструктивная LLaMA-13B для англоязычных бесед, ролевых сценариев и художественного письма.

23скачиваний за 30 дней10лайковвеса обновлены20 мая 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Metharme 13B — инструктивно дообученная плотная LLaMA-модель, опубликованная TehVenom и основанная на Meta LLaMA-13B. Её настроили на смеси обычных инструкций, ролевых диалогов и художественных историй, чтобы использовать для бесед, ролевых сценариев и написания прозы с управлением на естественном языке. В карточке описана версия, полученная слиянием LoRA с базовой моделью и квантизированная до 4 бит GPTQ; размер составляет 12,9 млрд параметров, контекст — 2048 токенов.

Модель генерирует текст и рассчитана прежде всего на англоязычные запросы. Для диалогов требуется форматирование промпта специальными токенами ролей. Разработчик предупреждает о случайном начале ответа с BOS-токена и проблемах совместимости исходной конфигурации LoRA с актуальной версией PEFT. Модель не дообучалась для безопасных и безвредных ответов, поэтому может выдавать оскорбительный или неприемлемый текст, а также фактически неверные или вводящие в заблуждение сведения. Лицензия в предоставленных данных не указана.

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

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

Ограничения

Модель может выдавать оскорбительный или неприемлемый текст и фактически неверные сведения; для диалогов ей нужен специальный формат промпта, а начало ответа с BOS-токена является случайным поведением. В README описаны проблемы совместимости исходной конфигурации LoRA с актуальной версией PEFT.

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

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

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

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

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

Открыть на Hugging Face

Model Details:

Converted from the XORs weights from PygmalionAI's release https://huggingface.co/PygmalionAI/metharme-13b

Metharme 13b is an instruct model based on Meta's LLaMA-13b.

This is an experiment to try and get a model that is usable for conversation, roleplaying and storywriting, but which can be guided using natural language like other instruct models. See the prompting section below for examples.

It was trained by doing supervised fine-tuning over a mixture of regular instruction data alongside roleplay, fictional stories and conversations with synthetically generated instructions attached.

The current Metharme-13b has been trained as a LoRA, then merged down to the base model for distribuition.

It has also been quantized down to 4Bit using the GPTQ library available here: https://github.com/0cc4m/GPTQ-for-LLaMa

python -m gptq.llama .\TehVenom_Metharme-13b-Merged c4 --wbits 4 --true-sequential --groupsize 128 --save_safetensors Metharme-13b-GPTQ-4bit-128g.no-act-order.safetensors

Prompting

The current model version has been trained on prompts using three different roles, which are denoted by the following tokens: <|system|>, <|user|> and <|model|>.

The <|system|> prompt can be used to inject out-of-channel information behind the scenes, while the <|user|> prompt should be used to indicate user input. The <|model|> token should then be used to indicate that the model should generate a response. These tokens can happen multiple times and be chained up to form a conversation history.

Prompting example

Here's a concrete example. Let's say you have the following system prompt:

This is a text adventure game. Describe the scenario to the user and give him three options to pick from on each turn.

And the user has typed in the following message:

Start!

To perform inference against the model, the prompt should be formatted like this:

<|system|>This is a text adventure game. Describe the scenario to the user and give him three options to pick from on each turn.<|user|>Start!<|model|>

The model might generate something like:

You are standing in front of an old, abandoned house. The windows are boarded up, and there's no sign of life around it. As you approach, you notice a strange feeling emanating from within. Suddenly, you hear a voice calling out to you... 'Come inside!'

  • Go inside the house.
  • Ignore the call and move away.
  • Run as fast as you can.

It will automatically emit an end-of-text token (</s>) when it judges that the response is complete.

Pretend then that the user has replied with go inside. The next prompt should then be:

<|system|>This is a text adventure game. Describe the scenario to the user and give him three options to pick from on each turn.<|user|>Start!<|model|>You are standing in front of an old, abandoned house. The windows are boarded up, and there's no sign of life around it. As you approach, you notice a strange feeling emanating from within. Suddenly, you hear a voice calling out to you... 'Come inside!'

- Go inside the house.
- Ignore the call and move away.
- Run as fast as you can.<|user|>go inside<|model|>

Which might generate something like:

You enter the house, and immediately, a wave of unsettling energy washes over you. Your senses seem heightened, but your mind feels foggy. A figure appears before you - a tall man with piercing eyes. He speaks to you in a language you don't understand.

  • Ask him what he wants.
  • Attack him.
  • Run away.

Same process applies. Usually, it is best to do a sliding window over the user and model turns, but keep the system prompt fixed at the start of the context window.

Eval / Benchmark scores

Current evals out of the Metharme-13b model:

Other notes

  • When prompted correctly, the model will always start by generating a BOS token. This behavior is an accidental side-effect which we plan to address in future model versions and should not be relied upon.
  • The model was trained as a LoRA with a somewhat unorthodox configuration which causes errors when used with the current version of peft, hence we release it as a full model instead.

Limitations and biases

The intended use-case for this model is fictional writing for entertainment purposes. Any other sort of usage is out of scope.

As such, it was not fine-tuned to be safe and harmless: the base model and this fine-tune have been trained on data known to contain profanity and texts that are lewd or otherwise offensive. It may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive. Outputs might often be factually wrong or misleading.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей