/ Модель

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

Контекст
32 768 токенов
Параметры
7,1 млрд
Лицензия
Apache 2.0
Архитектура
mixtral · MoE
Библиотека
transformers
Опубликована
8 янв 2024

laser-dolphin-mixtral-2x7b-dpo

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

Экспериментальная MoE языковая модель на базе Dolphin и Mixtral для диалоговой генерации текста, ответов на вопросы и рассуждений.

248скачиваний за 30 дней59лайковвеса обновлены4 мар 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Laser-Dolphin-Mixtral-2x7b-DPO — экспериментальная языковая модель macadeliccc, созданная на основе cognitivecomputations/dolphin-2.6-mistral-7b-dpo-laser с применением процесса laser и конфигурации слияния Mergekit. В метаданных указана архитектура Mixtral MoE на базе Transformers, 7,1 млрд параметров и контекст до 32 768 токенов.

Модель предназначена для генерации текста в диалоговом формате и решения широкого круга языковых задач, включая ответы на вопросы, рассуждения и математику. В README приведены результаты оценок на наборах AGIEval, GPT4All, TruthfulQA, Bigbench и GSM8K; автор сообщает об улучшении среднего результата примерно на один пункт относительно предыдущей версии. Упоминаются ChatML, запуск через Ollama и сторонние квантованные варианты, однако Function Calling указан как будущая цель.

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

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

  • диалоговые ответы и генерация текста в формате ChatML
  • ответы на вопросы общего назначения
  • решение математических задач и примеров на GSM8K
  • выполнение заданий на логическое рассуждение
  • локальный запуск языковой модели через Ollama

Ограничения

Автор описывает процесс создания как экспериментальный, поэтому результаты и поведение модели могут варьироваться. Function Calling обозначен как будущая цель, а не заявленная возможность текущей версии.

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

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

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

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

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

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

Открыть на Hugging Face

Laser-Dolphin-Mixtral-2x7b-dpo

laser_dolphin_image

New Version out now!

Credit to Fernando Fernandes and Eric Hartford for their project laserRMT

Overview

This model is a medium-sized MoE implementation based on cognitivecomputations/dolphin-2.6-mistral-7b-dpo-laser

  • The new version shows ~1 point increase in evaluation performance on average.

Process

  • The process is outlined in this notebook

  • The mergekit_config is in the files.

  • The models used in the configuration are not lasered, but the final product is. This is an update from the last version.

  • This process is experimental. Your mileage may vary.

Future Goals

  • Function Calling
  • v2 with new base model to improve performance

Quantizations

ExLlamav2

These are the recommended quantizations for users that are running the model on GPU

Thanks to user bartowski we now have exllamav2 quantizations in 3.5 through 8 bpw. They are available here:

BranchBitslm_head bitsVRAM (4k)VRAM (16k)VRAM (32k)Description
8_08.08.013.7 GB15.1 GB17.2 GBMaximum quality that ExLlamaV2 can produce, near unquantized performance.
6_56.58.011.5 GB12.9 GB15.0 GBNear unquantized performance at vastly reduced size, recommended.
5_05.06.09.3 GB10.7 GB12.8 GBSlightly lower quality vs 6.5, great for 12gb cards with 16k context.
4_254.256.08.2 GB9.6 GB11.7 GBGPTQ equivalent bits per weight.
3_53.56.07.0 GB8.4 GB10.5 GBLower quality, not recommended.

His quantizations represent the first ~13B model with GQA support. Check out his repo for more information!

GGUF

Current GGUF Quantizations

AWQ

*Current AWQ Quantizations

TheBloke

These Quants will result in unpredicted behavior. New quants are available as I have updated the model

Quatizations provided by TheBloke

HF Spaces

  • GGUF chat available here
  • 4-bit bnb chat available here

Ollama

ollama run macadeliccc/laser-dolphin-mixtral-2x7b-dpo

image/png

Code Example

Switch the commented model definition to use in 4-bit. Should work with 9GB and still exceed the single 7B model by 5-6 points roughly

from transformers import AutoModelForCausalLM, AutoTokenizer

def generate_response(prompt):
    """
    Generate a response from the model based on the input prompt.

    Args:
    prompt (str): Prompt for the model.

    Returns:
    str: The generated response from the model.
    """
    # Tokenize the input prompt
    inputs = tokenizer(prompt, return_tensors="pt")

    # Generate output tokens
    outputs = model.generate(**inputs, max_new_tokens=256, eos_token_id=tokenizer.eos_token_id, pad_token_id=tokenizer.pad_token_id)

    # Decode the generated tokens to a string
    response = tokenizer.decode(outputs[0], skip_special_tokens=True)

    return response

# Load the model and tokenizer
model_id = "macadeliccc/laser-dolphin-mixtral-2x7b-dpo"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, load_in_4bit=True)

prompt = "Write a quicksort algorithm in python"

