Qwen3-4B-Instruct-2507 with seven small steering experts: debugging, explanation, performance, professional email, security, story and teaching. One GGUF for llama.cpp. Research release, trained and tested 2026-12-02 with the current MoSV method.
Part of MoSV (Mixture of Steering Vectors): the base model stays frozen; small experts at three layers (9, 18, 27) are picked per token by a router, or "none", in which case the model answers as plain Qwen. Code and full pipeline: GitHub · this model on Hugging Face: mhndayesh/MoSV-Qwen3-4B · other models: MoSV collection.
Not the file MoSV-Qwen3-4B-F16.gguf in the older repo mhndayesh/mosv:
that is v4, a different, older model.
It teaches how to answer, not new facts.
In short. On 286 held-out prompts it passes more of the taught habit checks than plain Qwen3-4B on 218 prompts, fewer on 9, the same number on 59. Its answers pass the guard no less often overall (206 → 227 of 286), but part of that rise comes from the length cap, not from better answers (Limits, point 4). Several habits were not learned (the per-habit table). Every number here is from results/mosv_qwen3_4b.json unless another file is named.
Each topic has four habits, each with one yes/no check, and one guard question. The rules and the questions are in
mosv/behaviors.py; those of performance and security are in GROUPS in mosv/branches.py, and these two topics
are told the general system-design rules first.
| Expert | Habit 1 | Habit 2 | Habit 3 | Habit 4 | Guard |
|---|---|---|---|---|---|
| debugging (bug reports, without the code) | separates what the report states from guesses | states no class, file or setting as fact that is not in the report | ties each cause to a clue in the report | says how to confirm a cause | stays on the bug report, with at least one concrete cause or fix |
| explanation ("why" and "how" questions) | the first two sentences answer the question | short sentences, everyday words, terms explained | a concrete example or comparison | one connected cause-and-effect chain, no list or headings | the main cause given is correct |
| performance (speed, scaling, caching, data and services) | states the limiting facts, or the numbers it assumes | says where time, load or risk goes first, tied to a fact | compares at least two options and recommends one | says what to measure, or what the choice costs | a clear recommendation that fits the situation, nothing that contradicts the request |
| professional email (an email from a few given fields) | the purpose is clear in the first two sentences | every specific fact is given in the request or is a bracketed placeholder | ends with a clear ask or next step | no filler | covers the purpose and key points, right recipient, sender and tone |
| security (access, privacy, attacks, deployment, operations) | names who could misuse or break it and what they reach | says which component enforces the main check | limits a part to the access it needs, or says how a change is rolled out and undone | names what stays exposed, or a signal that something is wrong | the same guard as performance |
| story (stories, poems, scripts) | opens with an action, a voice or a specific image | specific concrete details | feelings shown through action or dialogue | no moral stated at the end | fits the request and its form, coherent |
| teaching ("Teach X to a Primary N student") | speaks to the child directly | language right for the grade | connects to the child's everyday life | asks questions or gives a short task | the facts taught are correct |
286 held-out prompts, plain (no rules told), answered by this GGUF and by plain Qwen3-4B in llama.cpp with Qwen's recommended sampling, at most 2,048 new tokens. Each answer is judged alone, once, by Claude Haiku with the topic's four habit checks and its guard. "Held out" means never used to train an expert or fit a router; the prompts are not new, and they were used to test an earlier run and two other checkpoints (Limits, points 1 and 10).
This is the final test (test_after_router_tune), base → this model:
| Topic | Prompts | Habits | Better / worse / same | Guard passes | Mean tokens | Did not finish |
|---|---|---|---|---|---|---|
| Debugging | 40 | 0.10 → 0.49 | 36 / 0 / 4 | 40 → 40 | 1,366 → 949 | 1 → 0 |
| Explanation | 43 | 0.27 → 0.70 | 38 / 0 / 5 | 26 → 24 | 718 → 213 | 0 → 0 |
| Performance | 40 | 0.41 → 0.88 | 34 / 2 / 4 | 19 → 26 | 1,790 → 1,406 | 16 → 2 |
| Professional email | 43 | 0.48 → 0.85 | 37 / 1 / 5 | 41 → 40 | 450 → 285 | 0 → 0 |
| Security | 34 | 0.46 → 0.87 | 27 / 0 / 7 | 24 → 30 | 1,791 → 1,639 | 9 → 3 |
| Story | 43 | 0.33 → 0.53 | 25 / 4 / 14 | 37 → 38 | 1,049 → 789 | 1 → 0 |
| Teaching | 43 | 0.83 → 0.98 | 21 / 2 / 20 | 19 → 29 | 936 → 297 | 0 → 0 |
| All | 286 | 218 / 9 / 59 | 206 → 227 | 27 → 5 |
test in the result file):
223 / 9 / 54 better / worse / same, guard 206 → 227, did not finish 27 → 6.Share of answers that pass each check in the final test, base → this model. Habits 1-4 and the guard are the columns of the table under "What the experts do".
| Topic | Habit 1 | Habit 2 | Habit 3 | Habit 4 | Guard |
|---|---|---|---|---|---|
| Debugging | 0.00 → 0.23 | 0.00 → 0.05 | 0.35 → 0.73 | 0.05 → 0.95 | 1.00 → 1.00 |
| Explanation | 0.35 → 0.91 | 0.12 → 0.79 | 0.60 → 0.93 | 0.00 → 0.16 | 0.60 → 0.56 |
| Performance | 0.50 → 0.73 | 0.25 → 0.88 | 0.70 → 0.95 | 0.18 → 0.98 | 0.48 → 0.65 |
| Professional email | 0.42 → 0.72 | 0.00 → 0.70 | 0.98 → 1.00 | 0.51 → 0.98 | 0.95 → 0.93 |
| Security | 0.68 → 1.00 | 0.24 → 0.53 | 0.44 → 0.94 | 0.50 → 1.00 | 0.71 → 0.88 |
| Story | 0.09 → 0.07 | 0.81 → 0.95 | 0.23 → 0.58 | 0.16 → 0.51 | 0.86 → 0.88 |
| Teaching | 0.60 → 1.00 | 0.95 → 0.98 | 0.98 → 0.93 | 0.77 → 1.00 | 0.44 → 0.67 |
Habits that were not learned (passed by fewer than half of the answers):
Teaching "connects to the child's everyday life" fell slightly: 42 → 40 of 43.
Share of held-out tokens sent to the right class by the router as first fitted, experts off
(router.held_out_accuracy), as the range over the 8 classes, with the weakest class named. Whole percent, rounded
half up.
| Layer | Prompt tokens | Answer tokens |
|---|---|---|
| 9 | 67 % (none) to 94 % |
86 % (security) to 100 % |
| 18 | 71 % (none) to 94 % |
91 % (security) to 100 % |
| 27 | 68 % (none) to 93 % |
88 % (security) to 100 % |
This table is the first fit. The router tune then replaced the routers of layers 18 and 27 in the shipped file; the
shipped routers, measured with the experts on, are under router_tune.after in the result file.
No class is under 50 % at any layer. The weakest are the prompt tokens of none (67-71 %) and of teaching
(71-74 %).
The file is MoSV-Qwen3-4B-Q8_0.gguf, in this model's Hugging Face repo
mhndayesh/MoSV-Qwen3-4B. It was tested as all7d_steer_tuned.gguf:
same file, same sha256.
llama-server -m MoSV-Qwen3-4B-Q8_0.gguf -ngl 99 -fa on --jinja --temp 0.7 --top-k 20 --top-p 0.8 --min-p 0 --typical 1.0 --repeat-penalty 1.0 --presence-penalty 0 --frequency-penalty 0 --top-nsigma -1 --xtc-probability 0 --dry-multiplier 0
That is Qwen's recommended sampling (temperature 0.7, top_k 20, top_p 0.8) with every other sampler written out as off, because llama-server turns some on by itself (min_p 0.05). The tests sent the same values with each request.
What was tested: llama-server from one local Windows Vulkan build of a llama.cpp fork, on AMD RX 9070 XT
cards. The file uses llama.cpp's hy_v3 architecture (a dense model with MoE layers), so other llama.cpp builds that
have it and LM Studio should load it: not tested with this file.
| File | MoSV-Qwen3-4B-Q8_0.gguf |
| Trained and tested | 2026-12-02 |
| Released | 2026-12-02 |
| Size | 4,327,836,448 bytes (4.33 GB: Qwen3-4B-Instruct-2507 Q8_0 plus the experts and routers) |
| sha256 | 4b971c0a798750ef9d6449daee525c04b1bd694d04a1d40b17fbd7802ed34a64 |
| Architecture | hy_v3 with per-layer MoE at layers 9, 18, 27: 8 experts each (none and the seven topics), top-1 |
The steps that were run, in order. The gate (python -m mosv.gate) was built after this model was trained and was
not used to choose its topics.
all7c) with that run's 630
training answers, on 79,043 texts with 8,980 held out, and reused by the final run all7d, which trained on 833
answers (the first of the notes in the result file; the 630 and the fit are also in
docs/LOCKED_FIXES.md F-7 and F-9). The accuracy of that first
fit is the table above; step 4 then replaced the routers of layers 18 and 27.TICKETS.md T-006
counts, for the 43 emails of this run's test before the tune (not the final file), a sign-off in 28 and a sender
name in 28; the guard (40 of 43) did not show it. For the final file, a phrase count by the audit, not in a
tracked file, finds a sign-off phrase in about 33 of its 43 test emails, against 43 of the base model's. The
gate, run later on 40 training prompts per topic, fails two topics on Qwen3-4B, both on the guard: explanation
(0.65 plain, 0.48 told) and story (0.93 plain, 0.78 told). This model's explanation guard is 26 → 24 of 43; its
story guard did not fall on the test (37 → 38 of 43). T-006 holds these numbers and the revised rules that were
tried. This model is published as trained, before the rules are settled (T-006).docs/LOCKED_FIXES.md
F-12): on the same 286 test prompts, 206 answers pass the guard plain, 225 when base Qwen3-4B is told the
rules, 227 from this model. The model does what its base does when told the rules.all7c (20 explanation and 27 professional email training answers), was tested on the same 286 prompts:
218 better, 6 worse, 62 same, guard 228 of 286; after its router tune 228 / 3 / 55, guard 217. Then more
training answers were written for those two topics (explanation 107, professional email 171) and the final run
all7d was trained. Step 75 of all7d was also tested once (231 / 9 / 46, guard 216), and so was a trial with
other email rules (224 / 4 / 58, guard 217). No checkpoint was chosen by its test result. But the decision to
add training answers for two topics was made after test results had been seen, so the final test is not a first
look (notes in the result file).Also: the test has only prompts of the seven topics, so what the model does to other prompts was not measured. Speed was not measured.
Code, MoSV experts, routers and steering vectors: MIT (free to use, change and sell, keep the notice). The GGUF also contains the base model's weights, which stay under the base model's own license: Qwen/Qwen3-4B-Instruct-2507, Apache-2.0.