/ Модель

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

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

Narwhal-7b-v3

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

Слитая языковая модель Mistral на 7,1 млрд параметров для генерации текста и автоматической разметки, включая анализ тональности с выдачей JSON.

56скачиваний за 30 дней0лайковвеса обновлены5 дек 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Narwhal-7b-v3 — языковая модель Vezora, созданная слиянием методом Tie на основе OpenChat 3.5 и una-cybertron-7b-v2-bf16. Это плотная causal language model семейства Mistral с 7,1 млрд параметров и контекстом до 32 768 токенов. Модель предназначена для генерации текста и, по карточке, особенно хорошо подходит для автоматической разметки данных: она может присваивать предложениям метки тональности и возвращать результат в JSON.

Её можно применять для предварительной разметки текстовых корпусов, классификации тональности по предложениям и подготовки структурированных обучающих данных с последующей проверкой человеком. README приводит пример на английском языке; метаданные не задают список поддерживаемых языков. Репозиторий содержит веса Safetensors и распространяется по лицензии Apache-2.0. Заявление о качестве в карточке не сопровождается оценками или сравнительными тестами, поэтому точность разметки следует проверять на целевых данных.

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

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

Ограничения

Заявленное качество разметки не подтверждено оценками или сравнительными тестами в карточке. Результаты автоматической разметки могут требовать проверки человеком.

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

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

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

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

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

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

Открыть на Hugging Face

This is a merge model using Tie merge method. Created using openchat 3.5 and una-cybertron-7b-v2-bf16.

Instruction template:

import transformers
tokenizer = transformers.AutoTokenizer.from_pretrained("openchat/openchat_3.5")

# Single-turn
tokens = tokenizer("GPT4 Correct User: Hello<|end_of_turn|>GPT4 Correct Assistant:").input_ids
assert tokens == [1, 420, 6316, 28781, 3198, 3123, 1247, 28747, 22557, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747]

# Multi-turn
tokens = tokenizer("GPT4 Correct User: Hello<|end_of_turn|>GPT4 Correct Assistant: Hi<|end_of_turn|>GPT4 Correct User: How are you today?<|end_of_turn|>GPT4 Correct Assistant:").input_ids
assert tokens == [1, 420, 6316, 28781, 3198, 3123, 1247, 28747, 22557, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747, 15359, 32000, 420, 6316, 28781, 3198, 3123, 1247, 28747, 1602, 460, 368, 3154, 28804, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747]

# Coding Mode
tokens = tokenizer("Code User: Implement quicksort using C++<|end_of_turn|>Code Assistant:").input_ids
assert tokens == [1, 7596, 1247, 28747, 26256, 2936, 7653, 1413, 334, 1680, 32000, 7596, 21631, 28747]

This model is exceptionally well at labeling data, bringing down labeling cost to server cost. Hurray! Here is an example

User: This is raw text, i want you to label it. in a json format. text: " To build high-performing machine learning models, you need high quality data. Getting ahold of this data can be costly, complex, and inefficient. Labels created by people are needed for the majority of models to help them generate the correct predictions. To help streamline and automate this process, you can apply a machine learning model to label the data directly.

Firstly, a machine learning model is trained on a subset of raw training data that has already been labeled by humans. A model with a track record of producing precise outcomes from the information that it has learned thus far, can add labels to unlabeled data automatically. A less accurate model requires human annotators to add labels. Labels created by humans enable the model to learn and enhance its capacity to categorize new data.

Eventually, the model is able to label an increasing amount of data automatically and speed up the creation of training datasets. Of course, implementing quality control in such models is also a necessity, as with time it might drift and start producing less accurate results. In this case, human annotators can step in again.

Internal labeling (in-house), synthetic labeling (generating new data from previous datasets), programmatic labeling (using scripts), outsourcing (or freelancing) constitute a variety of data labeling methods. However, our favorite is obviously crowdsourcing — a great way to outsource data labeling and get around the drawn-out and expensive management processes. Check out our data labeling platform to learn more!"

Narwhal-7b-v3: Here is the given text with added JSON formatted labels. Each sentence has been assigned a label indicating whether it expresses a positive, negative, or neutral sentiment:

{

"text": [ {

"content": "To build high-performing machine learning models, you need high quality data.",

"label": "neutral"

},

{

"content": "Getting ahold of this data can be costly, complex, and inefficient.",

"label": "negative"

},

{

"content": "Labels created by people are needed for the majority of models to help them generate the correct predictions.",

"label": "neutral"

},

{

"content": "To help streamline and automate this process, you can apply a machine learning model to label the data directly.",

"label": "positive"

},

{

"content": "Firstly, a machine learning model is trained on a subset of raw training data that has already been labeled by humans.",

"label": "neutral"

},

{

"content": "A model with a track record of producing precise outcomes from the information that it has learned thus far, can add labels to unlabeled data automatically.",

"label": "positive"

},

{

"content": "A less accurate model requires human annotators to add labels.",

"label": "neutral"

},

{

"content": "Labels created by humans enable the model to learn and enhance its capacity to categorize new data.",

"label": "positive"

},

{

"content": "Eventually, the model is able to label an increasing amount of data automatically and speed up the creation of training datasets.",

"label": "positive"

},

{

"content": "Of course, implementing quality control in such models is also a necessity, as with time it might drift and start producing less accurate results.",

"label": "neutral"

},

{

"content": "In this case, human annotators can step in again.",

"label": "neutral"

},

{

"content": "Internal labeling (in-house), synthetic labeling (generating new data from previous datasets), programmatic labeling (using scripts), outsourcing (or freelancing) constitute a variety of data labeling methods.",

"label": "neutral"

},

{

"content": "However, our favorite is obviously crowdsourcing — a great way to outsource data labeling and get around the drawn-out and expensive management processes.",

"label": "positive"

},

{

"content": "Check out our data labeling platform to learn more!",

"label": "neutral"

} ]

}

This JSON object now represents the original text with labeled sentiments for each sentence. You can further utilize this structured data to train sentiment analysis models or perform various analyses.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей