/ Модель

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

Контекст
4 096 токенов
Параметры
217 млн
Лицензия
Apache 2.0
Архитектура
qagent · dense
Базовая модель
Q-164M
Библиотека
transformers
Опубликована
29 сен 2026

Q-U-164M

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

Q-U-164M — компактная диалоговая модель q-project для экспериментального вызова вычислительного инструмента в ответ на текстовые запросы.

225скачиваний за 30 дней3лайкавеса обновлены29 сен 2026

Бенчмарки

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

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

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

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

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

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

Q-U-164M — диалоговая версия Q-164M от q-project, дообученная для следования инструкциям и вызова инструмента через детерминированный исполнитель вычислительных операций. Модель построена на плотной архитектуре QAgentForCausalLM с трёхзначными весами; в README указано 164,6 млн параметров, а в метаданных — 216,5 млн. Контекст составляет 4096 токенов. Модель принимает текст и генерирует текст с диалоговыми ответами и вызовами инструмента.

Обучение прошло в два этапа: SFT на диалогах и RL с проверяемым вознаграждением от исполнителя. В тестах модель решила 6 из 6 одиночных задач с инструментом и 6 из 8 многошаговых диалогов. Она предназначена прежде всего для экспериментов с диалоговым использованием инструментов и арифметическими запросами, а не для надёжных общих ответов. Лицензия — Apache-2.0.

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

  • эксперименты с вызовом вычислительного инструмента в диалоге
  • решение арифметических запросов через детерминированный исполнитель
  • проверка многошагового следования инструкциям
  • оценка tool-use у компактных языковых моделей

Ограничения

За пределами обученной области вызова инструментов фактические ответы часто ошибочны, а общие знания ограничены; модель не проходила настройку безопасности. Иногда она выбирает неверную операцию или ошибочно направляет открытый вопрос к инструменту.

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

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

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

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

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

Открыть на Hugging Face

[!IMPORTANT] This is a research release, not a product. It is small and often factually wrong outside its trained tool-calling domain. See Results below before using it for anything beyond experimentation.

Model summary

Q-U-164M is Q-164M — a 164.6M-parameter ternary-weight, frozen-fingerprint-vocabulary text model — fine-tuned in two stages specifically for dialogue: chat-SFT, then RL on a verifiable reward supplied by the model's own deterministic tool executor (the same <CALC>expr<EQ> mechanism the base model uses, circuits.py). Same architecture and weights format as the base model, different weights.

Current release: v5. The first four fine-tuning passes all shared the same real bug: in a multi-turn conversation the model would drop tool-calling by turn 2-3 and drift into disconnected prose. The actual cause only surfaced with a controlled A/B test — the synthetic training conversations never included conversational connectives (“thanks, now what's...”, “one more question...”), just bare questions back to back, so the model had never seen “acknowledge small talk and still call the tool” in one training example, and real users write exactly that way. v5 splices connectives directly into the training data. Full story: blog post.

Results

capabilityresult
single-turn tool-calling probe (6 fixed tasks)6/6
8-turn multi-turn stress test, natural phrasing6/8, zero repetition-collapses across the entire training run
RL training stabilityKL never exceeded 0.004 across 200 steps — the most stable fine-tuning run yet

Known remaining weaknesses, shown honestly: occasionally confuses adjacent operations (e.g. division with multiplication) with a correct-looking but wrong tool expression; rare misclassification of open-ended, non-numeric questions into the wrong tool.

How it compares to other small models

Measured with QBench — no model gets forced-correct tool execution in this comparison, including this one, so scores are comparable across architectures. Live table: huggingface.co/spaces/q-project/QBench.

modelparamssingle-turn tool-usemulti-turn tool-useARC-EasyTruthfulQA MC1
GPT-2124M0%0%42%26%
SmolLM2-360M-Instruct360M50%50%50%18%
Qwen2.5-0.5B-Instruct500M45%50%62%24%
Q-U-164M164M35%25%43%26%

Q-U-164M doesn't win outright here, and shouldn't be expected to — it's a third the size of Qwen2.5-0.5B, trained on one V100. The numbers above give no model any tool-execution help, for a fair comparison. Deployed normally — with its own deterministic circuit executor correcting whichever calculation it decides to make (as in the Results table above) — its actual tool-call accuracy is much higher; the architecture's whole premise is that the network never has to get the arithmetic right itself, only decide when to ask.

Usage

The control tokens (<user>, <model>, <eot>, ...) are registered as named special tokens, so the standard chat template works:

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("q-project/Q-U-164M")
model = AutoModelForCausalLM.from_pretrained("q-project/Q-U-164M", trust_remote_code=True)

ids = tok.apply_chat_template(
    [{"role": "user", "content": "What is 91 divided by 7?"}],
    add_generation_prompt=True, return_tensors="pt",
)
out = model.generate(ids, max_new_tokens=60)
print(tok.decode(out[0], skip_special_tokens=True))

For guaranteed-exact tool calls (forces the deterministic result instead of trusting the network's own arithmetic), use circuits.CircuitLogitsProcessor — see the GitHub repo for a full runnable example (examples/chat.py) and the fine-tuning recipe that produced this checkpoint (finetune/).

Architecture

Same as the base model — 10 layers, hidden 1280, 20 query / 4 KV heads, ternary weights, frozen 512-bit fingerprint vocabulary. See the base model card for full architecture details.

Limitations

  • Facts are frequently wrong outside its trained tool-calling domain; thin general knowledge. No safety tuning.
  • Occasionally confuses adjacent tool operations (see Results).
  • Ternary weights at this size are a research setting; do not expect competitive benchmark scores from a single-V100, 164M-parameter model.

License and data terms

Code and weights: Apache-2.0 (see LICENSE). Fine-tuning data keeps its own terms — check before commercial use: GSM8K (MIT), SmolTalk's everyday-conversations subset (Apache-2.0); the rest of the fine-tuning mix is synthetically generated by this project.

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
QAgentForCausalLM
Ревизия весов
1939f28

0 моделей