/ Модель

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

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

Mistral-2.5-Prima-Hercules-Fusion-7B

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

Объединённая модель Mistral 7B для диалоговых ассистентов, многоходовых бесед и генерации текста.

26скачиваний за 30 дней2лайкавеса обновлены13 ноя 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Mistral-2.5-Prima-Hercules-Fusion-7B — объединённая языковая модель на архитектуре Mistral, созданная слиянием hydra-project/ChatHercules-2.5-Mistral-7B и Nitral-Archive/Prima-Pastacles-7b методом SLERP. Модель содержит 7,1 млрд параметров, работает с текстом и имеет контекстное окно до 32 768 токенов. Опубликована в формате safetensors и доступна по лицензии Apache-2.0.

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

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

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

Ограничения

Карточка рекомендует дообучение для оптимальной работы в специализированных сценариях и указывает на высокие требования к вычислительным ресурсам, особенно при запуске на GPU. Независимые результаты оценки качества не приведены.

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

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

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

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

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

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

Открыть на Hugging Face

Mistral-2.5-Prima-Hercules-Fusion-7B

Mistral-2.5-Prima-Hercules-Fusion-7B is a sophisticated language model crafted by merging hydra-project/ChatHercules-2.5-Mistral-7B with Nitral-Archive/Prima-Pastacles-7b using the spherical linear interpolation (SLERP) method. This fusion leverages the conversational depth of Hercules and the contextual adaptability of Prima, resulting in a model that excels in dynamic assistant applications and multi-turn conversations.

🚀 Merged Models

This model merge incorporates the following:

🧩 Merge Configuration

The configuration below outlines how the models are merged using spherical linear interpolation (SLERP). This method ensures a seamless blend of architectural layers from both source models, optimizing their unique strengths for enhanced performance.

# Mistral-2.5-Prima-Hercules-Fusion-7B Merge Configuration
slices:
  - sources:
      - model: hydra-project/ChatHercules-2.5-Mistral-7B
        layer_range: [0, 32]
      - model: Nitral-Archive/Prima-Pastacles-7b
        layer_range: [0, 32]
merge_method: slerp
base_model: hydra-project/ChatHercules-2.5-Mistral-7B
parameters:
  t:
    - filter: self_attn
      value: [0, 0.5, 0.3, 0.7, 1]
    - filter: mlp
      value: [1, 0.5, 0.7, 0.3, 0]
    - value: 0.5
dtype: bfloat16

Key Parameters

  • Self-Attention Filtering (self_attn): Modulates the blending across self-attention layers, allowing the model to balance attention mechanisms from both source models effectively.
  • MLP Filtering (mlp): Fine-tunes the integration within Multi-Layer Perceptrons, ensuring optimal neural network layer performance.
  • Global Weight (t.value): Applies a universal interpolation factor to layers not explicitly filtered, maintaining an even blend between models.
  • Data Type (dtype): Utilizes bfloat16 to maintain computational efficiency while preserving high precision.

🏆 Performance Highlights

  • Enhanced Multi-Turn Conversation Handling: Improved context retention facilitates more coherent and contextually aware multi-turn interactions.
  • Dynamic Assistant Applications: Excels in role-play and scenario-based interactions, providing nuanced and adaptable responses.
  • Balanced Integration: Combines the conversational depth of Hercules with the contextual adaptability of Prima for versatile performance across various tasks.

🎯 Use Case & Applications

Mistral-2.5-Prima-Hercules-Fusion-7B is designed to excel in environments that demand both conversational prowess and specialized task execution. Ideal applications include:

  • Advanced Conversational Agents: Powering chatbots and virtual assistants with nuanced understanding and responsive capabilities.
  • Educational Tools: Assisting in tutoring systems, providing explanations, and facilitating interactive learning experiences.
  • Content Generation: Creating high-quality, contextually relevant content for blogs, articles, and marketing materials.
  • Technical Support: Offering precise and efficient support in specialized domains such as IT, healthcare, and finance.
  • Role-Playing Scenarios: Enhancing interactive storytelling and simulation-based training with dynamic and contextually aware responses.

📝 Usage

To utilize Mistral-2.5-Prima-Hercules-Fusion-7B, follow the steps below:

Installation

First, install the necessary libraries:

pip install -qU transformers accelerate

Inference

Below is an example of how to load and use the model for text generation:

from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
import torch

# Define the model name
model_name = "ZeroXClem/Mistral-2.5-Prima-Hercules-Fusion-7B"

# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_name)

# Load the model
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# Initialize the pipeline
text_generator = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# Define the input prompt
prompt = "Explain the significance of artificial intelligence in modern healthcare."

# Generate the output
outputs = text_generator(
    prompt,
    max_new_tokens=150,
    do_sample=True,
    temperature=0.7,
    top_k=50,
    top_p=0.95
)

# Print the generated text
print(outputs[0]["generated_text"])

Notes

  • Fine-Tuning: This merged model requires fine-tuning for optimal performance in specific applications.
  • Resource Requirements: Ensure that your environment has sufficient computational resources, especially if deploying on GPU-enabled hardware for faster inference.

📜 License

This model is open-sourced under the Apache-2.0 License.

💡 Tags

  • merge
  • mergekit
  • slerp
  • Mistral
  • hydra-project/ChatHercules-2.5-Mistral-7B
  • Nitral-Archive/Prima-Pastacles-7b

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей