
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
v1branch 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:
| v1 | v2 | |
|---|---|---|
| Training corpus | 24.8 M unique tokens of general chat, 55 % of answers over 1 000 characters | 8.5 M unique tokens: filtered general chat plus 1 014 examples whose answer obeys an explicit format requirement |
| Form constraints in the data | 2.7 % of prompts asked for a format | the constraint layer is oversampled to 35 % of training slots |
| SFT budget | 50 M tokens | 12.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) | v1 | v2 |
|---|---|---|
| mean score | 2.52 | 3.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.2 | This model — MNN-Pocket-0.3B-RU-Chat v2.0 | |
|---|---|---|
| Job | continue text | follow instructions |
| Input | a prefix, often mid-sentence | a system + user message |
| Output | the plausible continuation | an answer |
| Trained with | continued pretraining on 1.2 B tokens of raw text | instruction tuning on top of that model |
| Choose it for | keyboard suggestions, autocomplete, prefix completion | chat, Q&A, short rewrites |
| Do not choose it for | assistant behaviour: it will continue your question instead of answering it | autocomplete: 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)

| Dataset | Role | Licence |
|---|---|---|
IlyaGusev/saiga_scored | Russian instructions: 9 723 filtered dialogues + 1 014 format-layer examples (10 737 in total, 10 201 in the training split), 4.85 M tokens | see dataset card |
HuggingFaceH4/ultrachat_200k | English replay: 6 000 dialogues (5 700 in the training split), 3.67 M tokens | MIT |
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) | v1 | v2 | paired difference |
|---|---|---|---|
| follows the instruction | 1.57 | 1.61 | +0.05 (t = 0.6) |
| naturalness | 2.30 | 2.21 | −0.09 (t = −1.0) |
| correct refusal | 4.89 | 4.89 | +0.00 |
| coherence | 1.75 | 2.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) | v1 | v2 | paired difference |
|---|---|---|---|
| requirement followed | 2.52 | 3.81 | +1.29 (t = 6.9) |
| answer quality | 1.20 | 1.32 | +0.12 (t = 1.3) |
Automatic checks over the same 150 answers:
| Check | v1 | v2 |
|---|---|---|
| empty answers | 1 | 0 |
| echoes the prompt | 4 | 5 |
| mean answer length, words | 30.2 | 29.1 |
| distinct-2 (higher = less repetition) | 0.936 | 0.950 |
| answers more than half Cyrillic | 140 / 150 | 132 / 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:
| task | arc_challenge, 0-shot, task-default generation length |
| evaluator | lm-eval 0.4.12 + transformers 5.10.4, vLLM backend, single NVIDIA H100 80 GB |
acc_norm | 26.2 % ± 1.3 |
acc | 20.0 % ± 1.2 |
| samples | 1 172 |
| order wall-clock and cost | 9 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

| Build | Size | Download | Note |
|---|---|---|---|
| Q8_0 | 309 MB | gguf/MNN-Pocket-0.3B-RU-Chat-Q8_0.gguf | near-lossless |
| Q4_K_M | 223 MB | gguf/MNN-Pocket-0.3B-RU-Chat-Q4_K_M.gguf | phone size |
| Q4_1 | 208 MB | gguf/MNN-Pocket-0.3B-RU-Chat-Q4_1.gguf | smallest GGUF, slower prompt processing |
| MNN INT4 | 167 MB | mnn/MNN-Pocket-0.3B-RU-Chat-INT4 | Android, 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

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).
| Device | Backend | Prefill (tok/s) | Decode (tok/s) |
|---|---|---|---|
| 4-vCPU server | CPU | 165 | 49 |
| T4 GPU | CUDA | 3546 | 174 |
| OnePlus 13 (CPH2649, Snapdragon 8 Elite) | CPU, 4 threads | 469 | 171 |
| OnePlus 13 (CPH2649, Snapdragon 8 Elite) | OpenCL, Adreno | 334 | 71 |
| iPhone, iPad | Metal | not measured | not 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. BuildMNN.frameworkwithpackage_scripts/ios/buildiOS.shand-DMNN_BUILD_LLM=ON -DMNN_METAL=ON, openMNNLLMiOS.xcodeprojin Xcode, sign it, run on the device and point the app at themnn/MNN-Pocket-0.3B-RU-Chat-INT4folder. 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.gguffile.
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):
| Build | Prompt processing | Generation |
|---|---|---|
| Q4_K_M | 608 ± 78 tok/s | 84 ± 27 tok/s |
| Q4_1 | 451 ± 39 tok/s | 85 ± 28 tok/s |
| Q8_0 | 816 ± 84 tok/s | 59 ± 20 tok/s |
On a 4-vCPU server CPU (Intel Xeon, 2.2 GHz):
| Build | Prompt processing | Generation |
|---|---|---|
| Q4_K_M | 118 ± 1.0 tok/s | 47 ± 1.0 tok/s |
| Q4_1 | 73 ± 0.3 tok/s | 49 ± 1.2 tok/s |
| Q8_0 | 142 ± 1.7 tok/s | 52 ± 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
| Date | Version | What changed |
|---|---|---|
| 2026-11-10 | v1.0 | Assistant 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-11 | v1.1 | MNN INT4 build for Android: 167 MB, ChatML template included |
| 2026-11-25 | v2.0 | Recipe 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-10 | v1.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}
}