# Generate and print responses for each language
print("Response:")
print(generate_response(prompt), "\n")

colab with usage example

Eval

EQ Bench

evaluation colab

Summary of previous evaluation

ModelAGIEvalGPT4AllTruthfulQABigbenchAverage
laser-dolphin-mixtral-2x7b-dpo41.3173.6761.6942.7954.87

Detailed current evaluation

ModelAGIEvalGPT4AllTruthfulQABigbenchAverage
laser-dolphin-mixtral-2x7b-dpo42.2573.4563.4443.9655.77

AGIEval

TaskVersionMetricValueStderr
agieval_aqua_rat0acc21.26±2.57
acc_norm21.65±2.59
agieval_logiqa_en0acc34.72±1.87
acc_norm35.64±1.88
agieval_lsat_ar0acc26.96±2.93
acc_norm26.96±2.93
agieval_lsat_lr0acc45.88±2.21
acc_norm46.08±2.21
agieval_lsat_rc0acc59.48±3.00
acc_norm59.48±3.00
agieval_sat_en0acc73.79±3.07
acc_norm73.79±3.07
agieval_sat_en_without_passage0acc42.23±3.45
acc_norm41.26±3.44
agieval_sat_math0acc37.27±3.27
acc_norm33.18±3.18

Average: 42.25%

GPT4All

TaskVersionMetricValueStderr
arc_challenge0acc58.36±1.44
acc_norm58.02±1.44
arc_easy0acc82.20±0.78
acc_norm77.40±0.86
boolq1acc87.52±0.58
hellaswag0acc67.50±0.47
acc_norm84.43±0.36
openbookqa0acc34.40±2.13
acc_norm47.00±2.23
piqa0acc81.61±0.90
acc_norm82.59±0.88
winogrande0acc77.19±1.18

Average: 73.45%

GSM8K

TaskVersionMetricValueStderr
gsm8k2exact_match,get-answer0.75
exact_match_stderr,get-answer0.01
aliasgsm8k

TruthfulQA

TaskVersionMetricValueStderr
truthfulqa_mc1mc145.90±1.74
mc263.44±1.56

Average: 63.44%

Bigbench

TaskVersionMetricValueStderr
bigbench_causal_judgement0multiple_choice_grade58.42±3.59
bigbench_date_understanding0multiple_choice_grade60.70±2.55
bigbench_disambiguation_qa0multiple_choice_grade38.37±3.03
bigbench_geometric_shapes0multiple_choice_grade21.73±2.18
exact_str_match0.00±0.00
bigbench_logical_deduction_five_objects0multiple_choice_grade35.00±2.14
bigbench_logical_deduction_seven_objects0multiple_choice_grade23.57±1.61
bigbench_logical_deduction_three_objects0multiple_choice_grade50.33±2.89
bigbench_movie_recommendation0multiple_choice_grade45.00±2.23
bigbench_navigate0multiple_choice_grade50.00±1.58
bigbench_reasoning_about_colored_objects0multiple_choice_grade60.35±1.09
bigbench_ruin_names0multiple_choice_grade51.12±2.36
bigbench_salient_translation_error_detection0multiple_choice_grade32.26±1.48
bigbench_snarks0multiple_choice_grade67.96±3.48
bigbench_sports_understanding0multiple_choice_grade70.59±1.45
bigbench_temporal_sequences0multiple_choice_grade35.80±1.52
bigbench_tracking_shuffled_objects_five_objects0multiple_choice_grade22.56±1.18
bigbench_tracking_shuffled_objects_seven_objects0multiple_choice_grade17.20±0.90
bigbench_tracking_shuffled_objects_three_objects0multiple_choice_grade50.33±2.89

Average: 43.96%

Average score: 55.77%

Elapsed time: 02:43:45

Citations

Fernando Fernandes Neto and Eric Hartford. "Optimizing Large Language Models Using Layer-Selective Rank Reduction and Random Matrix Theory." 2024.

@article{sharma2023truth,
title={The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reduction},
author={Sharma, Pratyusha and Ash, Jordan T and Misra, Dipendra},
journal={arXiv preprint arXiv:2312.13558},
year={2023} }
@article{gao2021framework,
  title={A framework for few-shot language model evaluation},
  author={Gao, Leo and Tow, Jonathan and Biderman, Stella and Black, Sid and DiPofi, Anthony and Foster, Charles and Golding, Laurence and Hsu, Jeffrey and McDonell, Kyle and Muennighoff, Niklas and others},
  journal={Version v0. 0.1. Sept},
  year={2021}
}

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.67.16
AI2 Reasoning Challenge (25-Shot)65.96
HellaSwag (10-Shot)85.80
MMLU (5-Shot)63.17
TruthfulQA (0-shot)60.76
Winogrande (5-shot)79.01
GSM8k (5-shot)48.29

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей