/ Модель

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

Контекст
262 144 токена
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-2B
Библиотека
transformers
Опубликована
15 сен 2026

qwen3.5-2b-grpo-sqale

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

Дообученный агент Qwen3.5-2B исследует базу данных через инструменты и формирует SQL-запросы по вопросам на естественном языке.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

cwolff/qwen3.5-2b-grpo-sqale — дообученная модель-агент на базе Qwen/Qwen3.5-2B, созданная cwolff для преобразования вопросов на естественном языке в SQL-запросы. Она исследует базу данных через инструменты, получает результаты их вызова и затем отправляет SQL-запрос; обучение с GRPO использовало выполнение запросов на SQLite и наборы cwolff/queries и cwolff/schemas.

Модель относится к плотной архитектуре Qwen3.5 с 2 млрд параметров и рассчитана на диалоговый режим. Для работы ей нужен цикл агента: каждый ответ представляет собой JSON-вызов инструмента, который приложение выполняет и передаёт модели как следующий ход. Обучение использовало бюджет эпизода 24 576 токенов; это значение не следует считать подтверждённым максимальным контекстом модели.

В карточке приведены результаты на BIRD dev, включая сложные вопросы, и описан выигрыш относительно исходной модели на сложных запросах. Практическое качество зависит от реализации цикла инструментов и схемы базы данных; без такого цикла модель, согласно README, работает заметно хуже. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3.5-2B · agentic GRPO with a length curriculum

A 2B text-to-SQL agent: it explores a database with tools, then submits a query, and was trained with GRPO against real SQLite execution.

  • Length curriculum. The sampling pool is reweighted by gold-query length quantile, shifting from short toward long queries over 1000 steps.
  • Harder data. simple + moderate + hard, on a newer SQaLe3 pair.
  • Double the episode budget — 24,576 tokens against 12,288.

Sibling models, same family: grpo-bird · grpo-synsql

Results

Measured on this repo as published, loaded straight into vLLM, through the same agentic harness for every row: exec_plan protocol, 6 tool turns, T=0.6 / top-p 0.95 / top-k 20, scored by executing against real databases.

benchmarkmodeofficialstrictn
BIRD devschema in prompt0.5370.497300
BIRD devschema withheld0.4730.433300
BIRD dev, challenging onlyschema in prompt0.3470.313144
BIRD dev, challenging onlyschema withheld0.3260.292144
SQaLe3 testwithheld, 64-table cap0.5730.540300
SQaLe3 testwithheld, full schema0.5830.533300
Spider 2.0-liteschema in prompt0.046—87
Spider 2.0-liteschema withheld0.046—87

BIRD and SQaLe3 use BIRD-official set semantics. Spider 2.0 uses its own upstream comparator on its local-SQLite subset (87 of 547 questions), is not numerically comparable to the other two, and is not a leaderboard number.

What the RL bought, on the hardest questions

BIRD tags 145 of its 1,534 dev questions challenging. On all of them, same harness, paired on the question:

modelparamsschema shownwithheld
Qwen3.5-2B (untrained)2B0.0830.132
this model2B0.3470.326
Qwen3.5-9B (untrained)9B0.4310.333
Qwen3.8-27B (untrained)27B0.6040.583

Against its own untrained base the gain is large and unambiguous — paired McNemar p < 0.0001 in both modes. Against an untrained 9B it is behind with the schema shown, but level when the schema is withheld (0.326 vs 0.333, p = 0.74). That is the regime it was trained in (EXPLORE_SHARE=1.0), and it is where a 2B trades evenly with a model 4.5× its size. The 9B's submit rate collapses from 0.34 to 0.06 when it has to discover the schema itself; this model's holds.

Does the published repo match what training measured?

Training builds its vLLM engine from the base model and syncs the checkpoint's weights in; this repo is the rebuilt, directly-loadable one. Compared paired over the same 300 questions:

modeweight-sync paththis repopaired deltaMcNemar p
schema shown0.5530.537−0.017, 95% CI [−0.050, +0.020]0.46
withheld0.5230.473−0.050, 95% CI [−0.090, −0.010]0.020

The withheld row is significant, so state it plainly: on that mode the directly-loaded repo scored 5 points below the weight-sync path. The weights are bit-identical to the training checkpoint — verified tensor by tensor, not inferred — so there is no mechanism for the two to differ, and this is one of two significant results across ten such paired tests on this model family (the other went the opposite way). The most likely explanation is run-to-run sampling variance under continuous batching, which is large for a model that truncates a third of its episodes. It is reported rather than buried; if it matters to you, re-run the eval at a different seed.

Serving

vllm serve cwolff/qwen3.5-2b-grpo-curriculum --max-model-len 24576

generation_config.json stops on both <|im_end|> (248046) and <|endoftext|> (248044), matching the stop set used during RL rollouts. Give it a larger context than its siblings — it was trained at a 24,576-token episode budget and uses it.

How to prompt it

It expects an agent loop and will underperform badly without one. Each assistant turn emits a single JSON object and nothing else; your harness executes it and feeds the result back as the next user turn.

{"tool": "list_tables"}
{"tool": "describe_table", "args": {"table_name": "singer"}}
{"tool": "run_query", "args": {"sql": "SELECT COUNT(*) FROM singer"}}
{"tool": "submit_sql", "args": {"sql": "SELECT COUNT(*) FROM singer"}}

Tools: list_tables, describe_table, foreign_keys, join_path, sample_rows, run_query, distinct_values, submit_sql. submit_sql ends the episode. Assistant turns open with a <think> block — keep thinking on. The exact system prompt is EXEC_PLAN_TOOL_INSTRUCTIONS in shared/tools/protocol.py; use that string rather than paraphrasing.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей