/ Модель

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

Контекст
32 768 токенов
Параметры
7,1 млрд
Лицензия
Своя лицензия
Архитектура
mistral · dense
Базовая модель
Mistral-7B-Instruct-v0.3
Библиотека
transformers
Опубликована
13 авг 2026

mistral-7b-instruct-v0.3-bf16

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

Инструктивно дообученная Mistral 7B в формате bf16 для генерации SQL по запросам на естественном языке.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это инструктивно дообученная модель VikramPal на базе mistralai/Mistral-7B-Instruct-v0.3 для преобразования запросов на естественном языке в SQL. Модель использует плотную архитектуру MistralForCausalLM, содержит 7,1 млрд параметров и принимает текст; базовая модель поддерживает контекст до 32 768 токенов. Для дообучения применялся LoRA-адаптер ранга 32 на 39 531 примере диалогов по text-to-SQL за две эпохи, после чего адаптер был объединён с базовой моделью. В этом репозитории веса представлены в формате safetensors с точностью bf16.

В тестировании на 2 454 отложенных задачах показатель совпадения результатов выполнения SQL составил 78,16%; в разбивке по источникам он составил 77,02% для Gretel, 63,57% для Spider и 93,89% для WikiSQL. Оценка относится только к генерации SQL на этих наборах и не характеризует скорость генерации или качество на других задачах. Указанная в метаданных лицензия — other; конкретные условия следует сверить с карточкой модели.

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

  • генерация SQL-запросов по вопросу пользователя
  • преобразование диалоговых запросов в запросы к базе данных
  • подготовка SQL для схем Gretel, Spider и WikiSQL

Ограничения

Оценка приведена только для text-to-SQL на конкретных отложенных наборах и не показывает качество на других задачах. Скорость генерации и пиковое потребление VRAM не измерялись.

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

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

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

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

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

Открыть на Hugging Face

Mistral-7B-Instruct-v0.3 text-to-SQL, bf16

mistralai/Mistral-7B-Instruct-v0.3 fine-tuned on text-to-SQL, merged and left in bf16. It is the ceiling arm of a panel of 9 arms: every quantized arm below was made from this checkpoint and allocated the same byte budget, so their accuracies differ by method and not by size.

What this is

base modelmistralai/Mistral-7B-Instruct-v0.3
fine-tunelora r=32, 2.0 epoch over 39,531 text-to-SQL conversations
the adapter it mergedVikramPal/mistral-7b-instruct-v0.3-lora
training datagretelai/synthetic_text_to_sql, Salesforce/wikisql, b-mc2/sql-create-context
quantizationnone -- this is the bf16 fine-tune every quantized arm was made from
size on disk13.500 GiB (16.0000 bits per parameter)
loads withtransformers

Results

Execution match on 2,454 held-out text-to-SQL problems: the generated query is run against the schema and compared to the reference result set.

armexec matchsizebits/param
bf1678.16%13.500 GiB16.0000
gptq_4b78.28%3.692 GiB4.3760
awq_4b77.91%3.692 GiB4.3760
dq_4b78.08%3.692 GiB4.3754
gptq_3b6.68%2.858 GiB3.3869
awq_3b74.16%2.858 GiB3.3869
dq_3b75.22%2.857 GiB3.3859
gptq_3b_asym_noao76.08%2.858 GiB3.3869
gptq_3b_asym3.99%2.858 GiB3.3869

This arm, by evaluation source:

eval sourceexec matchitems
gretel77.02%818
spider63.57%818
wikisql93.89%818

How this arm compares

McNemar exact over the per-item hits, so every row is a paired test on the same problems in the same order. p (Holm) is step-down corrected within the family the panel declared, not within this card.

comparisondelta (pts)95% CIpp (Holm)verdict
4b GPTQ vs bf16+0.12[-0.54, +0.79]0.811not separated
4b AWQ vs bf16-0.24[-1.05, +0.56]0.6211not separated
4b DynQuant vs bf16-0.08[-0.83, +0.67]0.9151not separated
3b GPTQ vs bf16-71.48[-73.30, -69.65]00separated
3b AWQ vs bf16-3.99[-5.29, -2.70]1.8e-099.01e-09separated
3b DynQuant vs bf16-2.93[-4.16, -1.71]3.55e-061.42e-05separated

What is not claimed

  • The arms above are not all the same scheme. In this panel GPTQ runs symmetric with no activation reordering, asymmetric with no activation reordering, and asymmetric with group activation reordering; AWQ runs asymmetric with no activation reordering. DynQuant's quantizer is asymmetric and does not reorder columns, which is a property of the method rather than a recipe flag, so the panel records no scheme for its arms. Where a comparison above pairs a symmetric arm against an asymmetric one its delta spans two differences at once -- how the bits were allocated, and whether a zero point was stored per group -- so a large gap between those two arms is not on its own evidence about allocation. The comparison that isolates it is in this panel: gptq_3b and gptq_3b_asym_noao are the same method at the same byte anchor and differ in the scheme alone, so the difference between those two rows is the scheme and nothing else.
  • Storage, measured; throughput, not. The number reported here is bytes on disk and execution match. This card makes no claim about decode speed or peak VRAM against an fp16 baseline, because this panel did not measure either.
  • One task. Execution match on held-out text-to-SQL is what was scored. It says nothing about how this arm behaves on anything else, and a quantization that holds one task can lose another.

Install

This checkpoint is plain bf16 and loads with transformers alone. It is the ceiling arm of a DynQuant panel: the quantized arms in the table above are this same fine-tune at a fraction of the size, and those need the package.

pip install dynquant

Source, format spec, and the allocator that produced their bit maps: https://github.com/kambojvikram/dynquant

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("VikramPal/mistral-7b-instruct-v0.3-bf16", device_map="cuda")
tokenizer = AutoTokenizer.from_pretrained("VikramPal/mistral-7b-instruct-v0.3-bf16")

Provenance

  • panel model: /workspace/runs/s4/mistral7b-v03.text2sql/merged
  • parameters counted: 7,248,023,552
  • byte target: --
  • fine-tune: 2472 steps, train loss 0.0540, 3.8 h
  • fine-tune commit: 5959fe04b7db0512eaf7567d77a43f3df5860651
  • evaluation: 2,454 problems in 10 min

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей