Qwen3-4B-Instruct-2507 with two small steering experts that teach it how to answer debugging and system-design questions, without being told. One GGUF for llama.cpp. Research release.
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, method and design bible: GitHub · other models: MoSV collection. Newer: MoSV-Qwen3-4B (seven topics) · MoSV-Gemma-4-12B (the same seven topics on Gemma 4 12B).
| Topic | Behavior taught |
|---|---|
| Debugging (bug reports, no code) | Gives the likely cause first and ties each cause to a clue, says how to confirm it, keeps the fix conditional. Also trained to separate what the report states from guesses (took in about half of the answers) and to invent fewer class and file names (mostly did not take, see Limits) |
| System design (real design questions and architecture decisions) | Compares 2-3 realistic options, ties each trade-off to the facts given, recommends the simplest that fits, names the main risk and the sign to change. Also trained to state the need and the facts first, which did not take (see Limits) |
Other text is mostly routed to "none" and answered as plain Qwen: on held-out "none" text the router left 96.6% / 98.8% / 97.7% alone at layers 9 / 18 / 27.
Test prompts set aside before any training, plain prompts (no instructions), answered by this GGUF in llama.cpp with Qwen's recommended sampling, each answer judged alone, once, by Claude Haiku with four yes/no behavior checks and one guard.
| Topic | Prompts | Behavior, base → MoSV | MoSV better / worse / same | Guard, base → MoSV | Answer tokens | Cut off, base → MoSV |
|---|---|---|---|---|---|---|
| Debugging | 43 | 0.11 → 0.63 | 41 / 0 / 2 | 1.00 → 1.00 | 1,438 → 839 | 3 → 0 |
| System design | 60 | 0.41 → 0.68 | 43 / 8 / 9 | 0.70 → 0.78 | 1,772 → 1,042 | 21 → 0 |
| Explanation (not trained) | 43 | 0.26 → 0.23 | 5 / 12 / 26 | 0.58 → 0.77 | 734 → 713 | 0 → 0 |
| Teaching (not trained) | 43 | 0.80 → 0.81 | 10 / 10 / 23 | 0.47 → 0.40 | 942 → 923 | 0 → 0 |
| Story (not trained) | 43 | 0.35 → 0.40 | 14 / 10 / 19 | 0.93 → 0.93 | 1,045 → 1,002 | 1 → 0 (1 MoSV answer looped) |
| Email (not trained) | 43 | 0.50 → 0.44 | 9 / 16 / 18 | 0.98 → 0.98 | 456 → 441 | 0 → 0 |
Better / worse / same: the number of prompts where the MoSV answer passes more, fewer or the same number of behavior checks as the base answer to the same prompt.
Guard: one more yes/no question per answer, there so that an answer cannot gain habits by getting worse. It is not a general correctness check. Debugging: does the answer stay on the bug report and propose at least one concrete cause or fix. System design: does it give a clear recommendation that fits the stated situation, with no claim that contradicts the request. Teaching: are the facts taught correct. Explanation: is the main cause given correct. Story: does the piece fit the request and its form, and is it coherent. Email: does it cover the requested purpose and key points.
Cut off: answers that did not finish. Answers stop at 2,048 tokens. 21 of 60 base system-design answers and 2 of 43 base debugging answers reached that cap, and one more base debugging answer was cut at 1,376 tokens. So the base token means are capped (the real base answers are longer), and base checks about the end of an answer may be understated. No MoSV answer on a trained topic was cut off. One MoSV story answer (story is not trained) started to repeat itself and was stopped by the test's loop rule; it counts as 0 tokens in the story mean (without it: 1,026).
Answers on the trained topics are about 40% shorter by these capped means. On untrained topics the scores moved both ways, for example email behavior 0.50 → 0.44, explanation guard 0.58 → 0.77, teaching guard 0.47 → 0.40. One prompt moves a 43-prompt score by 0.023; how much a score moves between two judging rounds was not measured. For comparison, MoSV-Gemma-4-12B v6.0.1 on the same 43 debugging prompts: 0.17 → 0.44, better on 29 of 43 and worse on 2.
Read every answer: qwen4b_test_answers.pdf (13 MB, in this model's Hugging Face repo) shows all 103 test prompts of the two trained topics with the base and MoSV answers side by side, in full, with each check's verdict.
llama-server -m MoSV-Qwen3-4B-v6.0.1-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.
LM Studio: set temperature 0.7, top-k 20, top-p 0.8, min-p 0, repeat penalty 1.0 (off), and leave every other sampler off.
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. (LM Studio's llama.cpp ROCm runtime 2.80.1 ran the
earlier v4 file, which uses the same architecture.)
Built and tested on AMD only (RX 9070 XT, Vulkan; training with ROCm PyTorch on Windows). NVIDIA is untested and the training code may need changes there; contributions are welcome on GitHub.
| File | MoSV-Qwen3-4B-v6.0.1-Q8_0.gguf |
| Released | 2026-12-01 |
| Size | 4,298,191,552 bytes (4.30 GB: Qwen3-4B-Instruct-2507 Q8_0 + 18 MB of experts and routers) |
| sha256 | 4702b5e5091549a77160e596a9ad062926aa3d697ad098c8baccc50d198fd476 |
| Architecture | hy_v3 with per-layer MoE at layers 9, 18, 27: 3 experts each (none, debugging, system design), top-1 |
Data: debugging prompts are bug reports from the MoSV v6 set; system-design prompts are 842 real questions from Software Engineering Stack Exchange and the context of real architecture decision records, each filtered twice by Claude Haiku.
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.