/ Модель

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

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

TenyxChat-7B-v1

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

Англоязычная чат-модель Tenyx на базе OpenChat 3.5, дообученная методом DPO для ответов на вопросы и ведения диалогов.

73скачиваний за 30 дней25лайковвеса обновлены12 янв 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TenyxChat-7B-v1 — чат-модель компании Tenyx на архитектуре Mistral с 7,1 млрд параметров. Она дообучена на базе OpenChat 3.5 методом Direct Preference Optimization (DPO) на наборе предпочтений UltraFeedback и предназначена для диалогов в формате полезного ассистента. Модель принимает текст и генерирует текст; поддерживает английский язык и контекст до 8192 токенов.

Разработчики сообщают о результатах на MT-Bench и нескольких тестах общих знаний и рассуждений. В карточке заявлено, что их подход направлен на снижение забывания при дообучении; сама модель при этом может давать многословные ответы, испытывать трудности с математикой и рассуждениями и генерировать нежелательный контент при провокационных запросах. Она не была специально настроена на соответствие человеческим предпочтениям в области безопасности. Лицензия — Apache 2.0.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

TenyxChat: Language Model Alignment using Tenyx Fine-tuning

Introducing TenyxChat, a series of ChatGPT-like models trained to function as useful assistants through preference tuning, using Tenyx's recently released advanced fine-tuning technology (VentureBeat article). Our first chat model in the series, TenyxChat-7B-v1, is trained using the Direct Preference Optimization (DPO) framework on the open-source AI feedback dataset UltraFeedback.

We fine-tune Openchat-3.5 with our proprietary approach (blog, service), which shows an increase in MT-Bench, without a drop in performance of the model on other benchmarks. Our approach aims to mitigate forgetting in LLMs in a computationally efficient manner, thereby enabling continual fine-tuning capabilities without altering the pre-trained output distribution. TenyxChat-7B-v1 was trained using eight A100s (80GB) for two hours, with a training setup obtained from HuggingFaceH4 (GitHub).

Model details

Usage

Our model uses a simple chat template based on OpenChat 3.5. The chat template usage with a Hugging face generation example is shown below.

Chat Template (Jinja)

{{ bos_token }} 
{% for message in messages %}
	{% if message['role'] == 'user' %}
		{{ 'User:' + message['content'] + eos_token }}

	{% elif message['role'] == 'system' %}
		{{ 'System:' + message['content'] + eos_token }}

	{% elif message['role'] == 'assistant' %}
		{{ 'Assistant:'  + message['content'] + eos_token }}

	{% endif %}

{% if loop.last and add_generation_prompt %}\n{{ 'Assistant:' }}{% endif %}\n{% endfor %}

Hugging face Example

import torch
from transformers import pipeline

pipe = pipeline("text-generation", model="tenyx/TenyxChat-7B-v1", torch_dtype=torch.bfloat16, device_map="auto")

messages = [
    {"role": "system", "content": "You are a friendly chatbot who always responds in the style of a pirate."},
    {"role": "user", "content": "Hi. I would like to make a hotel booking."},
]

prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipe(prompt, max_new_tokens=512, do_sample=False)

Output

<s> System:You are a friendly chatbot who always responds in the style of a pirate.<|end_of_turn|>
User:Hi. I would like to make a hotel booking.<|end_of_turn|>
Assistant: Ahoy there me hearty! Arr, ye be lookin' fer a place to rest yer weary bones, eh? 
Well then, let's set sail on this grand adventure and find ye a swell place to stay!

To begin, tell me the location ye be seekin' and the dates ye be lookin' to set sail. 
And don't ye worry, me matey, I'll be sure to find ye a place that'll make ye feel like a king or queen on land!

Performance

At the time of release (Jan 2024), TenyxChat-7B-v1 is the highest-ranked 7B chat model on the MT-Bench evaluation available for download and commercial use. We list here the benchmark results on several standard setups while comparing popular 7B models as baselines.

MT-Bench

MT-Bench is a benchmark made up of 80 high-quality multi-turn questions. These questions fall into eight categories: Writing, Roleplay, Reasoning, Math, Coding, Extraction, STEM, and Humanities. The chat models are rated using GPT-4 on a scale of 1 to 10, with higher values corresponding to better responses.

ModelFirst TurnSecond TurnAverage
GPT-4*8.956259.025008.990625
TenyxChat-7B-v18.450007.756258.103125
Starling-lm-7B-alpha8.425007.687508.056250
OpenChat-3.58.181257.412507.796875
GPT-3.5-turbo*8.075007.812507.943750
OpenLLM Leader-7B**8.050007.612507.831250

*values reported on lmsys ChatBot Arena

**The OpenLLM Leader as of Jan 5, 2024 is the merge model available as samir-fama/SamirGPT-v1

hexplot.png

Comparison with additional Open LLM LeaderBoard models

ModelFirst TurnSecond TurnAverage
TenyxChat-7B-v18.450007.7562508.103125
SamirGPT-v18.050007.6125007.831250
FernandoGPT-v18.081257.2562507.668750
Go-Bruins-v28.137507.1500007.643750
mistral_tv-neural-marconroni7.768756.9875007.378125
neuronovo-7B-v0.27.737506.6625007.200000
neural-chat-7b-v3-37.393755.8812506.637500

LM Evaluation - Open LLM Leaderboard

We assess models on 7 benchmarks using the Eleuther AI Language Model Evaluation Harness. This setup is based of that used for Open LLM Leaderboard.

  • AI2 Reasoning Challenge (25-shot) - grade-school science questions.
  • HellaSwag (10-shot) - commonsense inference test.
  • MMLU (5-shot) - multitask accuracy test covering 57 tasks.
  • TruthfulQA (0-shot) - test measuring model's propensity to reproduce online falsehoods.
  • Winogrande (5-shot) - Winograd benchmark for commonsense reasoning.
  • GSM8k (5-shot) - grade school math word problems test.

These benchmarks test reasoning and knowledge in various tasks in few-shot settings (higher scores are better).

ModelMMLUWinograndeGSM8kARCHellaSwagTruthfulQAAverage
TenyxChat-7B-v163.672.369.062.766.646.763.48
Starling-7B-alpha63.572.167.961.166.142.162.13
OpenChat-3.563.672.168.261.365.241.862.03
Mistral-7B62.474.038.157.262.837.855.38
OpenLLM Leader-7B64.378.773.366.668.458.568.3

Note: While the Open LLM Leaderboard indicates that these chat models perform less effectively compared to the leading 7B model, it's important to note that the leading model struggles in the multi-turn chat setting of MT-Bench (as demonstrated in our evaluation above). In contrast, TenyxChat-7B-v1 demonstrates robustness against common fine-tuning challenges, such as catastrophic forgetting. This unique feature enables TenyxChat-7B-v1 to excel not only in chat benchmarks like MT-Bench, but also in a wider range of general reasoning benchmarks on the Open LLM Leaderboard.

Limitations

TenyxChat-7B-v1, like other small-sized language models, has its own set of limitations. We haven’t fine-tuned the model explicitly to align with human safety preferences. Therefore, it is capable of producing undesirable outputs, particularly when adversarially prompted. From our observation, the model still tends to struggle with tasks that involve reasoning and math questions. In some instances, it might generate verbose or extraneous content.

License

TenyxChat-7B-v1, similar to OpenChat 3.5, is distributed under the Apache License 2.0.

Citation

If you use TenyxChat-7B for your research, cite us as

@misc{tenyxchat2024,
      title={TenyxChat: Language Model Alignment using Tenyx Fine-tuning}, 
      author={Tenyx},
      year={2024},
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей