/ Модель

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

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

Hercules-2.0-Mistral-7B

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

Дообученная модель Mistral на 7,1 млрд параметров для диалогов, следования инструкциям и технических задач, включая генерацию кода.

78скачиваний за 30 дней17лайковвеса обновлены12 фев 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Hercules-2.0-Mistral-7B — языковая модель на архитектуре Mistral, разработанная Locutusque и дообученная на базе Mistralai/Mistral-7B-v0.1. Она предназначена для выполнения инструкций, диалогов и вызова функций в научных и технических темах, включая биологию, химию, физику, математику, медицину и информатику. Модель содержит 7,1 млрд параметров, принимает текст и поддерживает контекст до 32 768 токенов. В карточке заявлены возможности генерации кода и вызова функций.

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

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

Model Card: Hercules-2.0-Mistral-7B

image/png

Model Description

Hercules-2.0-Mistral-7B is a fine-tuned language model derived from Mistralai/Mistral-7B-v0.1. It is specifically designed to excel in instruction following, function calls, and conversational interactions across various scientific and technical domains. The dataset used for fine-tuning, also named Hercules-v2.0, expands upon the diverse capabilities of OpenHermes-2.5 with contributions from numerous curated datasets. This fine-tuning has endowed Hercules-v2.0 with enhanced abilities in:

  • Complex Instruction Following: Understanding and accurately executing multi-step instructions, even those involving specialized terminology.
  • Function Calling: Seamlessly interpreting and executing function calls, providing appropriate input and output values.
  • Domain-Specific Knowledge: Engaging in informative and educational conversations about Biology, Chemistry, Physics, Mathematics, Medicine, Computer Science, and more.

This model outperforms OpenHermes-2.5 and OpenChat-3.5, even when it is trained on only 100,000 rows, which is ten times less than the training data of OpenHermes-2.5.

Intended Uses & Potential Bias

Hercules-2.0-Mistral-7B is well-suited to the following applications:

  • Specialized Chatbots: Creating knowledgeable chatbots and conversational agents in scientific and technical fields.
  • Instructional Assistants: Supporting users with educational and step-by-step guidance in various disciplines.
  • Code Generation and Execution: Facilitating code execution through function calls, aiding in software development and prototyping.

Important Note: Although Hercules-v2.0 is carefully constructed, it's important to be aware that the underlying data sources may contain biases or reflect harmful stereotypes. Use this model with caution and consider additional measures to mitigate potential biases in its responses.

Limitations and Risks

  • Toxicity: The dataset may still contain toxic or harmful examples despite cleaning efforts.
  • Hallucinations and Factual Errors: Like other language models, Hercules-2.0-Mistral-7B may generate incorrect or misleading information, especially in specialized domains where it lacks sufficient expertise.
  • Potential for Misuse: The ability to engage in technical conversations and execute function calls could be misused for malicious purposes.

Evaluation Metrics

To provide suitable benchmarks for Hercules-2.0-Mistral-7B, consider using a combination of the following metrics:

  • Instruction Following: Task-specific evaluation datasets for instruction following in relevant domains (e.g., datasets specifically focused on math problems, code generation, etc.).
  • Function Calling: Evaluate the model's accuracy in interpreting and executing function calls with varying inputs and outputs.
  • Conversational Quality: Assess the model's ability to maintain coherence, naturalness, and informativeness across conversational turns.

Training Data

Hercules-2.0-Mistral-7B is fine-tuned from the following sources:

  • cognitivecomputations/dolphin (first 200k examples)
  • Evol Instruct 70K && 140K
  • teknium/GPT4-LLM-Cleaned
  • jondurbin/airoboros-3.2
  • AlekseyKorshuk/camel-chatml
  • CollectiveCognition/chats-data-2023-09-22
  • Nebulous/lmsys-chat-1m-smortmodelsonly
  • glaiveai/glaive-code-assistant-v2
  • glaiveai/glaive-code-assistant
  • glaiveai/glaive-function-calling-v2
  • garage-bAInd/Open-Platypus
  • meta-math/MetaMathQA (first 40k examples)
  • teknium/GPTeacher-General-Instruct
  • GPTeacher roleplay datasets
  • BI55/MedText
  • pubmed_qa labeled subset
  • Unnatural Instructions
  • CollectiveCognition/chats-data-2023-09-27
  • CollectiveCognition/chats-data-2023-10-16

Training Procedure

  • This model was trained on 8 kaggle TPUs, using torch xla SPMD for high MXU efficiency. There was no expense on my end (meaning you can reproduce this too!)
  • A learning rate of 2e-06 with the Adam optimizer. A linear scheduler was used, with an end factor of 0.5. A low learning rate was used to prevent exploding gradients.
  • No mixed precision was used, with the default dtype being bfloat16.
  • Trained on 200,000 examples of Hercules-v2.0.
  • No model parameters were frozen.
  • This model was trained on OpenAI's ChatML prompt format. Because this model has function calling capabilities, the prompt format is slightly different, here's what it would look like: <|im_start|>system\n{message}<|im_end|>\n<|im_start|>user\n{user message}<|im_end|>\n<|im_start|>call\n{function call message}<|im_end|>\n<|im_start|>function\n{function response message}<|im_end|>\n<|im_start|>assistant\n{assistant message}</s>

This model was fine-tuned using the TPU-Alignment repository. https://github.com/Locutusque/TPU-Alignment

Updates

  • 🔥 February 3, 2024: This model scored an average of 62 on Open LLM Leaderboard, outperforming OpenHermes-2.5 and OpenChat-3.5.

Quants

exl2 by @bartowski https://huggingface.co/bartowski/Hercules-2.0-Mistral-7B-exl2

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.62.69
AI2 Reasoning Challenge (25-Shot)61.09
HellaSwag (10-Shot)83.69
MMLU (5-Shot)63.47
TruthfulQA (0-shot)43.97
Winogrande (5-shot)79.48
GSM8k (5-shot)44.43

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей