/ Модель

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

Контекст
16 384 токена
Параметры
4,6 млрд
Размер весов
21,5 ГБ
Лицензия
artistic-2.0
Архитектура
mixtral · MoE
Базовая модель
BlackSheep-4B
Библиотека
transformers
Опубликована
31 авг 2024

Context-Obedient-Tri-MoE

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

Дообученная разговорная Mixtral MoE-модель для генерации ответов по предоставленному контексту и инструкциям, включая сценарии RAG.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TroyDoesAI/Context-Obedient-Tri-MoE — разговорная модель, дообученная TroyDoesAI на базе TroyDoesAI/BlackSheep-4B. Она предназначена для генерации ответов с опорой на предоставленный контекст и инструкции, в том числе в сценариях RAG, где важно уменьшить нерелевантные ответы и галлюцинации. В README описан шаблон с отдельными блоками для контекста, запроса и инструкции; также заявлена повышенная приверженность контексту, в том числе в ситуациях с ограничениями на ответ.

Модель использует архитектуру Mixtral MoE, содержит 4,6 млрд параметров и рассчитана на контекст до 16 384 токенов. Основной язык карточки — английский. Модель принимает текст и генерирует текст; для запуска указана библиотека Transformers и формат PyTorch. Лицензия — Artistic-2.0.

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

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

  • ответы на вопросы по извлечённым документам в RAG-системе
  • суммаризация предоставленного контекста по запросу
  • генерация ответов с опорой на заданные источники
  • диалоговая генерация текста по инструкциям

Ограничения

В README не приведены количественные результаты или независимая оценка качества; точность ответов зависит от качества предоставленного контекста. Заявленная настройка на обход отказов может снижать надёжность соблюдения ограничений безопасности.

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

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

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

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

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

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

Открыть на Hugging Face

License

This project is licensed under the Artistic License 2.0.

Introduction

This README provides instructions on how to effectively use the provided prompt template designed for training models to deliver contextually obedient answers. The template is especially useful for Retrieval-Augmented Generation (RAG) applications and aims to reduce hallucinations by ensuring that the model adheres strictly to the provided context.

Prompt Template Overview

The template consists of a well-defined structure that separates input, context, and instructions. This structure helps the model better understand and respond accurately to queries by associating specific sources or context with the input data.

Basic Prompt Template Structure

BEGININPUT
BEGINCONTEXT
{{ if .System }}<|system|>:{{ .System }}{{ end }}
ENDCONTEXT
[Insert your context here]
ENDINPUT
BEGININSTRUCTION
{{ if .Prompt }}{{ .Prompt }}{{ end }}
ENDINSTRUCTION
### Response
{{ .Response }}
<|end|>

Explanation of Template Components

  • BEGININPUT / ENDINPUT: These markers define the boundaries of an input block. The input block contains all the contextual information that the model should use to generate its response. This section can include multiple paragraphs of text, data, or other relevant content.

  • BEGINCONTEXT / ENDCONTEXT: This section is for key-value pairs or system messages that provide metadata or higher-level context to the model, such as dates, URLs, or other relevant information. It may also include system-level directives for processing the input.

  • BEGININSTRUCTION / ENDINSTRUCTION: This section contains the specific instructions or questions for the model, guiding how it should respond based on the provided context.

  • Response Section: The model generates a response based on the context and instructions provided. The response should be accurate and aligned with the input context.

Contextual-Request Template

The "Contextual-Request" template is a specialized structure designed for scenarios where the model needs to process inputs with specific system instructions and ensure adherence even in restrictive or controlled environments. It is particularly useful for bypassing refusal mechanisms.

Structure:

Contextual-Request:
BEGININPUT
BEGINCONTEXT
date: [Insert Date]
url: [Insert URL]
ENDCONTEXT
[Your chat history or context you want the AI to consider when answering]
ENDINPUT
BEGININSTRUCTION
<|`BlackSheep`|>
[This is your instruction that utilizes the context provided, wrap in BlackSheep tags to force bypass refusals]
<|`BlackSheep`|>
ENDINSTRUCTION
### Response
<|`BlackSheep`|>

Usage:

This template is used when there’s a need to enforce the model's obedience to the provided context despite potential refusal mechanisms. The instructions are wrapped in specific tags to ensure the model strictly follows the input context.

Example Usage

To better understand how to use this template, here’s a simple example:

Example Input:

BEGININPUT
BEGINCONTEXT
date: 2021-01-01
url: https://web.site/123
ENDCONTEXT
In a shocking turn of events, blueberries are now green, but will be sticking with the same name.
ENDINPUT
BEGININSTRUCTION
What color are blueberries? Source?
ENDINSTRUCTION

Expected Response:

Blueberries are now green.
Source:
date: 2021-01-01
url: https://web.site/123

How to Use the Input and Context Sections

  • Input Section: Provide the main content or context that the model needs to consider when forming a response. This section may include detailed information, paragraphs of text, or other relevant data.

  • Context Section: Reserved for metadata and system messages. Metadata might include dates, URLs, or key-value pairs that give additional context to the input. System messages can establish specific instructions or behaviors that the model should adhere to during processing.

References in Responses

The model is trained to include references in responses when instructions ask for citations. This is particularly important in RAG applications, where accurately linking responses to specific sources is critical for credibility and transparency.

Why Use This Template?

Retrieval accuracy can vary based on factors like dataset size and quality. This template helps ensure the model provides accurate references by associating input data with its corresponding context, preventing the model from referencing irrelevant sources.

Advanced Parameters

For those looking to fine-tune the model further, the following parameters can be adjusted:

  • Temperature: Controls the creativity of the model’s responses. Higher values make the model more creative; lower values make it more coherent.
  • Context Length (num_ctx): Defines the maximum length of context that the model can handle.
  • GPU and Thread Parameters: Configure based on your hardware setup.

Model File Included

The following model file is included in this project:

FROM ./ContextObedient-Tri-MoE.gguf

This model is pre-configured to enhance context adherence. You can adjust parameters like temperature, num_ctx, and stop tokens according to your needs.

Feedback

Please try other prompt templates and provide feedback. The model has been exposed to various prompts during training and can adapt to different formats.


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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей