/ Модель

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

Контекст
32 768 токенов
Параметры
12,3 млрд
Размер весов
25 ГБ
Лицензия
Apache 2.0
Архитектура
mistral · dense
Библиотека
transformers
Опубликована
10 апр 2024

Cerebrum-1.0-12.25B

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

Объединённая на основе Cerebrum-1.0-7b языковая модель Mistral для диалогов, рассуждений и дальнейшего дообучения.

22скачиваний за 30 дней0лайковвеса обновлены11 апр 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Cerebrum-1.0-12.25B — языковая модель, опубликованная Joseph717171 и созданная с помощью mergekit как объединение с чередованием слоёв на основе Cerebrum-1.0-7b. Модель построена на архитектуре MistralForCausalLM, содержит 12,3 млрд параметров и принимает контекст до 32 768 токенов. Она предназначена для диалоговой генерации текста и задач рассуждения, а также как основа для дальнейшего дообучения или замена исходной версии Cerebrum на 7 млрд параметров.

В карточке Cerebrum описана как модель для решения задач, требующих рассуждений, включая математические задачи, ARC Challenge, ответы на вопросы и творческие задания. Для общения рекомендуется шаблон Alpaca-style. Модель работает с текстом; сведения о поддерживаемых естественных языках в карточке не приведены. Лицензия — Apache-2.0. Результаты бенчмарков относятся к исходной версии Cerebrum-7b и не подтверждают такое же качество версии 12,25B.

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

  • решение математических задач в диалоге
  • ответы на вопросы, требующие логических рассуждений
  • выполнение заданий ARC Challenge
  • генерация идей и творческих ответов
  • использование как основы для дальнейшего дообучения

Ограничения

README описывает результаты бенчмарков для исходной Cerebrum-7b, поэтому их нельзя считать подтверждением качества версии 12,25B. Естественные языки, поддерживаемые моделью, не перечислены.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

image/png

Credit for the model card's description goes to ddh0, mergekit, and, AetherResearch

Inspired by abacusai's bigyi-15b

Cerebrum-1.0-12.25B

This is Cerebrum-1.0-12.25B, layer-interleaved to make a larger ~13B version of AetherResearch/Cerebrum-1.0-7b.

This model is intended to be used as a basis for further fine-tuning, or as a drop-in upgrade from the original 7 billion parameter model.

This is a merge of pre-trained language models created using mergekit.

Merge Details

Merge Method

This model was merged using the passthrough merge method.

Models Merged

The following models were included in the merge:

  • /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b

Configuration

The following YAML configuration was used to produce this model:

dtype: bfloat16
merge_method: passthrough
# Layer-Interleaving of AetherResearch/Cerebrum-1.0-7b
# where n = 32 (The number of layers the model originally had)
#       m = 8 (The number of layers to interleave per row)
#       M = 24 = 3m (The number of layers interleaved into the model)
#       s = 56 = 32 + 24 = n + M (The number of layers the model will have after the layer interleaving)
#       P = 12.25B parameters = (s/n)*7 (The number of parameters the model will have after the layer interleaving)
slices:
- sources:
  - layer_range: [0, 8]
    model: /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b

# Interleaved Layer
- sources:
  - layer_range: [4, 12]
    model: /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b

- sources:
  - layer_range: [8, 16]
    model: /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b

# Interleaved Layer
- sources:
  - layer_range: [12, 20]
    model: /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b 

- sources:
  - layer_range: [16, 24]
    model: /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b

# Interleaved Layer
- sources:
  - layer_range: [20, 28]
    model: /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b 

- sources:
  - layer_range: [24, 32]
    model: /Users/jsarnecki/opt/Workspace/AetherResearch/Cerebrum-1.0-7b


Introduction

Cerebrum 7b is a large language model (LLM) created specifically for reasoning tasks. It is based on the Mistral 7b model, fine-tuned on a small custom dataset of native chain of thought data and further improved with targeted RLHF (tRLHF), a novel technique for sample-efficient LLM alignment. Unlike numerous other recent fine-tuning approaches, our training pipeline includes under 5000 training prompts and even fewer labeled datapoints for tRLHF.

Native chain of thought approach means that Cerebrum is trained to devise a tactical plan before tackling problems that require thinking. For brainstorming, knowledge intensive, and creative tasks Cerebrum will typically omit unnecessarily verbose considerations.

Zero-shot prompted Cerebrum significantly outperforms few-shot prompted Mistral 7b as well as much larger models (such as Llama 2 70b) on a range of tasks that require reasoning, including ARC Challenge, GSM8k, and Math.

Benchmarking

An overview of Cerebrum 7b performance compared to reported performance Mistral 7b and LLama 2 70b on selected benchmarks that require reasoning:

Usage

For optimal performance, Cerebrum should be prompted with an Alpaca-style template that requests the description of the "thought process". Here is what a conversation should look like from the model's point of view:

<s>A chat between a user and a thinking artificial intelligence assistant. The assistant describes its thought process and gives helpful and detailed answers to the user's questions.
User: Are you conscious?
AI:

This prompt is also available as a chat template. Here is how you could use it:

messages = [
    {'role': 'user', 'content': 'What is chain of thought prompting?'},
    {'role': 'assistant', 'content': 'Chain of thought prompting is a technique used in large language models to encourage the model to think more deeply about the problem it is trying to solve. It involves prompting the model to generate a series of intermediate steps or "thoughts" that lead to the final answer. This can help the model to better understand the problem and to generate more accurate and relevant responses.'},
    {'role': 'user', 'content': 'Why does chain of thought prompting work?'}
]

input = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors='pt')

with torch.no_grad():
    out = model.generate(input_ids=input, max_new_tokens=100, do_sample=False)
    # will generate "Chain of thought prompting works because it helps the model to break down complex problems into smaller, more manageable steps. This allows the model to focus on each step individually and to generate more accurate and relevant responses. Additionally, the intermediate steps can help the model to understand the problem better and to find patterns or connections that it may not have seen before.</s>"

The model ends its turn by generating the EOS token. Importantly, this token should be removed from the model answer in a multi-turn dialogue.

Cerebrum can be operated at very low temperatures (and specifically temperature 0), which improves performance on tasks that require precise answers. The alignment should be sufficient to avoid repetitions in most cases without a repetition penalty.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей