/ Модель

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

Контекст
40 960 токенов
Параметры
303 млн
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
MNN-Pocket-0.3B-RU
Библиотека
transformers
Опубликована
9 ноя 2026

MNN-Pocket-0.3B-RU-Chat

Генерация текстаТекст → текст3 профессии
9 012скачиваний за 30 дней1лайквеса обновлены30 ноя 2026

Описание модели

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

Компактная модель Qwen3, дообученная для русскоязычных диалогов и выполнения простых инструкций с заданным форматом ответа.

MNN-Pocket-0.3B-RU-Chat — русскоязычный диалоговый ассистент на архитектуре Qwen3, разработанный Rahspide дообучением модели MNN-Pocket-0.3B-RU. Модель содержит 302,8 млн параметров и рассчитана на ответы на системные и пользовательские сообщения, в том числе с заданными требованиями к формату. Заявленная длина контекста — 40 960 токенов; доступны веса Safetensors и сборки GGUF с квантованием Q4_1, Q4_K_M и Q8_0.

Модель обучена методом SFT на русских инструкциях и англоязычных диалогах; карточка указывает наборы IlyaGusev/saiga_scored и HuggingFaceH4/ultrachat_200k. Она предназначена для компактного локального чата и простых инструкций, а не для генерации продолжений текста. В README сообщается о среднем результате 3,81 из 5 на проверке соблюдения явных требований к формату на 90 запросах и скорости 84–85 токенов/с для указанных сборок Q4 на 16-поточном процессоре x86. Лицензия — Apache-2.0.

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

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

MNN-Pocket-0.3B-RU-Chat — a Russian assistant in 0.3B

params sft data gguf license status

Status: v2.0 in this repository since 2026-11-25. Same base, rebuilt recipe: a filtered corpus and a layer of answers that obey an explicit format requirement. 12.2 M tokens of SFT. The previous weights (v1, 2026-11-10) are kept on the v1 branch of this repository, with the MNN build and the GGUF files as they were.

Russian instruction-following assistant, built by SFT on top of Rahspide/MNN-Pocket-0.3B-RU. It answers instead of continuing; that dialogue shape is what SFT bought.

  • 303 M parameters, Qwen3 architecture, 40 960 positions of context.
  • 12.2 M tokens of instruction tuning on top of the continuation model.
  • Requirement compliance 3.81 of 5 against 2.52 for the previous checkpoint (90 prompts, judge scale 1–5).
  • ARC-Challenge 26.2 % on the public weights, measured by the True Performance Network Workbench.
  • 84–85 tok/s generation for the Q4_K_M and Q4_1 builds on a 16-thread x86 CPU.

What changed from v1

v1 was tuned on 50 M tokens. The rebuild mattered more than the budget:

v1v2
Training corpus24.8 M unique tokens of general chat, 55 % of answers over 1 000 characters8.5 M unique tokens: filtered general chat plus 1 014 examples whose answer obeys an explicit format requirement
Form constraints in the data2.7 % of prompts asked for a formatthe constraint layer is oversampled to 35 % of training slots
SFT budget50 M tokens12.2 M tokens

Three defects in the v1 data, measured before the rebuild:

  • A third of the training windows contained no instruction at all, only a continuation of somebody's answer. The model was trained to keep writing essays.
  • Only 2.7 % of prompts asked for a specific shape of answer, and half of those were answered in the wrong shape inside the training data itself.
  • Examples longer than the training window were cut in half, so the model saw answers that stopped mid-sentence.

v2 drops examples that answer a different question, role-play personas and rows rated low by the dataset's own scorer, truncates long answers at a sentence boundary instead of at the window edge, and adds the format layer. The measured effect on 90 prompts with an explicit requirement:

Requirement compliance (1–5)v1v2
mean score2.523.81
paired difference against v1—+1.29 (t = 6.9, n = 90)

The improvement is larger than a token-count change explains. The recipe was the binding constraint.

Two models, two jobs

Sister — MNN-Pocket-0.3B-RU v1.2This model — MNN-Pocket-0.3B-RU-Chat v2.0
Jobcontinue textfollow instructions
Inputa prefix, often mid-sentencea system + user message
Outputthe plausible continuationan answer
Trained withcontinued pretraining on 1.2 B tokens of raw textinstruction tuning on top of that model
Choose it forkeyboard suggestions, autocomplete, prefix completionchat, Q&A, short rewrites
Do not choose it forassistant behaviour: it will continue your question instead of answering itautocomplete: it will answer instead of continuing

The two tasks reward opposite behaviour. Trained on both jobs, one checkpoint answers when it should continue, and continues when it should answer.

Why start from the Russian continuation model

The base MNN-Pocket-0.3B is bilingual zh/en and has essentially no Russian; a direct SFT of the official instruct model would fight both problems at once (new language and new format). Starting from the continuation model means Russian is already paid for, and SFT only has to teach the dialogue shape.

Data (as used)

Training mix

DatasetRoleLicence
IlyaGusev/saiga_scoredRussian instructions: 9 723 filtered dialogues + 1 014 format-layer examples (10 737 in total, 10 201 in the training split), 4.85 M tokenssee dataset card
HuggingFaceH4/ultrachat_200kEnglish replay: 6 000 dialogues (5 700 in the training split), 3.67 M tokensMIT

Slots are sampled 85 / 15 Russian to English, and 35 % of the Russian slots come from the format layer. The loss is taken on assistant tokens only; system and user turns are masked context. The model keeps its own ChatML template (<|im_start|> / <|im_end|>) from the base.

Filters on saiga_scored: Russian only, rows flagged is_bad_by_regex dropped, dataset score below 6 dropped, dialogues of 80–6 000 characters and 2–8 turns kept, rows where the assistant answer shares no content word with the question dropped, role-play personas and chatty system prompts dropped. Answers longer than 600 tokens are cut at a sentence boundary. The format layer is synthetic: a strong teacher model answered 1 014 held-out Russian questions under an explicit format instruction, and answers that did not satisfy the instruction were thrown away.

Evaluation

150 held-out Russian prompts from the saiga_scored validation slice, greedy decoding, the model's own template. A judge model (gpt-6.2-sol, temperature 0) scored v1 and v2 on the same answers, so the difference is paired.

Axis (1–5)v1v2paired difference
follows the instruction1.571.61+0.05 (t = 0.6)
naturalness2.302.21−0.09 (t = −1.0)
correct refusal4.894.89+0.00
coherence1.752.01+0.25 (t = 2.4)

90 of the same prompts carry an explicit requirement — one sentence, two sentences, exactly three bullet points, a phrase of at most five words, at most 50 words, no lists:

Axis (1–5)v1v2paired difference
requirement followed2.523.81+1.29 (t = 6.9)
answer quality1.201.32+0.12 (t = 1.3)

Automatic checks over the same 150 answers:

Checkv1v2
empty answers10
echoes the prompt45
mean answer length, words30.229.1
distinct-2 (higher = less repetition)0.9360.950
answers more than half Cyrillic140 / 150132 / 150

Byte-level bits per byte on a fixed 200 000-character Russian validation slice, the same corpus and the same tool for every model: v1 0.6360, v2 0.6225.

The raw records behind those tables are in review/: judge_v1.json and judge_v2.json hold the per-answer judge scores behind the axis table, constraint_v1.json and constraint_v2.json the requirement scores, metrics_v1_v2.json the automatic checks, bytes_v1.json and bytes_v2.json the bits-per-byte figures on the same 200 000-character Russian corpus that the sister repository publishes as review/val_ru_200k.txt.

Independent benchmark

ARC-Challenge run by the True Performance Network Workbench on a rented GPU, on the public weights of this repository at revision b11bdf9b — the same model.safetensors (sha256 b573289b…) that main carries now:

taskarc_challenge, 0-shot, task-default generation length
evaluatorlm-eval 0.4.12 + transformers 5.10.4, vLLM backend, single NVIDIA H100 80 GB
acc_norm26.2 % ± 1.3
acc20.0 % ± 1.2
samples1 172
order wall-clock and cost9 minutes, $7.10

For a model this size this is a result worth having: random guessing on the same four-way task scores 25 %. The SFT taught the shape of a dialogue answer rather than encyclopedic science, and the number measures exactly that gap. The raw order record, including the evaluator string and the measured VRAM, is in review/tpn_arc_challenge.json.

Builds

GGUF sizes

BuildSizeDownloadNote
Q8_0309 MBgguf/MNN-Pocket-0.3B-RU-Chat-Q8_0.ggufnear-lossless
Q4_K_M223 MBgguf/MNN-Pocket-0.3B-RU-Chat-Q4_K_M.ggufphone size
Q4_1208 MBgguf/MNN-Pocket-0.3B-RU-Chat-Q4_1.ggufsmallest GGUF, slower prompt processing
MNN INT4167 MBmnn/MNN-Pocket-0.3B-RU-Chat-INT4Android, MNN runtime
llama-cli -hf Rahspide/MNN-Pocket-0.3B-RU-Chat:Q4_K_M --jinja -p "Объясни, что такое инфляция" -n 60

The MNN build uses the MNN runtime (llm_demo, built from MNN 3.6.2 or newer with -DMNN_BUILD_LLM=ON; MNN 3.6.0 and 3.5 crash at load on this export format, because it uses op types that appeared after 3.6.0). Runtime sources: alibaba/MNN, the LLM export and inference guide, and the official Android app apps/Android/MnnLlmChat. Its llm_config.json keeps the ChatML template, so it answers out of the box:

cd mnn/MNN-Pocket-0.3B-RU-Chat-INT4 && llm_demo config.json prompt.txt

MNN INT4: prefill and decode

167 MB on disk, the weights load in ~1.1 s. The raw logs are in review/mnn_int4_run.log (CPU, MNN 3.6.2 wheel) and review/mnn_int4_gpu_run.log (CPU and CUDA from one build).

DeviceBackendPrefill (tok/s)Decode (tok/s)
4-vCPU serverCPU16549
T4 GPUCUDA3546174
OnePlus 13 (CPH2649, Snapdragon 8 Elite)CPU, 4 threads469171
OnePlus 13 (CPH2649, Snapdragon 8 Elite)OpenCL, Adreno33471
iPhone, iPadMetalnot measurednot measured
On the OnePlus 13 the numbers come from llm_demo built from MNN 3.6.2 for Android arm64, three runs each, median
(the first OpenCL run compiles the kernels and is left out). The MNN Chat app on Play bundles MNN 3.5.0 and cannot
load this build — it crashes while loading — see
review/mnn_int4_android_app_crash.txt.

The GPU row was measured on MNN master (27.11.2026) with -DMNN_CUDA=ON; on CUDA 13 the build needs the sm_60..sm_72 gencode lines removed and the SOFTMAX kernel templates moved into their header, both required to build MNN against CUDA 13. Two caveats. MNN's CUDA backend has no RoPE kernel, so FusedRoPE runs on the CPU on all 28 layers. And the GPU path is not token-identical to the CPU path: on three of four fixed prompts the greedy token sequences diverge while the lengths match, because float16 argmax ties resolve differently. Use the CPU build when you need bit-identical output.

On iPhone

Two paths, both take the published files as they are.

  • MNN INT4, 167 MB — the official MNN iOS app (apps/iOS/MNNLLMChat) reads a model folder directly. Build MNN.framework with package_scripts/ios/buildiOS.sh and -DMNN_BUILD_LLM=ON -DMNN_METAL=ON, open MNNLLMiOS.xcodeproj in Xcode, sign it, run on the device and point the app at the mnn/MNN-Pocket-0.3B-RU-Chat-INT4 folder. Use MNN 3.6.2 or newer — 3.6.0 and 3.5 cannot load this export format.
  • GGUF, 208–309 MB — llama.cpp's iOS sample (examples/llama.swiftui): run ./build-xcframework.sh, open the project in Xcode, run on the device and add the .gguf file.

Neither path has been measured on Apple hardware here, so the table above says not measured rather than guessing a number.

Measured with llama-bench on the published files, 9 repetitions, prompt 512 and generation 128 tokens.

On a 16-thread x86 CPU (Ryzen 7 7735HS, 8 cores):

BuildPrompt processingGeneration
Q4_K_M608 ± 78 tok/s84 ± 27 tok/s
Q4_1451 ± 39 tok/s85 ± 28 tok/s
Q8_0816 ± 84 tok/s59 ± 20 tok/s

On a 4-vCPU server CPU (Intel Xeon, 2.2 GHz):

BuildPrompt processingGeneration
Q4_K_M118 ± 1.0 tok/s47 ± 1.0 tok/s
Q4_173 ± 0.3 tok/s49 ± 1.2 tok/s
Q8_0142 ± 1.7 tok/s52 ± 1.3 tok/s

Treat the desktop numbers as indicative: the host is shared, and a second run of the same files with the same binary, under other load on that host, came out up to a third lower on prompt speed and about 15 % lower on decode. The server numbers are stable inside one instance (σ 1–3 %), but a different instance measured about 20 % higher on prompt speed. With one binary on both machines, the desktop CPU was 3.2–4.7× the server on prompt processing. Raw output: review/llama_bench.log, review/llama_bench_cpu.log, review/llama_bench_same_bin_nipogi.log and review/llama_bench_same_bin_kaggle.log.

Apply the model's own ChatML template (--jinja in llama.cpp, apply_chat_template in transformers). Without it the model continues text instead of answering and behaves like its sister.

config.json carries both rope_parameters (transformers 5.x) and the legacy rope_theta (transformers 4.x). Transformers 4.x ignores the new field and falls back to a default that inflates perplexity by 2.6×; with both fields present the weights load correctly on either version.

Reproduce

# chat smoke test through the model's own template
python bench/chat_smoke.py --model Rahspide/MNN-Pocket-0.3B-RU-Chat --cpu

# throughput of the quantised build
LLAMA_CLI=/path/to/llama-cli bash bench/bench_cpu.sh gguf/MNN-Pocket-0.3B-RU-Chat-Q4_K_M.gguf --chat

bench/chat_smoke.py applies the chat template from tokenizer_config.json, generates greedily and asserts that the answer does not echo the prompt, which is a cheap check that the template and the checkpoint still match. bench/bench_cpu.sh --chat wraps the prompt in ChatML before timing, so the numbers are comparable with the table above.

Limitations

  • 303 M parameters (0.30 B): short answers, weak facts, no reliable multi-step reasoning. Answer quality sits near 1.3 of 5 on the judge's scale; this is a small assistant.
  • Russian SFT data is mostly machine-translated or model-generated; style is flatter than human chat.
  • Answers are slightly less often fully Russian than v1 (132 against 140 of 150) — the English replay share is the same, but the format layer was written by a teacher that occasionally answered in English.
  • The sister's tokenizer cost applies here too: about 3.3 tokens per Russian word, so ~3× more decode steps per Russian sentence than for English. The vocabulary is byte-level, so rare and uppercase Cyrillic letters can end up split across tokens; a streaming decoder has to buffer partial UTF-8 sequences.
  • Not a coding model, not a tool-calling model, no long-context dialogue.

Releases

DateVersionWhat changed
2026-11-10v1.0Assistant released: 50 M-token SFT (18.8 M ru + 6 M en), bf16 weights, GGUF Q8_0 / Q4_K_M, ChatML smoke test passing
2026-11-11v1.1MNN INT4 build for Android: 167 MB, ChatML template included
2026-11-25v2.0Recipe rebuilt and the weights in this repository replaced: filtered corpus, 1 014-example format layer, whole-example batches, 12.2 M tokens of SFT. Requirement compliance 2.52 → 3.81, coherence 1.75 → 2.01, bytes-bpb 0.6360 → 0.6225. v1 weights stay on the v1 branch
2026-11-10v1.0 (sister)Continuation checkpoint released: 1.2 B-token CPT, same base

Licence and attribution

Weights: Apache-2.0, inherited through MNN-Pocket-0.3B-RU from taobao-mnn/MNN-Pocket-0.3B-Base.

@misc{mnn_pocket_03b,
  title  = {MNN-Pocket-0.3B},
  author = {Taobao MNN team},
  year   = {2026},
  url    = {https://huggingface.co/taobao-mnn/MNN-Pocket-0.3B}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей