/ Модель

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

Контекст
40 960 токенов
Параметры
3,7 млрд
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B
Библиотека
transformers
Опубликована
7 ноя 2026

InnerVoice-Qwen3-4B

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

Экспериментальный вариант Qwen3-4B для потокового решения математических задач с чередованием внутренних рассуждений и публичного ответа.

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

Бенчмарки

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

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

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

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

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

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

InnerVoice-Qwen3-4B — экспериментальная модель интерактивного помощника, разработанная автором репозитория liqiangx на основе Qwen3-4B. Она генерирует текст в двух чередующихся потоках: внутренние рассуждения и публичный ответ, который выдаётся частями по мере готовности. Переключение между потоками выполняет маршрутизатор, выбирающий один из двух экспертов на каждом токене. Модель дообучена методом SFT на 1 550 математических задачах с примерами, полученными от Qwen3-32B; LoRA ранга 16 встроена в веса, а FFN последнего слоя заменён двухэкспертным MoE.

Основной сценарий — пошаговое решение математических задач с ранней выдачей промежуточных фрагментов ответа для потокового интерфейса. Чекпойнт содержит 3,7 млрд параметров, принимает текст и поддерживает контекст до 40 960 токенов. Для использования через Transformers требуется пользовательский код модели; доступен также плагин для vLLM. Лицензия — Apache-2.0.

Модель обучалась только на ограниченном наборе математических задач и не проходила отдельную настройку для общего диалога. Внутренние рассуждения доступны для чтения и могут содержать ошибки; результаты оценки AIME в карточке получены на небольшой выборке и имеют заметную статистическую неопределённость.

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

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

Ограничения

Обучена на 1 550 математических задачах и не настраивалась отдельно для общего диалога. Внутренние рассуждения могут быть ошибочными и не гарантируют правильность ответа; оценка в карточке основана на небольшой выборке.

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

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

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

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

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

Открыть на Hugging Face

InnerVoice-Qwen3-4B (SFT)

InnerVoice is an interactive-assistant model that thinks while it talks. Instead of a long silent <think> block followed by the answer, it interleaves two readable token streams at token granularity:

  • an inner voice (private reasoning, readable but not spoken / not sent to TTS), and
  • an outer voice (the public answer, emitted in short chunks as soon as each statement is certain).

Architecture: Qwen3-4B with LoRA (r=16, all layers) and the last decoder layer's FFN replaced by a two-expert MoE (think expert / answer expert, both initialised from the pretrained FFN) selected per token by a disclosure router (small MLP on the last-layer hidden state). The router's decision at position t chooses the expert that produces token t+1, so the mode of every generated token is a single bit that comes for free during decoding - no special tokens, no decode-time controller. LoRA is folded into the weights here.

This checkpoint is the SFT stage trained on 1,550 DeepMath-103K problems with interleaved think/answer trajectories distilled from Qwen3-32B (high reasoning effort; private reasoning + reader-facing solution paragraphs aligned by anchor coverage). An RL stage (GRPO with correctness, premature-commitment and first-content-onset rewards) is in progress. Code, data recipe and report: https://github.com/lqxiao/InnerVoice

Usage (transformers, remote code)

from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "liqiangx/InnerVoice-Qwen3-4B"
tok = AutoTokenizer.from_pretrained(repo)
m = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, torch_dtype="bfloat16").cuda()
out = m.generate_streams(tok, "Find the sum of all positive divisors of 360.", max_new_tokens=2048)
print("INNER :", out["think"])    # private reasoning (do not speak)
print("OUTER :", out["speak"])    # public answer, newline-separated chunks

out["interleaved"] gives the token-level (mode, text) sequence for a streaming UI. Plain m.generate() works too but returns both streams mixed in one text; read m.moe.last_route to split them.

For math problems the model was trained with the instruction appended to the user turn: Solve the problem. Reason privately; publicly present the solution in short paragraphs as it becomes certain, and end with 'Final answer: \boxed{<answer>}'.

Usage (vLLM)

A vLLM plugin (custom InnerVoiceQwen3ForCausalLM class, vLLM 0.9.x) is in the GitHub repo under latent/vllm_plugin (pip install latent/vllm_plugin). It reproduces the transformers decode token-for-token; the per-token mode is recovered from the router (see latent/sxs_rl_engine.py::label_types).

Evaluation (AIME 2025, Average@4, temperature 1.0, 12k-token budget, 30 problems x 4 samples, +-8 pt)

All rows below are our own runs with the same evaluation code (accuracy = last \boxed{} in the PUBLIC stream; 12k new-token cap); "unfinished" = samples that hit the cap. The paper's Qwen3-4B numbers (Base 66.3, SxS SFT 38.3) use a 32k budget and their own training set and are not directly comparable.

modelAIME25 Avg@4unfinishedthink tokensFCOpublic blocks
Qwen3-4B base, native thinking mode0.3420.61710,30010,3010.4
Qwen3-4B + Standard CoT SFT (think-then-speak, same 1,550 Qwen3-32B traces)0.0830.0081,0741,0471.6
Qwen3-4B InnerVoice SFT, research variant with e_think (not released)0.2080.0083,5706143.0
This checkpoint: Qwen3-4B InnerVoice SFT without e_think (vLLM decode)0.1580.0583,0941,2053.7

The released checkpoint and the e_think research variant differ by 5 points, within the +-8 pt noise of 30 problems x 4 samples. InnerVoice starts speaking after ~600-1,200 tokens (FCO) and emits ~3 public chunks per problem, while the think-then-speak baseline trained on identical data speaks only once at the end and loses most of the accuracy; the base model keeps its accuracy only because it may think for 10k+ tokens before saying anything (and still fails to finish 62% of the time within the budget).

Metric definitions follow When to Think, When to Speak: Learning Disclosure Policies for LLM Reasoning (ICML 2026, arXiv 2605.03314): FCO = index of the first public token with task content, AIRW = mean private span before each public block.

Limitations

  • Trained on 1,550 math problems only; not instruction-tuned for general chat beyond what Qwen3-4B already does.
  • Think tokens are readable; the model is small (4B) and its inner voice can be wrong - treat it as a transcript, not a guarantee.
  • The e_think input embedding of the research code was dropped (ablation showed no effect), so this checkpoint is a plain per-token two-expert model and runs on any engine that can host a custom Qwen3 class.

Citation

@misc{innervoice2026, title={InnerVoice: think while talking with a last-layer disclosure MoE},
      author={Liqiang Xiao}, year={2026}, url={https://github.com/lqxiao/InnerVoice}}

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
InnerVoiceQwen3ForCausalLM
Ревизия весов
4f6fae5

0 моделей