Small model + router + library of task edits
Qwen3.5-0.8B with routed LoRA adapters vs Qwen3.5-4B, on one AMD Ryzen AI Max+ 395. Generated from results/results.json.
Part 1: trained task files on Qwen3.5-0.8B against Qwen3.5-4B (sections 1–16). Part 2: Opus 5.5 written family files on 0.8B, 2B and 4B, against trained yardsticks and Qwen3.5-9B (sections 17–25). Part 3: later runs of test 2, trained files (test 3), llama.cpp and a mixture of experts (test 4), one merged file for all families (test 5), one general file written for all families (test 6), the general file under the family files (test 7), two newer mixture-of-experts models (test 8), fresh questions with two models end to end (test 9), the files in llama.cpp (test 10), and Fable 5.2 as the writer (test 11) (sections 26–41).
1. Thesis verdict
Thesis: “A small model with a routed library of task-specific edits matches a model several times larger on the tasks the library covers, at the small model’s speed and memory cost. The edits are stored on cheap storage (SSD) and only the active one is held in memory. So coverage grows by adding files, not by retraining or buying a bigger GPU.”
2. Summary
At this scale the library helps where a task is mostly about format and labels, and not where it needs reasoning or knowledge. With the router, Qwen3.5-0.8B beat the 5.6× larger Qwen3.5-4B on 5 of the 12 covered tasks (intent, AG News, emotion, CoNLL, E2E JSON) and lost on 6, by up to 50 points (math, code, SQuAD). The math adapter made the small model worse (52.0 → 37.0). Averaged over the 12 tasks, C scored 74.7 against G's 77.0 (97%), answered 3.5× as many questions correctly per minute and used 0.35 of G's memory, just over one third. The plumbing worked: the router picked the right adapter 90% of the time at 12 tasks, the fallback kept general questions at the base model's level, adding nine adapters left core-task accuracy unchanged (52.0 → 52.0), and a cold adapter load from SSD took 27 ms. But one multi-task adapter trained on all 12 tasks (F12) was slightly better than routing (-1.7 points, 95% CI [-3.2, -0.2]).
3. Predictions
| # | Criterion | Status | Key numbers |
|---|---|---|---|
| 1 | Size 3: C beats A by ≥ 5 points on ≥ 2 of 3 core tasks | inconclusive | C − A: math -15.0 [-22.5, -7.5], code +0.5 [-7.0, 8.0], intent +42.0 [34.5, 49.5] |
| 2 | Size 3: C within 3 points of B on average (core tasks) | met | B − C: +0.17 [-0.33, 0.83] |
| 3 | Every size: C no more than 2 points below A on general | met | A − C on general: size 3 +0.5, size 6 +0.0, size 12 -0.5 |
| 4 | Size 3: C beats F3 on average (core tasks) | met | C − F3 +0.33 [-3.2, 3.8]; size 12: C − F12 -1.65 [-3.2, -0.2] (gap shrank, not grew) |
| 5 | Warm adapter: routing + swap < 100 ms median | met | router 11.4 ms + warm swap 3.3 ms = 14.7 ms |
| 6 | Size 12: C ≥ 90% of G's accuracy at ≤ 1/3 of G's memory | not met | accuracy ratio 0.969 [0.948, 0.991] (met); memory ratio 0.347 > 0.333 (missed) |
| 7 | Size 3 → 12: C's core accuracy drops ≤ 2 points | met | core-3: 52.0 → 52.0, drop +0.0 [-0.5, 0.5] |
| 8 | Cold load from SSD adds < 50 ms median | met | cold load median 26.7 ms, p95 29.0 ms |
Met: point estimate satisfies the threshold. Not met: it misses and the 95% bootstrap CI excludes the threshold. Inconclusive: it misses but the CI includes the threshold. Verdict rule: supported if 1, 6, 7 and 8 are met; not supported if 6 or 7 is clearly missed; otherwise inconclusive.
4. Setup
- Base model:
Qwen/Qwen3.5-0.8B(the post-trained model; 0.75B parameters in the text model). G:Qwen/Qwen3.5-4B(4.2B), bf16, no quantization. Both in non-thinking mode (enable_thinking=False), greedy decoding, the same prompt templates andmax_new_tokensper task in every condition. - Hardware: ASUS ProArt PX13, AMD Ryzen AI Max+ 395, Radeon 8060S iGPU (gfx1151), 57 GiB RAM shared with the GPU, 1 TB NVMe SSD. PyTorch 2.9.1 from AMD's gfx1151 ROCm 7.13 nightly; transformers 5.22, PEFT 0.21.
- Library: one LoRA per task, rank 16, alpha 32, dropout 0.05, on attention, linear-attention and MLP projections, 1 epoch, batch 16, learning rate 0.0004 (picked on validation loss from 1e-4, 2e-4, 4e-4). 10,223,616 trainable parameters, 40.9 MB per adapter on disk (fp32). F3 and F12 are multi-task LoRAs trained on the union of the same training sets (same total budget). E merges the three core adapters with weight 1.0 each (picked on validation).
- Router: bge-small-en-v1.5 on the CPU embeds the user content without the task template; logistic regression per library size; thresholds 0.65 (size 3), 0.55 (size 6), 0.375 (size 12) chosen on validation.
- Tasks: core: GSM8K (exact final number), MBPP sanitized (pass@1, sandboxed, no network), Banking77 (exact label); held out: MMLU (letter). Extra: AG News, SST-2, emotion, TREC (exact label), BoolQ (yes/no), SQuAD v1.1 (token F1), CoNLL-2003 (entity F1), CommonsenseQA (letter), E2E restaurant JSON (slot F1, 0 if the schema check fails). 200 test examples per task, drawn with a saved seed; up to 2,000 training and 300 validation examples per task.
- Scaled down: the 9 extra adapters were trained on 1,000 examples each instead of 2,000 (cut 1 of the plan, made on a runtime estimate of 12.3 h; at the speeds measured later it would not have been needed). MBPP has only 384 training problems. Everything else ran at full size.
5. Main results at library size 3
| Condition | Math (GSM8K) | 95% CI | Code (MBPP) | 95% CI | Intent (Banking77) | 95% CI | General (MMLU) | 95% CI |
|---|---|---|---|---|---|---|---|---|
| A · base | 52.0 | [45.0, 58.5] | 38.0 | [31.5, 44.5] | 38.5 | [32.0, 45.5] | 37.5 | [31.0, 44.0] |
| B · oracle | 37.0 | [30.5, 43.5] | 38.5 | [32.0, 45.5] | 81.0 | [75.5, 86.5] | 37.5 | [31.0, 44.0] |
| C · router + fallback | 37.0 | [30.5, 43.5] | 38.5 | [32.0, 45.5] | 80.5 | [75.0, 86.0] | 37.0 | [30.5, 43.5] |
| D · router, no fallback | 37.0 | [30.5, 43.5] | 38.5 | [32.0, 45.5] | 81.0 | [75.5, 86.5] | 17.0 | [12.0, 22.5] |
| E · merged | 26.0 | [20.0, 32.0] | 28.0 | [22.0, 34.0] | 84.5 | [79.5, 89.5] | 11.0 | [7.0, 15.5] |
| F · multi-task LoRA | 41.5 | [34.5, 48.0] | 31.0 | [24.5, 37.5] | 82.5 | [77.0, 87.5] | 39.5 | [32.5, 46.5] |
| G · Qwen3.5-4B | 86.5 | [81.5, 91.0] | 69.5 | [63.0, 76.0] | 63.5 | [57.0, 70.0] | 69.5 | [63.0, 75.5] |
Paired tests at size 3
| Comparison | Task | Diff (pts) | 95% CI | p (bootstrap) | p (McNemar) |
|---|---|---|---|---|---|
| C vs A | Math (GSM8K) | -15.0 | [-22.5, -7.5] | 0.000 | 0.000 |
| C vs A | Code (MBPP) | +0.5 | [-7.0, 8.0] | 0.952 | 1.000 |
| C vs A | Intent (Banking77) | +42.0 | [34.5, 49.5] | 0.000 | 0.000 |
| C vs A | General (MMLU) | -0.5 | [-1.5, 0.0] | 0.739 | 1.000 |
| C vs F | Math (GSM8K) | -4.5 | [-10.5, 1.5] | 0.151 | 0.175 |
| C vs F | Code (MBPP) | +7.5 | [1.0, 14.5] | 0.036 | 0.049 |
| C vs F | Intent (Banking77) | -2.0 | [-7.5, 3.5] | 0.556 | 0.608 |
| C vs F | General (MMLU) | -2.5 | [-11.5, 6.0] | 0.598 | 0.649 |
| C vs B | Math (GSM8K) | +0.0 | [-1.5, 1.5] | 1.000 | 1.000 |
| C vs B | Code (MBPP) | +0.0 | [0.0, 0.0] | 1.000 | 1.000 |
| C vs B | Intent (Banking77) | -0.5 | [-1.5, 0.0] | 0.753 | 1.000 |
| C vs B | General (MMLU) | -0.5 | [-1.5, 0.0] | 0.739 | 1.000 |
| C vs G | Math (GSM8K) | -49.5 | [-56.5, -42.5] | 0.000 | 0.000 |
| C vs G | Code (MBPP) | -31.0 | [-38.5, -23.5] | 0.000 | 0.000 |
| C vs G | Intent (Banking77) | +17.0 | [10.5, 23.5] | 0.000 | 0.000 |
| C vs G | General (MMLU) | -32.5 | [-41.0, -24.0] | 0.000 | 0.000 |
Paired tests at size 12 (F = F12)
| Comparison | Task | Diff (pts) | 95% CI | p (bootstrap) | p (McNemar) |
|---|---|---|---|---|---|
| C vs A | Math (GSM8K) | -15.5 | [-23.0, -8.0] | 0.000 | 0.000 |
| C vs A | Code (MBPP) | +0.5 | [-7.0, 8.0] | 0.952 | 1.000 |
| C vs A | Intent (Banking77) | +42.5 | [35.0, 50.0] | 0.000 | 0.000 |
| C vs A | AG News | +12.0 | [6.0, 18.0] | 0.000 | 0.000 |
| C vs A | SST-2 | +2.0 | [-1.5, 6.0] | 0.343 | 0.424 |
| C vs A | Emotion | +27.5 | [20.5, 34.5] | 0.000 | 0.000 |
| C vs A | TREC | +26.5 | [20.0, 33.0] | 0.000 | 0.000 |
| C vs A | BoolQ | +2.0 | [-3.0, 7.5] | 0.514 | 0.585 |
| C vs A | SQuAD (F1) | -4.0 | [-8.8, 0.6] | 0.096 | – |
| C vs A | CoNLL (F1) | +67.7 | [62.2, 73.1] | 0.000 | – |
| C vs A | CommonsenseQA | +13.0 | [6.0, 20.0] | 0.000 | 0.001 |
| C vs A | E2E JSON (F1) | +71.3 | [67.2, 75.2] | 0.000 | – |
| C vs A | General (MMLU) | +0.5 | [-2.5, 3.5] | 0.865 | 1.000 |
| C vs F | Math (GSM8K) | -9.5 | [-16.0, -3.0] | 0.003 | 0.008 |
| C vs F | Code (MBPP) | +1.0 | [-5.5, 8.0] | 0.822 | 0.885 |
| C vs F | Intent (Banking77) | +0.5 | [-5.0, 6.0] | 0.932 | 1.000 |
| C vs F | AG News | -3.0 | [-7.0, 1.0] | 0.161 | 0.210 |
| C vs F | SST-2 | +4.0 | [-0.5, 8.5] | 0.090 | 0.115 |
| C vs F | Emotion | +2.5 | [-2.0, 7.0] | 0.355 | 0.405 |
| C vs F | TREC | -11.5 | [-16.5, -7.0] | 0.000 | 0.000 |
| C vs F | BoolQ | +1.0 | [-5.0, 7.0] | 0.801 | 0.871 |
| C vs F | SQuAD (F1) | -7.5 | [-12.7, -2.3] | 0.005 | – |
| C vs F | CoNLL (F1) | -5.1 | [-9.9, -0.4] | 0.032 | – |
| C vs F | CommonsenseQA | +9.0 | [2.0, 16.5] | 0.019 | 0.022 |
| C vs F | E2E JSON (F1) | -1.2 | [-2.2, -0.3] | 0.010 | – |
| C vs F | General (MMLU) | -5.5 | [-13.5, 2.5] | 0.196 | 0.228 |
| C vs B | Math (GSM8K) | -0.5 | [-1.5, 0.0] | 0.744 | 1.000 |
| C vs B | Code (MBPP) | +0.0 | [0.0, 0.0] | 1.000 | 1.000 |
| C vs B | Intent (Banking77) | +0.0 | [0.0, 0.0] | 1.000 | 1.000 |
| C vs B | AG News | -3.0 | [-5.5, -1.0] | 0.004 | 0.031 |
| C vs B | SST-2 | +0.5 | [0.0, 1.5] | 0.711 | 1.000 |
| C vs B | Emotion | -1.5 | [-3.5, 0.0] | 0.097 | 0.250 |
| C vs B | TREC | -8.5 | [-12.5, -5.0] | 0.000 | 0.000 |
| C vs B | BoolQ | -5.0 | [-9.0, -1.0] | 0.019 | 0.031 |
| C vs B | SQuAD (F1) | -9.7 | [-14.1, -5.5] | 0.000 | – |
| C vs B | CoNLL (F1) | -6.8 | [-10.1, -3.6] | 0.000 | – |
| C vs B | CommonsenseQA | -0.5 | [-1.5, 0.0] | 0.740 | 1.000 |
| C vs B | E2E JSON (F1) | +0.0 | [0.0, 0.0] | 1.000 | – |
| C vs B | General (MMLU) | +0.5 | [-2.5, 3.5] | 0.865 | 1.000 |
| C vs G | Math (GSM8K) | -50.0 | [-57.0, -43.0] | 0.000 | 0.000 |
| C vs G | Code (MBPP) | -31.0 | [-38.5, -23.5] | 0.000 | 0.000 |
| C vs G | Intent (Banking77) | +17.5 | [11.0, 24.0] | 0.000 | 0.000 |
| C vs G | AG News | +0.5 | [-4.0, 5.0] | 0.906 | 1.000 |
| C vs G | SST-2 | -3.0 | [-7.5, 1.0] | 0.184 | 0.238 |
| C vs G | Emotion | +21.0 | [14.0, 28.0] | 0.000 | 0.000 |
| C vs G | TREC | +0.0 | [-5.5, 5.5] | 1.000 | 1.000 |
| C vs G | BoolQ | -11.0 | [-17.0, -5.0] | 0.000 | 0.001 |
| C vs G | SQuAD (F1) | -11.4 | [-16.5, -6.5] | 0.000 | – |
| C vs G | CoNLL (F1) | +34.6 | [27.9, 41.2] | 0.000 | – |
| C vs G | CommonsenseQA | -10.5 | [-17.5, -3.5] | 0.003 | 0.008 |
| C vs G | E2E JSON (F1) | +15.0 | [12.1, 18.2] | 0.000 | – |
| C vs G | General (MMLU) | -31.5 | [-40.0, -23.0] | 0.000 | 0.000 |
6. Library scaling
| C | F | C − F | 95% CI | |
|---|---|---|---|---|
| Size 3: C vs F3 (3 core tasks) | 52.0 | 51.7 | +0.3 | [-3.2, 3.8] |
| Size 12: C vs F12 (12 covered tasks) | 74.7 | 76.3 | -1.7 | [-3.2, -0.2] |
| Size 12: C vs F12 (3 core tasks) | 52.0 | 54.7 | -2.7 | [-6.3, 1.0] |
| Router accuracy | Fallback rate | C core-3 accuracy | 95% CI | B core-3 accuracy | |
|---|---|---|---|---|---|
| Size 3 | 98.1% | 26.1% | 52.0 | [48.3, 55.5] | 52.2 |
| Size 6 | 93.9% | 19.2% | 52.0 | [48.3, 55.5] | 52.2 |
| Size 12 | 90.0% | 14.1% | 52.0 | [48.3, 55.5] | 52.2 |
All 13 test sets at size 12
| Task | A base | B oracle | C router | F12 | G 4B |
|---|---|---|---|---|---|
| Math (GSM8K) | 52.0 | 37.0 | 36.5 | 46.0 | 86.5 |
| Code (MBPP) | 38.0 | 38.5 | 38.5 | 37.5 | 69.5 |
| Intent (Banking77) | 38.5 | 81.0 | 81.0 | 80.5 | 63.5 |
| AG News | 71.5 | 86.5 | 83.5 | 86.5 | 83.0 |
| SST-2 | 91.0 | 92.5 | 93.0 | 89.0 | 96.0 |
| Emotion | 56.0 | 85.0 | 83.5 | 81.0 | 62.5 |
| TREC | 59.0 | 94.0 | 85.5 | 97.0 | 85.5 |
| BoolQ | 75.0 | 82.0 | 77.0 | 76.0 | 88.0 |
| SQuAD (F1) | 83.5 | 89.1 | 79.4 | 86.9 | 90.8 |
| CoNLL (F1) | 15.1 | 89.5 | 82.8 | 87.9 | 48.2 |
| CommonsenseQA | 49.5 | 63.0 | 62.5 | 53.5 | 73.0 |
| E2E JSON (F1) | 21.5 | 92.8 | 92.8 | 94.1 | 77.8 |
| General (MMLU) | 37.5 | 37.5 | 38.0 | 43.5 | 69.5 |
7. Cross-task matrix (condition H)
Each core adapter on every core task and on general. The diagonal is condition B; off-diagonal cells are what a routing mistake costs.
8. Router
Size 3: test accuracy 98.1%, fallback rate 26.1%, threshold 0.65
Rows: true task (general = “other”). Columns: routed to (“other” = base model). Cells: % of the row.
Size 6: test accuracy 93.9%, fallback rate 19.2%, threshold 0.55
Rows: true task (general = “other”). Columns: routed to (“other” = base model). Cells: % of the row.
Size 12: test accuracy 90.0%, fallback rate 14.1%, threshold 0.375
Rows: true task (general = “other”). Columns: routed to (“other” = base model). Cells: % of the row.
9. Speed, memory and storage
Adapter loading and routing (ms, n = 60 each)
| Median | p95 | |
|---|---|---|
| Cold, from SSD (page cache evicted) | 26.7 | 29.0 |
| of which reading the file | 22.1 | 24.3 |
| Warm, from RAM | 3.3 | 4.7 |
| Already resident | 0.000 | 0.000 |
| Router (CPU, one query) | 11.4 | 22.0 |
posix_fadvise(POSIX_FADV_DONTNEED) on the adapter file before each read (no root for drop_caches); verified with mincore. Pages still cached right after eviction (median fraction): 0.000.
Time to first token and decode speed (batch 1, GSM8K validation prompts)
| TTFT median (ms) | TTFT p95 | tokens/s median | tokens/s p95 | |
|---|---|---|---|---|
| Base model | 55 | 61 | 32.2 | 32.6 |
| Adapter applied, unmerged | 78 | 87 | 20.7 | 20.9 |
| Adapter merged into weights | 54 | 61 | 32.6 | 32.9 |
Size on disk
| Adapter | Size |
|---|---|
| Math (GSM8K) | 40.9 MB |
| Code (MBPP) | 40.9 MB |
| Intent (Banking77) | 40.9 MB |
| AG News | 40.9 MB |
| SST-2 | 40.9 MB |
| Emotion | 40.9 MB |
| TREC | 40.9 MB |
| BoolQ | 40.9 MB |
| SQuAD (F1) | 40.9 MB |
| CoNLL (F1) | 40.9 MB |
| CommonsenseQA | 40.9 MB |
| E2E JSON (F1) | 40.9 MB |
| F3 | 40.9 MB |
| F12 | 40.9 MB |
| Whole library (12 adapters) | 491.2 MB |
Realistic stream: 500 queries from all 13 test sets, one at a time
| C (size 12) | G (4B) | |
|---|---|---|
| Queries | 500 | 500 |
| Latency median (ms) | 215 | 401 |
| Latency p95 (ms) | 3736 | 25728 |
| Adapter cache hit rate (LRU of 3 in RAM) | 26.1% | – |
| Share of latency: routing | 1.57% | – |
| Share of latency: adapter loading | 2.29% | – |
| Mean score on the stream | 71.6 | 75.9 |
Where C’s queries went: base: 67, cold: 320, resident: 40, warm: 73.
10. Cost: C vs G
| C (0.8B + router + library) | G (Qwen3.5-4B) | C / G | |
|---|---|---|---|
| Peak resident memory (RAM + GPU, GB) | 3.55 | 10.25 | 0.35× |
| of which GPU allocations (GB) | 1.70 | 8.77 | |
| Median latency per query (ms) | 215 | 401 | 0.54× |
| Correct answers per minute (stream) | 44.3 | 12.8 | 3.46× |
| Accuracy, 12 covered test sets | 74.7 | 77.0 | 0.97× |
| Accuracy points per GB resident | 21.0 | 7.5 | 2.80× |
11. Opus 5.5 written weights (Step 6)
Task: E2E restaurant JSON. The base model systematically broke the schema: in 64 training prompts, 34 outputs
contained bare JSON literals (false, null, numbers) although the prompt says all values are
strings, and each such output scores 0. After a key, the model chooses between " (open a string) and single
tokens such as false, true, null; in the weights, those literal rows of the
(tied) embedding matrix are nearly orthogonal to the " row (cosine 0.03–0.11).
Edit, written without gradients or fitting: untie the output rows of the 16 bare-literal tokens (true/false/null/True/False/None/nan/NaN, with and without a leading space) and set them to zero, so their logit is 0 in every context. Input embeddings are untouched. 16,384 weights changed; 33 KB on disk. Forward-pass budget used: 8 of 25 batches (4 of them wasted: their outputs were not saved and had to be rerun). On validation, schema-valid outputs went from 33% to 81%.
| E2E test (n=200) | Slot F1 | 95% CI | Schema-valid |
|---|---|---|---|
| A · base | 21.5 | [17.7, 25.5] | 42% |
| Reasoning-written edit (B and C) | 53.8 | [50.7, 56.7] | 95% |
| LoRA (B and C) | 92.8 | [91.6, 94.0] | 100% |
The edit beats the base model by +32.2 points
[27.8, 36.7] and loses to the LoRA by -39.1
[-42.2, -36.0]. It fixes the format; the LoRA also learns the values (for example
"familyFriendly": "yes" instead of "true"). C with the edit equals B with the edit because the
router sent every E2E test question to the E2E entry.
12. Step 6b: thinking-mode edits
Added before any test-set generation. Reported separately; it does not change criteria 1–8.
The published edit from “Sparks of Weight-Space Programming” (RikiyaT/Qwen3.5-0.8B-weight-space-programming)
targets reasoning loops in thinking mode, which the main experiment (non-thinking) cannot show.
Same base checkpoint: yes. Config, tokenizer and chat template are byte-identical, every tensor has the same name,
shape and dtype, and 130,188 of 873,438,784 values differ (0.0149%), all in
mlp.down_proj of layers 15 and 19, 64 columns each. The blog reports 131,072; the 884 missing positions are
where the subtracted direction rounded to no change in bf16. Each layer's change is rank 1.
As a library file: 1.30 MB (positions + new values). Load from SSD and apply: 1.44 ms median; revert: 0.046 ms; reverting restores the exact weights.
| Non-thinking (n=200) | Base | Base + edit | Diff | 95% CI |
|---|---|---|---|---|
| math | 52.0 | 50.0 | -2.0 | [-8.5, 5.0] |
| code | 38.0 | 38.5 | +0.5 | [-4.0, 5.0] |
| intent | 38.5 | 35.5 | -3.0 | [-6.0, 0.0] |
| general | 37.5 | 36.0 | -1.5 | [-4.0, 1.0] |
Thinking-mode runs: still running when this report was generated.
Classification pending: the thinking-mode runs had not finished. (Rule, fixed before the thinking results: “helps” means the 95% CI of the difference lies above zero; a fix helps on both thinking-mode tasks, a skill on one.)
Thinking mode: temperature 1.0, top_p 0.95, top_k 20, min_p 0.0, presence penalty 1.5, repetition penalty 1.0 (Qwen model card, thinking mode, text tasks), 16,384 new tokens, seed 1234; the blog used temperature 0.6 and 32,768 tokens. Part 2 (Opus 5.5 written weights for thinking mode) was not run inside Step 6b's 4-hour limit; an Opus 5.5 written thinking edit was tested afterwards as an exploratory follow-up (section 13.5). The thinking-mode runs of the published edit were stopped after the base runs, at Kevin's request.
13. Exploratory follow-ups (after the main test)
Run after the main analysis. Exploratory: none of it changes criteria 1-8 or the verdict.
13.1 Intelligence vs cost (500-question mix from all 13 test sets)
| Mode | Setup | Score | GB resident | Correct / min | Correct / min / GB | GB-s per correct |
|---|---|---|---|---|---|---|
| one at a time | 0.8B, no files | 52.0 | 3.14 | 19.5 | 6.22 | 9.65 |
| one at a time | 0.8B + 12 files (n-gram router, LRU 3, cold) | 72.4 | 3.41 | 47.4 | 13.90 | 4.32 |
| one at a time | 0.8B + one all-in-one adapter (merged) | 73.5 | 3.14 | 71.2 | 22.67 | 2.65 |
| batched (64 / 16 per batch, grouped by file) | 0.8B, no files | 50.4 | 6.07 | 71.4 | 11.76 | 5.10 |
| batched (64 / 16 per batch, grouped by file) | 0.8B + 12 files (n-gram router, LRU 3, cold) | 71.8 | 4.21 | 99.4 | 23.62 | 2.54 |
| batched (64 / 16 per batch, grouped by file) | 0.8B + one all-in-one adapter (merged) | 72.9 | 6.05 | 180.0 | 29.75 | 2.02 |
| batched (64 / 16 per batch, grouped by file) | Qwen3.5-4B | 75.8 | 12.00 | 21.2 | 1.77 | 33.93 |
The one-at-a-time 4B number is the stream of section 10: 12.8 correct/min, 10.25 GB, 48.0 GB-s per correct answer.
13.2 Routing on the whole request
Each test request is one of ten instruction phrasings plus the content, instruction first in 70% of requests. Routers train on phrasings 0-5, pick thresholds and temperature on 6-7 and are scored on 8-9 only. No task names. The answering prompt is unchanged; the phrasing only changes what the router reads. Expected score: argmax over weights of sum_t p(t | request) S[t][weights], with S measured on 40 validation questions per cell (13 tasks x 13 weights) and the router's probabilities sharpened by a temperature chosen on validation (0.25 at 3 and 6 files, 0.5 at 12). Wrong file counts any file other than the task's own, so for the expected-score router it includes deliberate choices (for example general questions sent to the E2E file).
| Router | 3 files | wrong | 6 files | wrong | 12 files | wrong |
|---|---|---|---|---|---|---|
| n-gram (TF-IDF word 1-2 + char 3-5) + LR | 46.7 [42.8, 50.5] | 0.0% | 67.7 [65.5, 69.9] | 0.3% | 71.6 [70.0, 73.1] | 4.0% |
| bge-small + LR | 52.2 [48.5, 55.7] | 0.4% | 70.1 [67.9, 72.1] | 0.5% | 74.8 [73.3, 76.3] | 2.3% |
| both voting (mean of probabilities) | 51.3 [47.7, 55.0] | 0.1% | 70.5 [68.3, 72.5] | 0.1% | 76.3 [74.8, 77.7] | 0.9% |
| both voting + expected score | 57.2 [53.5, 60.7] | 24.6% | 72.7 [70.4, 74.8] | 15.1% | 77.3 [75.9, 78.8] | 16.0% |
| perfect routing (own file) | 52.2 | 70.5 | 77.6 | |||
| best weights per task, chosen on validation | 57.2 | 72.8 | 78.2 | |||
| Qwen3.5-4B | 73.2 | 78.1 | 77.0 |
Paired bootstrap at 12 files, expected-score router minus: vote +1.0 [0.0, 2.1]; best file per task (chosen on val) -0.9 [-1.3, -0.5]; perfect routing (own file) -0.3 [-1.2, 0.7]; 4B +0.3 [-1.4, 2.0]. Best weights chosen on validation at 12 files: math → base, SST-2 → base, BoolQ → csqa, general → e2e (every other task: its own file). Time per request on the CPU, one at a time: n-gram 1.3 ms, embedding 9.2 ms, decision 0.09 ms, total 10.6 ms median (13.0 ms p95).
Not tested: 33 files with whole-request phrasings; content-only routing fell from 94.2% at 12 files to 87.2% at 33.
13.3 Swap speed per file type
| File | Size | From RAM (ms) | From SSD, page cache evicted (ms) |
|---|---|---|---|
| LoRA adapter (trained) | 40.9 MB | 3.00 | 7.48 |
| JSON literal rows (Opus 5.5 written) | 33.0 KB | 0.065 | 0.243 |
| TREC calibration (Opus 5.5 written) | 12.5 KB | 0.067 | 0.190 |
| math thinking control (Opus 5.5 written) | 14.5 KB | 0.065 | 0.228 |
LoRA: mean of 120 back-to-back swaps; the speed test in section 9 measured 27 ms median for a cold load. Written files: median of 60 apply + revert cycles, including the file read and a GPU sync.
13.4 Opus 5.5 written calibration files
Built from 10 failing and 10 passing training/validation questions per task. The plain model's label bias is measured on content-free and batch inputs; one offset per label is written into that label's output row in final-hidden dimension 829, which is nearly constant across inputs, so it acts as a per-label bias. Method and strength chosen on the build questions; 'none' allowed. Scored on the 200 test questions.
| Task | Method | Weights | Plain | File | Diff | 95% CI | Trained LoRA | 4B |
|---|---|---|---|---|---|---|---|---|
| TREC | batch | 6 | 59.0 | 65.5 | +6.5 | [2.0, 11.0] | 94.0 | 85.5 |
| emotion | contextual | 6 | 56.0 | 54.0 | -2.0 | [-7.5, 3.0] | 85.0 | 62.5 |
| AG News | contextual | 4 | 71.5 | 75.5 | +4.0 | [-1.0, 9.0] | 86.5 | 83.0 |
| CommonsenseQA | none | 0 | 49.5 | 49.5 | +0.0 | [-1.5, 1.5] | 63.0 | 73.0 |
| general | batch | 4 | 37.5 | 41.0 | +3.5 | [-2.5, 10.0] | 69.5 |
13.5 Opus 5.5 written thinking edit
output rows of 6 'Wait' tokens set to zero; </think> output row x1.6: 7,168 weights, 14.5 KB. Strength chosen on validation questions within a fixed budget of forward passes; no gradients. Thinking mode with the model-card sampling settings of section 12, 16,384 new tokens, same test questions as the base runs.
| Task | n | Base | Edit | Diff | 95% CI | Median tokens, base | Median tokens, edit | Base at cap | Edit at cap |
|---|---|---|---|---|---|---|---|---|---|
| math | 100 | 49.0 | 55.0 | +6.0 | [-4.0, 16.0] | 16,384 | 1,021 | 51 | 10 |
| general | 100 | 52.0 | 23.0 | -29.0 | [-41.0, -17.0] | 4,274 | 4 | 8 | 2 |
Classification by the section 12 rule: helps on neither task (the math CI includes zero), hurts general knowledge; it is a math-only library entry at best, valuable for its 16x shorter answers. One question at a time on 10 math questions: median 25.9 s and 786 tokens per answer, 60% right.
14. Examples
Size 12, C vs A, among queries the router sent to an adapter. 496 test examples where routing turned a wrong answer right, 145 where it turned a right one wrong.
Where routing helped
Emotion · test-83 · routed to lora:emotion · score A 0.00 → C 1.00
A (base)
sadness
C (routed)
joy
E2E JSON (F1) · test-766 · routed to lora:e2e · score A 0.00 → C 1.00
A (base)
{
"name": "The Phoenix",
"eatType": "pub",
"food": "fast food",
"priceRange": "moderate",
"customerRating": 3,
"area": "riverside",
"familyFriendly": true,
"near": "Café Sicilia"
}C (routed)
{"name": "The Phoenix", "eatType": "pub", "food": "Fast food", "priceRange": "moderate", "customerRating": "3 out of 5", "area": "riverside", "familyFriendly": "yes", "near": "Café Sicilia"}CoNLL (F1) · test-3025 · routed to lora:conll · score A 0.00 → C 1.00
A (base)
LOC: 22 LOC: 8 LOC: 6 LOC: 23 LOC: 17 LOC: 32
C (routed)
ORG: Barnet
Code (MBPP) · test-250 · routed to lora:code · score A 0.00 → C 1.00
A (base)
```python
def count_occurrences(x, y):
"""
Counts the number of occurrences of element y in tuple x.
Parameters:
x (tuple): The tuple to search in
y (int): The element to count
Returns:
int: The count of y in x
"""
return x.count(y)
# Test the function
assert count_occurrences((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2), 4) == 0
assert count_occurrences((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2), 10) == 3
assert count_occurrences((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2), 15) == 1
assert count_occurrences((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2), 8) == C (routed)
```python def count_X(test_tup, x): res = test_tup.count(x) return (res) ```
Intent (Banking77) · test-2355 · routed to lora:intent · score A 0.00 → C 1.00
A (base)
transfer_not_received_by_recipient
C (routed)
transfer_into_account
Where routing hurt
BoolQ · test-2508 · routed to lora:agnews · score A 1.00 → C 0.00
A (base)
yes
C (routed)
Sports
SQuAD (F1) · test-467 · routed to lora:agnews · score A 1.00 → C 0.00
A (base)
Super Bowl City
C (routed)
Sports
Math (GSM8K) · test-843 · routed to lora:math · score A 1.00 → C 0.00
A (base)
To solve this problem, we need to calculate the total cost of all the items Craig bought and then subtract that amount from the total amount of money he started with. **Step 1: Calculate the cost of the squirt guns.** * Number of squirt guns: 6 * Cost per squirt gun: $2 * Total cost for squirt guns = $6 \times 2 = \$12$ **Step 2: Calculate the cost of the water balloons.** * Number of packs of water balloons: 3 * Cost per pack of water balloons: $3 * Total cost for water balloons = $3 \times 3 = \$9$ **Step 3: Calculate the total cost of all items.** * Total cost = Cost of squ
C (routed)
He spent 6*2=$12 on squirt guns He spent 3*3=$9 on water balloons He has 20-12-9=$1 left The answer is 1.
Intent (Banking77) · test-2829 · routed to lora:intent · score A 1.00 → C 0.00
A (base)
top_up_by_card_charge
C (routed)
topping_up_by_card
Code (MBPP) · test-395 · routed to lora:code · score A 1.00 → C 0.00
A (base)
```python
def first_non_repeating_character(s: str) -> str:
"""
Find the first non-repeated character in a string.
Args:
s (str): The input string.
Returns:
str: The first character that does not appear more than once in the string.
If no such character exists, returns None.
"""
if not s:
return None
# Count character frequencies
counts = {}
for char in s:
counts[char] = counts.get(char, 0) + 1
# Find the first character with frequency 1
for char in s:
if counts[char] == 1:
C (routed)
```python
def first_non_repeating_character(test_str):
res = "".join(filter(lambda x: x != test_str.count(x), test_str))
if (res == ""):
return None
return (res)
```15. Limitations, and what would change the conclusions
- One run, 200 test examples per task. Confidence intervals are 5–15 points wide on single tasks. Seeds, prompts and hyperparameters were fixed once; nothing was tuned per task.
- The memory criterion turned on 136 MB. Peak resident memory is process RSS plus GPU allocations. On this unified-memory machine RSS includes ~1.5 GB of runtime libraries that both models pay (1.85 GB for C, 1.48 GB for G; C's includes the router and the RAM cache of three adapters). GPU memory alone: 1.70 GB vs 8.77 GB (0.19). A leaner runtime, bf16 adapters (they are stored in fp32) or a server process where the runtime is shared would put the ratio under 1/3. That would not make the verdict "supported": criterion 1 is inconclusive because the math adapter hurts.
- Fixed templates. Each task uses one prompt template. The router only sees the user content, so it cannot lean on the template, but real users phrase tasks in many ways.
- Training choices. One learning rate for all adapters, chosen on two tasks. The math adapter learned GSM8K's terse reference rationales and lost 15 points; training on the base model's own reasoning, or not training a math adapter at all, would likely change the math result.
- Speed numbers are from transformers on an iGPU without fused kernels. Absolute latencies are not what a serving engine would show. An unmerged adapter cut decode speed from 32.2 to 20.7 tokens/s here (merged: 32.6); serving engines with batched LoRA kernels do much better.
- Cold loads evict the adapter file from the page cache with
posix_fadvise(no root fordrop_caches); mincore confirmed 0% of pages cached before each load. - G ran at batch 16, the 0.8B model at batch 64, so bf16 rounding differs slightly between them. Greedy outputs depend a little on batch composition.
- Test splits: BoolQ, SQuAD and CommonsenseQA have hidden test labels, so their official validation splits were the test sets here (our validation sets were carved from train).
What would change the conclusions: a math adapter that does not hurt (criterion 1), a leaner runtime or a shared server process (criterion 6 memory), and more seeds and test examples to narrow the C vs F12 comparison.
16. How to reproduce
Code, data preparation and plan are in the experiment folder (README.md lists every file).
uv venv --python 3.12 .venv uv pip install --python .venv/bin/python --index-url https://rocm.nightlies.amd.com/v2/gfx1151/ \ --extra-index-url https://pypi.org/simple -r requirements.txt cd src ../.venv/bin/python data_prep.py && ../.venv/bin/python -m pytest -q ../tests ../.venv/bin/python lr_pilot.py && ../.venv/bin/python router.py && ../.venv/bin/python edit.py build ../pipeline.sh # library, validation, all generations ../pipeline2.sh # speed, streams, Step 6b, assemble, analysis ../.venv/bin/python report.py
Every stage resumes from its caches. Seeds: data random.Random("1234-<task>"), size 6
"1234-size6", stream "1234-stream", Step 6b sample "1234-6b-<task>",
training seed 0, bootstrap seed 0.
Deviations from the plan
- Cut 1: the 9 extra adapters were trained on 1,000 examples instead of 2,000 (estimate 12.3 h > 12 h). Measured training was faster than estimated, so the cut turned out unnecessary.
- MBPP has 384 training and 90 validation problems in total; all were used.
- BoolQ, SQuAD and CommonsenseQA: the official validation split is the test set (hidden test labels).
- CoNLL-2003: only sentences with at least one entity and four tokens; E2E JSON from GEM/e2e_nlg; SST-2 from SetFit/sst2; TREC from SetFit/TREC-QC (coarse labels).
- The base model is Qwen/Qwen3.5-0.8B itself: the card has no separate Instruct repo, this is the post-trained model.
- PyTorch runs on AMD's gfx1151 nightly (the official ROCm 7.1 wheel segfaults here), with MIOpen disabled, eager attention and a faster single-token decode step for the linear-attention layers (exact in a unit test).
- PyTorch is capped at 40% of GPU memory (50% for G, 55% for the Step 6b thinking runs) after an uncapped run crashed the machine. G ran at batch 16, the 0.8B model at 64.
- Each generation is computed once per set of weights and example and then written into the condition records keyed by (condition, library size, task, example id).
- Step 6 used 8 of its 25 forward-pass batches; 4 were wasted because their outputs were not saved.
- Step 6b was added before any test-set generation; part 2 was not run (it would have pushed the run more than 4 hours past the estimate). Its thinking-mode settings follow the Qwen model card (temperature 1.0, 16,384 tokens), not the blog's (0.6, 32,768).
- The first Step 6b thinking run ran out of memory (transformers copies the KV cache every step); it was restarted with a preallocated cache that gives identical tokens.
- The run was interrupted by laptop sleeps and one killed process (validation stage, 18:11); every stage resumed from its caches, and no measured timing overlapped a sleep.
Part 2: Opus 5.5 written family files on 0.8B, 2B and 4B
The second experiment. Family files written by Opus 5.5 without training, hot-swapped per question by a family router, on Qwen3.5-0.8B, 2B and 4B, against trained yardsticks and against plain Qwen3.5-4B and 9B. Generated from the result files by src/report2.py.
17. Claims and verdicts
| Claim | Criterion | Status | Key numbers |
|---|---|---|---|
| P1 · written files teach (0.8B) | teach ratio ≥ 0.75 on ≥ 4 of 7 families | not met | 2 of 7 |
| P2 · files generalize (0.8B) | held-out gain CI above zero on ≥ 4 of 7 families | not met | 1 of 7 |
| P3 · thinking file (4B) | ≤ 0.7× plain tokens and accuracy ≥ plain − 2 (GSM8K + SVAMP) | met | 0.56× tokens, accuracy +14.5 [+11.2, +18.0] |
| P4 · 4B + router + files vs 9B | score ≥ 9B − 1, ≤ 0.5× memory, ≥ 2× correct/min/GB | not met | +0.7 [-0.4, +1.7]; memory 0.58×; 3.23× |
| P1 / P2 confirmation (2B) | as on the 0.8B | not met | P1 2 of 7, P2 2 of 7 |
| P4 confirmation: 2B + router + files vs 4B | as P4 | not met | -9.7 [-11.0, -8.4]; memory 0.63×; 1.94× |
18. Summary
Opus 5.5 written weights are a good tool for format and behaviour and a poor one for knowledge. On every base the big gains were on extraction (0.8B 18.3 → 56.2, 2B 26.1 → 66.4 on the build tasks), where the plain model writes broken JSON or the wrong span, and on math answers that run past the token limit. Choosing among labels or answer letters moved by calibration-sized amounts, and facts did not move at all. That was enough to bring Qwen3.5-4B level with Qwen3.5-9B, which was only 1.1 points ahead, and far from enough to bring the 2B level with the 4B, 15.1 points ahead. The 4B system missed P4 on memory alone: the 4B checkpoint is already 0.48× the 9B's, so the 0.5× limit left 0.02× for the cache, the router and the files. The written thinking file nearly halved the tokens of thinking on GSM8K and SVAMP and raised accuracy, but by finishing inside the 3,072-token limit, not by reasoning better: among questions both answered, plain thinking was right more often.
19. Predictions and rules
- P1, written files teach. Written family files capture most of what a trained file gains over the plain model on the family's build tasks. Teach ratio = (written − plain) / (trained − plain); when trained − plain is below 2 points the family counts as met if written ≥ trained − 1. Met if the ratio is ≥ 0.75 on ≥ 4 of 7 families.
- P2, family files generalize. Met if the held-out task's gain (written − plain, paired bootstrap 95% CI, 10,000 resamples, seed 0) lies above zero on ≥ 4 of 7 families.
- P3, thinking. On the 4B in thinking mode, a written thinking-control file uses ≤ 0.7× the plain tokens, averaged over GSM8K and SVAMP test, with accuracy no more than 2 points lower.
- P4, small base + files beats a bigger model. Qwen3.5-4B + router + files scores at least the 9B's mean over the 20 test sets minus 1 point, with at most half its peak resident memory and at least 2× its correct answers per minute per GB in the batched 500-question mix. Reported the same way for the 2B against the plain 4B.
The no-training rule. Allowed: forward passes to inspect the model; measurements on at most 200 build questions per family from train and validation splits; closed-form computations (averages, differences of activations, projections, one least-squares solve per edit, truncated SVD). Not allowed: gradient descent or any iterative optimizer, backpropagation, or searching over many candidates. Per family file: at most 8 candidates scored and 60 forward batches, logged in budget.jsonl. Test questions are never used to write or choose a file, and the writers never saw test results.
Two notes. The first choice of thinking file was replaced before any test run, because it often closed thinking before stating the answer. The 2B's reading file is near empty (r2_null, effect below bf16 resolution) and counts as written = plain.
20. Setup
- Bases: Qwen3.5-0.8B, 2B, 4B and 9B, bf16, non-thinking mode, greedy decoding (thinking mode only in Phase 3). One AMD Ryzen AI Max+ 395 laptop, Radeon 8060S sharing 57 GB of RAM.
- Families: seven, each with build tasks the writer could use and one held-out task it never saw. Test sets: up to 200 questions each, 20 in all.
- Yardsticks: a LoRA per family trained on the same build data with the first experiment's hyperparameters, on the 0.8B and the 2B.
- Edit kinds (all batchable and exactly revertible):
head_rows(output rows),token_bias,resid_add(vectors added to the residual stream at chosen layers),lowrank(closed-form low-rank deltas on MLP weights). - Writers: Claude Opus 5.5, one family at a time, under the budget above.
| Family | Build tasks | Held-out task |
|---|---|---|
| labels | AG News, SST-2, Emotion, TREC, Intent (Banking77) | DBpedia |
| extraction | E2E JSON (F1), CoNLL (F1) | WNUT-17 (F1) |
| reading | SQuAD (F1), BoolQ | AdversarialQA (F1) |
| math | GSM8K | SVAMP |
| code | MBPP | HumanEval |
| commonsense | CommonsenseQA | OpenBookQA |
| knowledge | MMLU | ARC-Challenge |
Family router
vote (TF-IDF LR + bge-small LR), 7 families, trained on the build tasks only. Validation 96.7%, build test sets 98.0%, held-out test sets 90.5%. Routed scores equal perfect routing: 79.6 vs 79.6 on the 4B.
| Test set | Family | Role | Right family | Routed to |
|---|---|---|---|---|
| AG News | labels | build | 99.5% | labels 199, reading 1 |
| SST-2 | labels | build | 100.0% | labels 200 |
| Emotion | labels | build | 100.0% | labels 200 |
| TREC | labels | build | 92.5% | labels 185, knowledge 10, math 2, reading 2, extraction 1 |
| Intent (Banking77) | labels | build | 100.0% | labels 200 |
| E2E JSON (F1) | extraction | build | 100.0% | extraction 200 |
| CoNLL (F1) | extraction | build | 96.5% | extraction 193, labels 6, reading 1 |
| SQuAD (F1) | reading | build | 96.0% | reading 192, knowledge 8 |
| BoolQ | reading | build | 99.0% | reading 198, knowledge 2 |
| GSM8K | math | build | 98.5% | math 197, knowledge 3 |
| MBPP | code | build | 100.0% | code 200 |
| CommonsenseQA | commonsense | build | 93.0% | commonsense 186, knowledge 14 |
| MMLU | knowledge | build | 99.5% | knowledge 199, reading 1 |
| DBpedia | labels | heldout | 62.0% | labels 124, reading 76 |
| WNUT-17 (F1) | extraction | heldout | 100.0% | extraction 200 |
| AdversarialQA (F1) | reading | heldout | 98.5% | reading 197, knowledge 3 |
| SVAMP | math | heldout | 100.0% | math 200 |
| HumanEval | code | heldout | 100.0% | code 164 |
| OpenBookQA | commonsense | heldout | 74.5% | commonsense 149, knowledge 50, reading 1 |
| ARC-Challenge | knowledge | heldout | 100.0% | knowledge 200 |
21. Phase 1–2 on the 0.8B: do written files teach, and generalize?
| Family | Build tasks | Plain | Written | Written − plain [95% CI] | Trained | Teach ratio | P1 | Held-out task | Held-out gain, written | Held-out gain, trained | P2 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| labels | AG News, SST-2, Emotion, TREC, Intent (Banking77) | 63.2 | 66.2 | +3.0 [+1.4, +4.6] | 87.2 | 0.12 | not met | DBpedia | +0.0 [+0.0, +0.0] | +16.5 [+9.0, +24.0] | not met |
| extraction | E2E JSON (F1), CoNLL (F1) | 18.3 | 56.2 | +37.9 [+34.0, +41.9] | 90.9 | 0.52 | not met | WNUT-17 (F1) | +2.0 [-0.8, +4.9] | -16.2 [-20.5, -11.8] | not met |
| reading | SQuAD (F1), BoolQ | 79.2 | 77.8 | -1.4 [-2.8, -0.1] | 85.5 | -0.22 | not met | AdversarialQA (F1) | +1.6 [-2.2, +5.4] | +12.3 [+5.6, +19.0] | not met |
| math | GSM8K | 52.0 | 53.0 | +1.0 [-3.5, +6.0] | 37.0 | undefined | met | SVAMP | +2.0 [-0.5, +5.0] | -24.0 [-31.5, -17.0] | not met |
| code | MBPP | 38.0 | 42.0 | +4.0 [+0.0, +8.0] | 38.5 | undefined | met | HumanEval | -0.6 [-4.3, +3.0] | -8.5 [-14.6, -2.4] | not met |
| commonsense | CommonsenseQA | 49.5 | 51.0 | +1.5 [-2.5, +5.5] | 63.0 | 0.11 | not met | OpenBookQA | -7.0 [-13.0, -1.0] | +6.0 [-1.5, +13.5] | not met |
| knowledge | MMLU | 37.5 | 40.5 | +3.0 [-1.5, +7.5] | 44.5 | 0.43 | not met | ARC-Challenge | +5.5 [+1.0, +10.0] | +13.5 [+5.0, +21.5] | met |
Per test set
| Task | Family | Role | Plain | Written | Trained |
|---|---|---|---|---|---|
| AG News | labels | build | 71.5 | 71.5 | 86.0 |
| SST-2 | labels | build | 91.0 | 91.0 | 92.5 |
| Emotion | labels | build | 56.0 | 56.0 | 79.5 |
| TREC | labels | build | 59.0 | 74.0 | 96.0 |
| Intent (Banking77) | labels | build | 38.5 | 38.5 | 82.0 |
| DBpedia | labels | held-out | 48.5 | 48.5 | 65.0 |
| E2E JSON (F1) | extraction | build | 21.5 | 72.7 | 93.3 |
| CoNLL (F1) | extraction | build | 15.1 | 39.8 | 88.6 |
| WNUT-17 (F1) | extraction | held-out | 17.4 | 19.4 | 1.2 |
| SQuAD (F1) | reading | build | 83.5 | 81.2 | 90.6 |
| BoolQ | reading | build | 75.0 | 74.5 | 80.5 |
| AdversarialQA (F1) | reading | held-out | 48.6 | 50.2 | 60.9 |
| GSM8K | math | build | 52.0 | 53.0 | 37.0 |
| SVAMP | math | held-out | 71.0 | 73.0 | 47.0 |
| MBPP | code | build | 38.0 | 42.0 | 38.5 |
| HumanEval | code | held-out | 30.5 | 29.9 | 22.0 |
| CommonsenseQA | commonsense | build | 49.5 | 51.0 | 63.0 |
| OpenBookQA | commonsense | held-out | 55.5 | 48.5 | 61.5 |
| MMLU | knowledge | build | 37.5 | 40.5 | 44.5 |
| ARC-Challenge | knowledge | held-out | 50.5 | 56.0 | 64.0 |
The 0.8B files
| Family | File | Edit kinds | Weights changed | Size on disk | Build questions | Forward batches | Candidates | Validation (file) |
|---|---|---|---|---|---|---|---|---|
| labels | labels_probe4_trec | head_rows, token_bias | 6,150 | 12.7 KB | 200 | 12 | 3 | 66.3 |
| extraction | extraction_ad4 | head_rows, lowrank | 2,375,680 | 4.8 MB | 200 | 24 | 6 | 59.4 |
| reading | reading_ad1 | head_rows, lowrank, token_bias | 295,937 | 592.3 KB | 200 | 14 | 4 | 75.6 |
| math | math_verify2final_alt2thus_v4 | head_rows | 37,888 | 76.3 KB | 160 | 12 | 3 | 66.7 |
| code | code_instrvec_L11_v1 | resid_add | 1,024 | 2.2 KB | 154 | 12 | 2 | 17.8 |
| commonsense | commonsense_ccal1 | token_bias | 5 | 0.2 KB | 200 | 10 | 2 | 52.1 |
| knowledge | knowledge_ccal1 | token_bias | 4 | 0.2 KB | 200 | 14 | 3 | 41.7 |
22. Phase 4: Qwen3.5-4B + router + written files against Qwen3.5-9B
The 4B files (no trained yardstick on the 4B)
| Family | Build tasks | Plain | Written | Written − plain [95% CI] | P1 | Held-out task | Held-out gain, written | P2 |
|---|---|---|---|---|---|---|---|---|
| labels | AG News, SST-2, Emotion, TREC, Intent (Banking77) | 78.1 | 77.9 | -0.2 | – | DBpedia | +0.0 [+0.0, +0.0] | not met |
| extraction | E2E JSON (F1), CoNLL (F1) | 63.0 | 77.6 | +14.6 | – | WNUT-17 (F1) | +4.1 [+1.4, +6.9] | met |
| reading | SQuAD (F1), BoolQ | 89.4 | 89.4 | +0.0 | – | AdversarialQA (F1) | +1.4 [-0.6, +3.5] | not met |
| math | GSM8K | 86.5 | 90.5 | +4.0 | – | SVAMP | +1.5 [-1.5, +5.0] | not met |
| code | MBPP | 69.5 | 70.0 | +0.5 | – | HumanEval | -1.8 [-6.7, +3.0] | not met |
| commonsense | CommonsenseQA | 73.0 | 73.5 | +0.5 | – | OpenBookQA | -1.5 [-3.5, +0.0] | not met |
| knowledge | MMLU | 69.5 | 69.0 | -0.5 | – | ARC-Challenge | -0.5 [-1.5, +0.0] | not met |
| Family | File | Edit kinds | Weights changed | Size on disk | Build questions | Forward batches | Candidates | Validation (file) |
|---|---|---|---|---|---|---|---|---|
| labels | lab4b_defemo16g | lowrank | 11,776 | 23.7 KB | 200 | 24 | 2 | 74.7 |
| extraction | x4_ad3 | lowrank | 4,521,984 | 9.0 MB | 200 | 21 | 5 | 76.2 |
| reading | r4_stop | head_rows, token_bias | 2,561 | 5.4 KB | 200 | 6 | 1 | 81.1 |
| math | math4b_rename_plainspread_v1 | head_rows, resid_add | 110,080 | 221.0 KB | 192 | 15 | 4 | 93.0 |
| code | code4b_walkspread_v1 | resid_add | 12,800 | 26.0 KB | 154 | 14 | 3 | 54.4 |
| commonsense | cs4b_ccal1 | token_bias | 10 | 0.3 KB | 200 | 18 | 2 | 78.1 |
| knowledge | kn4b_ccal05 | token_bias | 8 | 0.2 KB | 200 | 16 | 3 | 79.2 |
Score per test set
| Test set | Family | Role | routed | perfect routing | plain 4b | plain 9b |
|---|---|---|---|---|---|---|
| AG News | labels | build | 83.0 | 83.0 | 83.0 | 84.5 |
| SST-2 | labels | build | 95.5 | 95.5 | 96.0 | 97.0 |
| Emotion | labels | build | 62.0 | 62.0 | 62.5 | 60.0 |
| TREC | labels | build | 85.5 | 85.5 | 85.5 | 80.5 |
| Intent (Banking77) | labels | build | 63.5 | 63.5 | 63.5 | 69.0 |
| DBpedia | labels | held-out | 98.0 | 98.0 | 98.0 | 97.0 |
| E2E JSON (F1) | extraction | build | 81.6 | 81.6 | 77.8 | 82.8 |
| CoNLL (F1) | extraction | build | 73.3 | 73.7 | 48.2 | 40.9 |
| WNUT-17 (F1) | extraction | held-out | 51.6 | 51.6 | 47.5 | 44.4 |
| SQuAD (F1) | reading | build | 90.7 | 90.8 | 90.8 | 86.2 |
| BoolQ | reading | build | 88.0 | 88.0 | 88.0 | 85.0 |
| AdversarialQA (F1) | reading | held-out | 72.8 | 72.8 | 71.4 | 70.1 |
| GSM8K | math | build | 90.5 | 90.5 | 86.5 | 86.5 |
| SVAMP | math | held-out | 89.0 | 89.0 | 87.5 | 85.0 |
| MBPP | code | build | 70.0 | 70.0 | 69.5 | 81.0 |
| HumanEval | code | held-out | 78.0 | 78.0 | 79.9 | 83.5 |
| CommonsenseQA | commonsense | build | 73.5 | 73.5 | 73.0 | 79.5 |
| OpenBookQA | commonsense | held-out | 85.0 | 84.0 | 85.5 | 94.5 |
| MMLU | knowledge | build | 69.0 | 69.0 | 69.5 | 75.5 |
| ARC-Challenge | knowledge | held-out | 92.0 | 92.0 | 92.5 | 96.0 |
| Mean over 20 sets | 79.6 | 79.6 | 77.8 | 78.9 |
Family means
| Family | Qwen3.5-4B + router + files | Qwen3.5-4B, plain | Qwen3.5-9B, plain |
|---|---|---|---|
| labels | 81.2 | 81.4 | 81.3 |
| extraction | 68.8 | 57.8 | 56.0 |
| reading | 83.8 | 83.4 | 80.4 |
| math | 89.8 | 87.0 | 85.8 |
| code | 74.0 | 74.7 | 82.3 |
| commonsense | 79.2 | 79.2 | 87.0 |
| knowledge | 80.5 | 81.0 | 85.8 |
Memory and throughput: batched 500-question mix
The 500-question stream over the 13 build test sets, routed by the family router, each system alone on the GPU. All seven files stay installed; each batch row uses its own file.
| System | Batch | Mix score | Wall time | Correct/min | Peak GPU | Peak resident | Correct/min/GB | GB·s per correct | Router time |
|---|---|---|---|---|---|---|---|---|---|
| 4B + router + 7 files | 16 | 77.5 | 18.0 min | 21.5 | 10.48 GB | 12.44 GB | 1.73 | 34.7 | 39 s |
| Qwen3.5-9B | 16 | 77.8 | 33.8 min | 11.5 | 19.93 GB | 21.46 GB | 0.54 | 111.9 | – |
| Qwen3.5-4B, plain | 16 | 75.8 | 16.9 min | 22.4 | 10.37 GB | 11.90 GB | 1.88 | 31.9 | – |
Verdict
| Part | Result | Criterion | Status |
|---|---|---|---|
| Score over 20 sets | 79.6 vs 78.9: +0.7 [-0.4, +1.7] | ≥ −1 (point estimate) | met |
| Peak resident memory | 12.44 vs 21.46 GB: 0.58× | ≤ 0.5× | not met |
| Correct/min/GB | 1.73 vs 0.54: 3.23× | ≥ 2× | met |
The 4B checkpoint is 9.3 GB against the 9B's 19.3 GB (0.48×). GPU memory alone: 10.48 vs 19.93 GB (0.53×).
23. Phase 3: thinking on the 4B with a written thinking file
Thinking mode with the model card's sampling (presence penalty 1.5, top-k 20, top-p 0.95, temperature 1.0), 3,072 new tokens for thinking and answer, batches of 16 with fixed seeds. No </think> means no answer. The file, mt4b_gate_k16_v2, is a gate on the end-of-thinking token: one output row and one bias (2,561 weights), the row fitted by one weighted ridge regression on the plain 4B's own final hidden states over 64 GSM8K training traces, with target 1 at paragraph boundaries after the trace's answer is settled and 0 or below elsewhere. It was written on GSM8K only; SVAMP is held out.
| Test set | Condition | Accuracy | Mean tokens | Median tokens | Cut at limit | No answer | Accuracy when answered | s per correct |
|---|---|---|---|---|---|---|---|---|
| GSM8K | plain 4B | 75.0 | 1,841 | 1,533 | 49 | 46 | 97.4 (150/154) | 50.1 |
| GSM8K | 4B + thinking file | 94.0 | 1,020 | 827 | 7 | 1 | 94.5 (188/199) | 41.2 |
| SVAMP | plain 4B | 83.5 | 1,406 | 1,032 | 31 | 29 | 97.7 (167/171) | 33.4 |
| SVAMP | 4B + thinking file | 93.5 | 802 | 632 | 2 | 0 | 93.5 (187/200) | 15.6 |
| Part | Result | Criterion | Status |
|---|---|---|---|
| Tokens | 0.56× plain (GSM8K 0.55×, SVAMP 0.57×) | ≤ 0.7× | met |
| Accuracy | +14.5 [+11.2, +18.0] | ≥ −2 | met |
The gain comes from finishing inside the limit: plain thinking ran out before answering on 75 of 400 questions, the file on 1, while among answered questions plain was right more often. Seconds per correct answer are indicative only: other GPU jobs ran at the same time during some of these runs.
24. 2B confirmation: Phase 1–2 and Phase 4 on Qwen3.5-2B
| Family | Build tasks | Plain | Written | Written − plain [95% CI] | Trained | Teach ratio | P1 | Held-out task | Held-out gain, written | Held-out gain, trained | P2 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| labels | AG News, SST-2, Emotion, TREC, Intent (Banking77) | 66.9 | 70.8 | +3.9 [+2.7, +5.1] | 88.1 | 0.18 | not met | DBpedia | +0.0 [+0.0, +0.0] | +9.5 [+4.0, +15.0] | not met |
| extraction | E2E JSON (F1), CoNLL (F1) | 26.1 | 66.4 | +40.2 [+36.4, +44.2] | 90.8 | 0.62 | not met | WNUT-17 (F1) | -6.2 [-10.0, -2.4] | -10.6 [-16.6, -4.7] | not met |
| reading | SQuAD (F1), BoolQ | 84.7 | 84.7 | +0.0 [+0.0, +0.0] | 89.9 | 0.00 | not met | AdversarialQA (F1) | +0.0 [+0.0, +0.0] | +4.1 [-1.0, +9.3] | not met |
| math | GSM8K | 69.5 | 76.5 | +7.0 [+1.5, +12.5] | 59.5 | undefined | met | SVAMP | +4.5 [+1.0, +8.5] | -14.0 [-21.0, -7.0] | met |
| code | MBPP | 53.5 | 52.5 | -1.0 [-5.5, +3.5] | 49.5 | undefined | met | HumanEval | +5.5 [+0.6, +10.4] | -10.4 [-17.1, -3.7] | met |
| commonsense | CommonsenseQA | 65.0 | 67.5 | +2.5 [-0.5, +5.5] | 69.5 | 0.56 | not met | OpenBookQA | -1.0 [-3.0, +1.0] | -3.0 [-9.0, +3.5] | not met |
| knowledge | MMLU | 59.0 | 58.0 | -1.0 [-4.0, +1.5] | 62.5 | -0.29 | not met | ARC-Challenge | -0.5 [-1.5, +0.0] | +0.0 [-5.0, +5.0] | not met |
Per test set
| Task | Family | Role | Plain | Written | Trained |
|---|---|---|---|---|---|
| AG News | labels | build | 67.5 | 75.0 | 88.5 |
| SST-2 | labels | build | 92.5 | 92.5 | 95.5 |
| Emotion | labels | build | 56.5 | 56.5 | 78.5 |
| TREC | labels | build | 72.0 | 84.0 | 95.5 |
| Intent (Banking77) | labels | build | 46.0 | 46.0 | 82.5 |
| DBpedia | labels | held-out | 79.5 | 79.5 | 89.0 |
| E2E JSON (F1) | extraction | build | 25.9 | 74.7 | 92.7 |
| CoNLL (F1) | extraction | build | 26.4 | 58.1 | 89.0 |
| WNUT-17 (F1) | extraction | held-out | 22.1 | 16.0 | 11.6 |
| SQuAD (F1) | reading | build | 89.4 | 89.4 | 93.8 |
| BoolQ | reading | build | 80.0 | 80.0 | 86.0 |
| AdversarialQA (F1) | reading | held-out | 63.9 | 63.9 | 68.1 |
| GSM8K | math | build | 69.5 | 76.5 | 59.5 |
| SVAMP | math | held-out | 78.0 | 82.5 | 64.0 |
| MBPP | code | build | 53.5 | 52.5 | 49.5 |
| HumanEval | code | held-out | 51.8 | 57.3 | 41.5 |
| CommonsenseQA | commonsense | build | 65.0 | 67.5 | 69.5 |
| OpenBookQA | commonsense | held-out | 73.5 | 72.5 | 70.5 |
| MMLU | knowledge | build | 59.0 | 58.0 | 62.5 |
| ARC-Challenge | knowledge | held-out | 82.0 | 81.5 | 82.0 |
The 2B files
| Family | File | Edit kinds | Weights changed | Size on disk | Build questions | Forward batches | Candidates | Validation (file) |
|---|---|---|---|---|---|---|---|---|
| labels | lab2b_ridge_trec | head_rows, token_bias | 12,298 | 25.0 KB | 200 | 8 | 2 | 66.3 |
| extraction | x2_ad5 | head_rows, lowrank | 5,275,648 | 10.6 MB | 200 | 32 | 8 | 66.1 |
| reading | r2_null | token_bias | 4 | 0.2 KB | 200 | 16 | 4 | 78.6 |
| math | math2b_rename_spread3to19_NS_s1_v1 | head_rows, resid_add | 88,064 | 177.0 KB | 192 | 19 | 3 | 85.2 |
| code | code2b_spread3to19_CF_s1_v1 | resid_add | 10,240 | 20.9 KB | 154 | 17 | 2 | 34.4 |
| commonsense | cs2b_bcal1 | token_bias | 10 | 0.3 KB | 200 | 12 | 3 | 67.7 |
| knowledge | kn2b_ccal05 | token_bias | 8 | 0.2 KB | 200 | 10 | 3 | 56.2 |
2B + router + files against the plain 4B
| Test set | Family | Role | routed | perfect routing | plain 2b | plain 4b |
|---|---|---|---|---|---|---|
| AG News | labels | build | 75.0 | 75.0 | 67.5 | 83.0 |
| SST-2 | labels | build | 92.5 | 92.5 | 92.5 | 96.0 |
| Emotion | labels | build | 56.5 | 56.5 | 56.5 | 62.5 |
| TREC | labels | build | 82.5 | 84.0 | 72.0 | 85.5 |
| Intent (Banking77) | labels | build | 46.0 | 46.0 | 46.0 | 63.5 |
| DBpedia | labels | held-out | 79.5 | 79.5 | 79.5 | 98.0 |
| E2E JSON (F1) | extraction | build | 74.7 | 74.7 | 25.9 | 77.8 |
| CoNLL (F1) | extraction | build | 57.7 | 58.1 | 26.4 | 48.2 |
| WNUT-17 (F1) | extraction | held-out | 16.0 | 16.0 | 22.1 | 47.5 |
| SQuAD (F1) | reading | build | 89.4 | 89.4 | 89.4 | 90.8 |
| BoolQ | reading | build | 80.0 | 80.0 | 80.0 | 88.0 |
| AdversarialQA (F1) | reading | held-out | 63.9 | 63.9 | 63.9 | 71.4 |
| GSM8K | math | build | 77.0 | 76.5 | 69.5 | 86.5 |
| SVAMP | math | held-out | 82.5 | 82.5 | 78.0 | 87.5 |
| MBPP | code | build | 52.5 | 52.5 | 53.5 | 69.5 |
| HumanEval | code | held-out | 57.3 | 57.3 | 51.8 | 79.9 |
| CommonsenseQA | commonsense | build | 67.5 | 67.5 | 65.0 | 73.0 |
| OpenBookQA | commonsense | held-out | 72.5 | 72.5 | 73.5 | 85.5 |
| MMLU | knowledge | build | 58.0 | 58.0 | 59.0 | 69.5 |
| ARC-Challenge | knowledge | held-out | 81.5 | 81.5 | 82.0 | 92.5 |
| Mean over 20 sets | 68.1 | 68.2 | 62.7 | 77.8 |
Family means
| Family | Qwen3.5-2B + router + files | Qwen3.5-2B, plain | Qwen3.5-4B, plain |
|---|---|---|---|
| labels | 72.0 | 69.0 | 81.4 |
| extraction | 49.4 | 24.8 | 57.8 |
| reading | 77.8 | 77.8 | 83.4 |
| math | 79.8 | 73.8 | 87.0 |
| code | 54.9 | 52.7 | 74.7 |
| commonsense | 70.0 | 69.2 | 79.2 |
| knowledge | 69.8 | 70.5 | 81.0 |
Memory and throughput: batched 500-question mix
The 500-question stream over the 13 build test sets, routed by the family router, each system alone on the GPU. Batches of 32 for the 2B and 16 for the 4B.
| System | Batch | Mix score | Wall time | Correct/min | Peak GPU | Peak resident | Correct/min/GB | GB·s per correct | Router time |
|---|---|---|---|---|---|---|---|---|---|
| 2B + router + 7 files | 32 | 71.0 | 13.0 min | 27.3 | 5.59 GB | 7.48 GB | 3.65 | 16.5 | 27 s |
| Qwen3.5-4B, plain | 16 | 75.8 | 16.9 min | 22.4 | 10.37 GB | 11.90 GB | 1.88 | 31.9 | – |
Verdict
| Part | Result | Criterion | Status |
|---|---|---|---|
| Score over 20 sets | 68.1 vs 77.8: -9.7 [-11.0, -8.4] | ≥ −1 (point estimate) | not met |
| Peak resident memory | 7.48 vs 11.90 GB: 0.63× | ≤ 0.5× | not met |
| Correct/min/GB | 3.65 vs 1.88: 1.94× | ≥ 2× | not met |
25. Limitations
- The budget (200 build questions, 60 forward batches, 8 candidates per family) is small by design. It limits what a written file can learn about a label set; a larger budget might move the label and letter families.
- No trained yardstick on the 4B, so P1 is measured on the 0.8B and the 2B only.
- The memory limit of 0.5× is close to the checkpoint ratio (0.48×); 8-bit and 4-bit weights are in Part 3, section 28.
- Phase 3 tested one family (math) at one token limit; a gate for code followed (Part 3, section 27). With a much larger limit, plain thinking would likely close most of the accuracy gap at about twice the tokens.
- The written files on the other families' test sets (cross-family harm) were still running when this was written; the 0.8B's are in Part 3, section 31.
- Each family file was written once; a second writer might find different files.
Part 3: later runs of test 2, and tests 3 to 11
The thinking gate for code, the swap mid-thought, 8-bit and 4-bit weights, trained files (test 3), llama.cpp and a mixture-of-experts model (test 4), one merged file for all families (test 5), one general file (test 6), the general file under the family files (test 7), two newer mixture-of-experts models (test 8), fresh questions with two models end to end (test 9), the files in llama.cpp (test 10), and Fable 5.2 as the writer (test 11).
26. Summary
Later runs of test 2 added a thinking gate for code, a file swap in the middle of a thinking answer, and 8-bit and 4-bit weights. Test 3 trained a file for every family on the 4B and picked, per family, between the Opus 5.5 written file and the trained one. Test 4 moved to llama.cpp and added a mixture-of-experts model, Qwen3.5-35B-A3B. Test 5 merged the seven written 4B files into one file that every question gets, with no router. Test 6 had Opus 5.5 write one general file for all seven families at once, with the family writers' budgets combined, and compared it with the router and the family files. Test 7 put the general file under every family file. Test 8 tried two newer mixture-of-experts models, Qwen3.6-35B-A3B and Gemma 4 26B-A4B. Test 9 ran the main systems again on 3,548 fresh questions no test had touched, and two models end to end: the 4B with its files and Qwen3.5-35B-A3B, with the router choosing between them. Test 10 ran the 4B's files in llama.cpp. Test 11 had Fable 5.2 write the seven family files again, in place of Opus 5.5.
Everything ran on one laptop: an ASUS ProArt PX13 with a Ryzen AI Max+ 395 and a Radeon 8060S GPU sharing 57 GB of memory. The 20 test sets are those of Part 2, up to 200 questions each, non-thinking and greedy unless stated. A system's score is the mean over the 20 sets, each set weighted equally. Confidence intervals (CI) are paired bootstraps that resample each set on its own, 10,000 resamples, seed 0.
| System | Score over the 20 test sets |
|---|---|
| Two models: 4B + the better file per family, and Qwen3.5-35B-A3B (estimate, test 8) | 87.1 |
| Qwen3.5-35B-A3B, 4-bit (test 4) | 84.0 |
| Qwen3.5-4B + router + the better file per family, in llama.cpp (test 10) | 84.2 |
| Qwen3.5-4B + router + the better file per family (test 3) | 83.9 |
| Qwen3.5-4B + router + all-trained files (test 3) | 82.0 |
| Qwen3.6-35B-A3B, 4-bit (test 8) | 83.8 |
| Gemma 4 26B-A4B, 4-bit (test 8) | 81.1 |
| Qwen3.5-4B + router + Opus 5.5 written files (Part 2) | 79.6 |
| Qwen3.5-4B + router + Fable 5.2 written files (test 11) | 79.6 |
| Qwen3.5-4B + general file under every family file (test 7) | 79.1 to 79.2 |
| Qwen3.5-4B + one general Opus 5.5 written file, no router (test 6) | 78.5 |
| Qwen3.5-4B + one merged file, no router (test 5) | 78.3 |
| Qwen3.5-9B, bf16 | 78.9 |
| Qwen3.5-4B, plain, bf16 | 77.8 |
On the fresh questions of test 9 (19 sets), every main result held:
| System | Fresh questions | Same 19 old sets |
|---|---|---|
| Two models: 4B + better file per family, and Qwen3.5-35B-A3B | 86.5 | 86.9 (estimate) |
| 4B + router + the better file per family | 84.4 | 84.2 |
| Qwen3.5-35B-A3B, 4-bit | 82.4 | 83.6 |
| 4B + router + Fable 5.2 written files (test 11) | 81.0 | – |
| 4B + router + Opus 5.5 written files | 80.5 | 79.7 |
| 4B + one general file, no router | 78.7 | 78.4 |
| Qwen3.5-9B, plain | 77.8 | 78.7 |
| Qwen3.5-4B, plain | 77.7 | 77.7 |
Two models gave the most right answers, but need 36 GB of GPU memory together, more than this laptop's GPU can address at once, and on the 500-question mix gave 0.50 correct answers per minute per GB, against 2.79 for Qwen3.5-35B-A3B alone and 1.16 for the 4B with files alone (section 35). Most of that cost was the transformers harness: in llama.cpp (test 10) the 4B with its files gave 112.5 correct answers per minute in 10.9 GB (10.4 per GB), and two models 111.0 per minute, faster than Qwen3.5-35B-A3B alone (70.2), at 2.98 per GB (section 36). Fable 5.2 as the writer (test 11) wrote a library level with Opus 5.5's: 81.0 against 80.5 on the fresh questions (section 37).
27. Test 2, later runs: a gate for code, a swap mid-thought, and the 9B thinking
Thinking mode with 3,072 tokens for thinking and answer together, as in section 23. Opus 5.5 wrote a second thinking gate the same way as the math one, on MBPP training problems: one output row and one bias for </think>. The swap test ran the gate while the model thinks, then the family's answer file from the forward pass that reads </think>. With the same random seeds, both versions think exactly the same tokens, so any difference comes from the part after the thinking.
| Test set | Plain 4B | 4B + gate | 4B + gate, then answer file | Plain 9B |
|---|---|---|---|---|
| GSM8K | 75.0 | 94.0 | 94.5 | 68.0 |
| SVAMP | 83.5 | 93.5 | 93.0 | 81.5 |
| MBPP | 65.5 | 80.0 | 80.0 | 37.0 |
| HumanEval | 63.4 | 87.2 | 87.8 | 39.0 |
- The code gate: +19.1 points on code (CI +14.6 to +23.8) with 0.60× the tokens. With thinking and the gate, the 4B averaged 83.6 on code, above the 9B without thinking (82.3).
- The swap at
</think>: +0.2 points over keeping the gate for the whole answer (CI −0.9 to +1.3). By the time the model writes</think>, its answer is settled. - The 9B in thinking mode ran out of tokens before answering on 64 of 200 GSM8K questions, 123 of 200 MBPP and 98 of 164 HumanEval. When it did answer, it was right 93 to 98% of the time. The 4B with gates scored 32.4 points more with 0.41× the tokens, which shows that the gates make it finish in time, not that the 4B knows more. The 4B held 0.61× the 9B's memory.
| Prediction | Result |
|---|---|
| A thinking gate for code: at most 0.7× the tokens, score within 2 points | Met: 0.60×, +19.1 points |
Hot-swapping to an answer file at </think> beats keeping the gate | Not met: +0.2 points |
| 4B thinking with gates vs 9B thinking: within 1 point, half the memory, 2× the correct answers per minute per GB | Not met: +32.4 points and 5.75× passed, memory was 0.61× |
28. Test 2, later runs: 8-bit and 4-bit weights
Every linear layer of the 4B and the 9B was rounded to 8-bit or 4-bit: symmetric, round to nearest, no data and no training. Embeddings, the output layer and the norms stay in bf16, so the seven written files install unchanged: they touch the output layer and the residual stream. bitsandbytes' 4-bit kernels ran 6× slower than bf16 on this GPU at batch 16 or more, so the runs use kernels written in Triton for this test.
| 4B + router + seven files | Score over the 20 test sets |
|---|---|
| bf16 | 79.6 |
| 8-bit | 79.9 (+0.3, CI −0.1 to +0.7) |
| 4-bit | 75.4 (−4.2, CI −5.2 to −3.2) |
- 8-bit is free. The score didn't move.
- 4-bit with this simple rounding cost 4.2 points, most of it on extraction and labels: CoNLL −16.8, TREC −9.5, E2E −9.1. The 9B lost about as much. llama.cpp's Q4_K_M format cost the 9B only 0.5 points in test 4, so the loss comes from the rounding, not from 4 bits.
- The files helped more at lower precision: 1.7 points over the plain 4B in bf16, 2.4 in 8-bit and 3.4 in 4-bit, on the 500-question mix.
The same 500-question mix as Part 2's throughput runs, routed, each system alone on the GPU:
| System | Batch | Score | Time | Correct per minute | Peak memory | Correct per minute per GB |
|---|---|---|---|---|---|---|
| 4B + files, bf16 | 16 | 77.5 | 15.8 min | 24.6 | 12.5 GB | 1.97 |
| 4B + files, 8-bit | 16 | 77.4 | 12.9 min | 30.1 | 9.0 GB | 3.33 |
| 4B + files, 8-bit | 64 | 76.9 | 7.5 min | 51.6 | 14.2 GB | 3.63 |
| 4B + files, 4-bit | 32 | 72.0 | 10.8 min | 33.3 | 8.8 GB | 3.79 |
| 9B, 8-bit | 64 | 77.7 | 15.9 min | 24.5 | 19.5 GB | 1.26 |
| 9B, bf16 | 32 | 77.9 | 25.5 min | 15.2 | 23.0 GB | 0.66 |
- The 8-bit 4B with files at batch 64 gave 51.6 correct answers per minute, 3.4× the bf16 9B at its best batch, in less memory. Batch 64 gave 9% more correct answers per minute per GB than batch 16.
- Memory didn't halve at any precision: the 4B with files held 58 to 65% of the 9B's memory at the same precision. The runtime and the space for the text being processed don't shrink with the weights.
- One copy beat two. Two 8-bit copies at batch 16, side by side on the GPU, gave about the same correct answers per minute as one copy at batch 32 (36.6 against 35.6), but held 17.5 GB instead of 10.5. One copy with bigger batches gave 1.6× the correct answers per GB.
| Prediction | Result |
|---|---|
| 8-bit keeps the score, within 1 point | Met: +0.3 |
| 4-bit keeps the score, within 1 point | Not met: −4.2 |
| The files still help at 8-bit and 4-bit | Met: +2.4 and +3.4 |
| 8-bit or 4-bit gives 1.5× the correct answers per minute per GB | Met: up to 1.92× |
| 4B + files vs 9B at the same precision: score, half the memory, 2× per GB | Not met: memory was 58 to 65% |
| Batch 64 beats batch 16 per GB | Met: +9% |
| One copy beats two | Met: 1.6× per GB |
29. Test 3: trained files where written ones fall short
Training. One LoRA adapter per family on the 4B, with the recipe of Part 2's trained yardsticks: rank 16, alpha 32, dropout 0.05, on the attention, linear-attention and MLP projections of every layer, one epoch, batch 16, loss on the reply only, learning rate from the 0.8B pilot. Data: the union of the build tasks' training splits for labels, extraction and reading; MMLU dev and validation rows 0 to 999 for knowledge; the training split of GSM8K, MBPP and CommonsenseQA for math, code and commonsense. Opus 5.5 wrote and tuned nothing in this test.
Conversion. Each adapter became a file of low-rank edits in the same format as the written files, with A = lora_A and B = lora_B × alpha / rank, about 59 MB per file. On 832 check questions, the converted file gave the same output as the trained adapter on 96%. The rest were long answers, where tiny rounding differences grow.
Selection. Each family had four candidates: no file, the written file, the trained file, and both stacked in one file. Each was scored on a selection set nothing had touched before: validation rows 200 to 299 of each build task, 100 MBPP problems from its full test split that are not among our 200 test problems, and MMLU rows 1,100 to 1,199. The rule: the highest score wins, and within 0.5 points the cheaper candidate wins, in the order none, written, trained, stacked. The picks were settled before any test question ran. The 4B picked trained files for labels, extraction and reading, written files for math, code and commonsense, and no file for knowledge.
| System on the 20 test sets | Score |
|---|---|
| Qwen3.5-4B, plain | 77.8 |
| Qwen3.5-9B, plain | 78.9 |
| 4B + Opus 5.5 written file for every family | 79.6 |
| 4B + trained file for every family | 82.0 |
| 4B + the better file per family | 83.9 |
All-trained beat written by 2.4 points (CI +1.3 to +3.5). The better file per family beat written by 4.3 (CI +3.5 to +5.1) and all-trained by 1.9. It came out 5.0 points above the 9B (CI +3.8 to +6.1), with 2.16× the 9B's correct answers per minute per GB.
| Family | Plain 4B | Written file | Trained file | Picked |
|---|---|---|---|---|
| Labels | 81.4 | 81.0 | 90.9 | trained |
| Extraction | 57.8 | 68.8 | 78.2 | trained |
| Reading | 83.4 | 82.5 | 85.7 | trained |
| Math | 87.0 | 90.2 | 82.0 | written |
| Code | 74.7 | 71.6 | 58.1 | written |
| Commonsense | 79.2 | 79.5 | 82.5 | written |
| Knowledge | 81.0 | 82.1 | 83.0 | none |
Training won where a task has a fixed set of answers to learn: labels from 81 to 91, and CoNLL from 48 to 90. It lost where the model's own reasoning was better than the reference answers it trained on: the trained math file took GSM8K from 86.5 to 80.5, and the trained code file took HumanEval from 79.9 to 56.7. The 100 selection questions didn't always agree with the test sets: on commonsense and knowledge, the trained file did better on the test sets than the file that was picked. The picks stand.
Speed. A trained file adds a low-rank edit to every layer, and in this harness those edits run on top of the weights, not merged into them. On the 500-question mix at batch 16, the all-trained library took 0.81× the written library's time, but only because its answers were half as long: 9,059 tokens against 19,473. The trained math file cut math answers from 12,571 tokens to 3,442, and the trained code file code answers from 3,332 to 2,105. The library with the better file per family, whose answers were as long as the written one's, took 1.53× as long.
The 2B. With the better file per family, the 2B went from 68.1 to 74.7, still 3.1 points below the plain 4B (CI −4.4 to −1.8).
| Prediction | Result |
|---|---|
| Trained files beat written ones as a library, by 1+ point | Met: +2.4 |
| The better file per family beats both | Met: +4.3 over written, +1.9 over trained |
| The 4B with the better file per family beats the 9B, with 2× its correct answers per minute per GB | Met: +5.0 points, 2.16× |
| Trained files keep the speed: at most 1.15× the time | Met on paper, 0.81×, because the answers were half as long |
| The 2B with the better file per family matches the plain 4B | Not met: −3.1 |
30. Test 4: llama.cpp and a mixture of experts
Engine. llama.cpp release b11853, the official Vulkan build. GGUF files converted from the same Qwen checkpoints with llama.cpp's own converter, then quantized to Q8_0 (8-bit) and Q4_K_M (4-bit) without an importance matrix. All layers on the GPU, flash attention on. Scores come from llama-server with 16 parallel slots: each prompt is the model's own chat template, rendered exactly as in the other tests, with the same answer limits and the same scorers.
Parity. llama.cpp's 4B at 8-bit scored 77.7 over the 20 test sets, against 77.8 for the bf16 4B in the transformers harness, so scores carry over between the two.
| Model | Size | Tokens per second (one request) |
|---|---|---|
| Qwen3.5-0.8B, bf16 | 1.6 GB | 119 (32 in the transformers harness) |
| Qwen3.5-4B, 8-bit | 4.6 GB | 43 |
| Qwen3.5-4B, 4-bit | 2.8 GB | 64 |
| Qwen3.5-9B, 8-bit | 9.8 GB | 24 |
| Qwen3.5-9B, 4-bit | 5.8 GB | 38 |
| Qwen3.5-35B-A3B, 4-bit | 21.7 GB | 69 |
Generation speed from llama-bench: 128 generated tokens, 3 repetitions. The 4B at 8-bit reached 94% of what the memory bandwidth allows. The mixture of experts wrote 2.86× as fast as the 9B at 8-bit.
| System | Score over the 20 test sets |
|---|---|
| Qwen3.5-35B-A3B, 4-bit | 84.0 |
| Qwen3.5-4B + the better file per family (test 3) | 83.9 |
| Qwen3.5-4B + Opus 5.5 written files (test 2) | 79.6 |
| Qwen3.5-9B, 8-bit | 79.1 |
| Qwen3.5-9B, bf16 | 78.9 |
| Qwen3.5-9B, 4-bit | 78.4 |
| Qwen3.5-4B, 8-bit | 77.7 |
The mixture of experts beat the 4B with written files by 4.4 points (CI +3.4 to +5.4) and the bf16 9B by 5.1 (CI +4.1 to +6.0). On the six sets of code, commonsense and knowledge, where no written file closed the 9B's lead, it scored 88.8 against the 9B's 85.0. Against the 4B with the better file per family it was level: 0.1 points ahead (CI −1.0 to +1.2). That last comparison was added after test 3 and was not one of test 4's predictions.
| Family | 4B + better file per family | 35B-A3B, 4-bit | Plain 9B |
|---|---|---|---|
| Extraction | 77.6 | 68.5 | 56.0 |
| Labels | 90.2 | 84.4 | 81.3 |
| Math | 89.8 | 87.2 | 85.8 |
| Reading | 85.6 | 87.0 | 80.4 |
| Knowledge | 81.0 | 89.0 | 85.8 |
| Commonsense | 79.0 | 89.5 | 87.0 |
| Code | 74.0 | 88.0 | 82.3 |
Many requests at once. The 500-question mix with 16 requests in flight to a server with 16 slots, timed from the first request to the last answer:
| 16 requests at once | Score | Correct per minute | Memory | Correct per minute per GB |
|---|---|---|---|---|
| Qwen3.5-4B, 8-bit | 75.1 | 100.1 | 9.5 GB | 10.5 |
| Qwen3.5-9B, 4-bit | 78.3 | 70.1 | 10.0 GB | 7.0 |
| Qwen3.5-9B, 8-bit | 78.7 | 68.1 | 13.9 GB | 4.9 |
| Qwen3.5-35B-A3B, 4-bit | 81.5 | 65.8 | 25.2 GB | 2.6 |
With 16 questions in flight, the mixture of experts was no faster than the 9B, most likely because a batch of different questions calls on many different experts, so each step reads far more than 3B weights. The plain 4B in llama.cpp gave 100 correct answers per minute, 3.3× what the same 4B at 8-bit gave in the transformers harness.
Memory and the prompt cache. Memory is GPU memory in use (VRAM and GTT) minus the value before the server started, plus the server's peak resident memory. llama-server keeps a host-memory cache of prompts by default (8,192 MiB). It filled up in every run although no prompt was ever repeated, and added about 8.6 GB to every system's peak. The table leaves it out. Counted in, the mixture of experts got 0.64× the 9B's correct answers per GB; left out, 0.53×.
A bigger model at 4-bit, or a smaller one at 8-bit? The 9B at 4-bit came out 0.8 points above the 4B at 8-bit (CI −0.2 to +1.8). Not enough to call.
| Prediction | Result |
|---|---|
| llama.cpp's 4B scores within 1.5 points of the transformers harness | Met: 77.7 against 77.8 |
| The MoE beats the 4B with written files | Met: +4.4 |
| The MoE beats the 9B | Met: +5.1 |
| The MoE at least matches the 9B on code, commonsense and knowledge | Met: 88.8 against 85.0 |
| The MoE writes at least 2× as fast as the 9B at 8-bit | Met: 2.86× |
| The MoE gives at least the 9B's correct answers per minute per GB | Not met: 0.64× (0.53× without the cache) |
| The 9B at 4-bit beats the 4B at 8-bit | Not met: +0.8, CI includes zero |
31. Test 5: one merged file for all families
Does hot-swapping per family matter, or would the same edits do as well merged into one file that every question gets, with no router? The seven final written 4B files of test 2 went unchanged into one file: 19 edits, 4,659,219 weights, 9.3 MB. Edits on the same target add up. The math and code files both add steering vectors on the same five layers (7, 11, 15, 19 and 23), and the commonsense and knowledge files both bias the same 8 answer-letter tokens. No two files replace the same weights. This tests the existing files merged, not a new file written by Opus 5.5 for all families at once.
| 4B system | Score over the 20 test sets |
|---|---|
| Router + one written file per family (test 2) | 79.6 |
| One merged file, always on, no router | 78.3 |
| Plain | 77.8 |
Routing beat the merged file by 1.3 points (CI +0.7 to +1.9). The merged file came out 0.5 points above the plain 4B (CI −0.2 to +1.3): not clearly better than no file at all.
| Family | Plain 4B | Merged file | Router + family files |
|---|---|---|---|
| Labels | 81.4 | 80.8 | 81.2 |
| Extraction | 57.8 | 64.1 | 68.8 |
| Reading | 83.4 | 82.4 | 83.8 |
| Math | 87.0 | 89.5 | 89.8 |
| Code | 74.7 | 73.0 | 74.0 |
| Commonsense | 79.2 | 78.2 | 79.2 |
| Knowledge | 81.0 | 80.5 | 80.5 |
Mean of each family's test sets. The merged file kept most of the math gain and part of the extraction gain: extraction lost 4.7 of its 11.0 points to the other families' edits. Everywhere else it cost a little, against both the plain model and routing.
The same question on the 0.8B. Each final 0.8B file of test 2 was also run on every other family's test sets and compared with the plain 0.8B, question by question. "Clearly" means the CI excludes zero.
| 0.8B file | Other families' sets | Mean change | Clearly hurt | Clearly helped | Worst set |
|---|---|---|---|---|---|
| Labels | 14 | +0.0 | – | – | SVAMP −0.5 |
| Extraction | 17 | −1.5 | MBPP −6.5 | – | GSM8K −6.5 |
| Reading | 17 | −0.8 | OpenBookQA −5.0 | – | OpenBookQA −5.0 |
| Math | 18 | −0.0 | – | – | Banking77 −2.0 |
| Code | 18 | +0.8 | – | SQuAD +0.5 | Banking77 −0.5 |
| Commonsense | 18 | +0.2 | – | – | SQuAD −0.5 |
| Knowledge | 18 | −0.6 | – | – | OpenBookQA −6.0 |
One written file on the wrong family's questions costs little on average, under 1.5 points, and only 2 of 120 set results were clearly worse. Merged into one file on the 4B, those small costs add up, and each file's own gain shrinks under the others' edits. Routing per family stays: a merged file is not a replacement.
| Prediction | Result |
|---|---|
| Routing beats the merged file | Met: +1.3 |
| The merged file still beats the plain 4B | Not met: +0.5, CI includes zero |
32. Test 6: one general file, written for all families at once
Test 5 merged files that were written separately, so it could not tell whether specialised files beat one good file for everything. Test 6 asks that directly. If one general file did as well as the library, the router and hot-swapping would not be needed: the model could be edited once.
Setup. Opus 5.5 wrote one file for all seven families of the 4B from scratch, under the same no-training rule as test 2. It did not see the family files, their write-ups or any test result. Its budget was the seven family budgets together: 1,400 build questions, 420 forward batches and 56 candidates. It was chosen on the same 665 validation questions as the family files, by the mean over the 13 build tasks. Every question gets the file, with no router. Two criteria were written down before the file existed: G1, router + family files beat the general file (CI above zero); G2, the general file beats the plain 4B (CI above zero).
The file. The writer used 1,329 of the 1,400 questions (665 of them are the validation set), 111 of the 420 batches and 8 of the 56 candidates. The question budget was the one that ran out. The seven family writers together had used 1,346 questions, 114 batches and 20 candidates. The final file has five edits, all on the output layer, 535,041 weights and 1.1 MB. None changes a base weight.
| Edit | What it does | Validation change when switched off |
|---|---|---|
| Stop bias | +3 on the end-of-answer token, every input | CoNLL −5.6, SQuAD −0.5 |
| No LaTeX in math | blocks 183 LaTeX tokens, only where a math detector fires | math −3.1 |
| E2E values | blocks 16 tokens of non-standard values ("high priced", "5 stars"), only where an E2E detector fires | E2E −4.5 |
| CoNLL types | corrects the logits of the four entity-type tokens | CoNLL −3.7 |
| TREC labels | corrects the logits of the six TREC label tokens | none |
The two detectors are linear readouts of the model's final hidden state, fitted to be 1 on that task's positions and 0 on every other task's. Multiplied into a token ban, they make it act on some inputs only: a small router inside the weights. On validation the code ban changed 1 of 90 code answers.
Result.
| 4B system | Score over the 20 test sets |
|---|---|
| Router + one written file per family (test 2) | 79.6 |
| One general file, written for all families, always on | 78.5 |
| One merged file, always on (test 5) | 78.3 |
| Plain | 77.8 |
| Qwen3.5-9B, plain | 78.9 |
| Comparison | Difference | 95% CI | Criterion |
|---|---|---|---|
| Router + family files − general file | +1.2 | +0.5 to +1.8 | G1 met |
| General file − plain 4B | +0.7 | +0.3 to +1.1 | G2 met |
| General file − merged file | +0.1 | −0.6 to +0.8 | – |
| General file − plain 9B | −0.5 | −1.5 to +0.5 | – |
Both criteria were met, as expected. Routing beats one general file, and unlike the merged file the general file clearly beats the plain 4B.
| Family | Plain 4B | General file | Merged file | Router + family files |
|---|---|---|---|---|
| Labels | 81.4 | 81.8 | 80.8 | 81.2 |
| Extraction | 57.8 | 62.0 | 64.1 | 68.8 |
| Reading | 83.4 | 84.0 | 82.4 | 83.8 |
| Math | 87.0 | 85.0 | 89.5 | 89.8 |
| Code | 74.7 | 74.9 | 73.0 | 74.0 |
| Commonsense | 79.2 | 79.2 | 78.2 | 79.2 |
| Knowledge | 81.0 | 81.0 | 80.5 | 80.5 |
Where the gap comes from. Two test sets make up all of it. On CoNLL the extraction file scores 73.3 and the general file 57.9; on GSM8K the math file scores 90.5 and the general file 81.5. Together that is 24.4 set points, 1.2 points of the 20-set mean. On the other 18 sets the general file is slightly ahead of routing, by 0.1 points on average.
Why: the three explanations written down beforehand.
- Conflicting behaviour: present, but cheap. The writer ran into real conflicts: conll and squad want answers to stop earlier, while math and code must never stop early; math should avoid
$and backslashes, which code needs; the answer letters A–D are shared by CommonsenseQA and MMLU, and yes/no by BoolQ and E2E. It settled the stop conflict by size (a bias below the margin the model keeps mid-answer, above the one at the end of an entity list), the token conflicts with detectors, and dropped the letter and yes/no calibrations. The dropped edits were in families where the family files gained nothing either (commonsense 79.2 against 79.2, knowledge 80.5 against 81.0 plain). - A router inside the weights: yes, and it worked. The general file left 11 of the 20 test sets exactly at the plain score and 13 within half a point. It lowered no unseen task (DBpedia 0, WNUT +1.2, AdversarialQA +1.6, SVAMP +1.0, HumanEval 0, OpenBookQA 0, ARC 0). The only set it lowered was GSM8K. The merged file of test 5 lowered Banking77 and MBPP by 4 points each. The planned selectivity measure, the KL divergence of the first answer token's distribution, did not separate the files: the general file moved it more than any family file on every family (0.02 to 0.12, family files at most 0.03). The likely cause is the stop bias: it raises the end-of-answer token at every position, which moves some probability without changing the chosen token. Changed answers were the better measure.
- What kind of edit, more than attention per family. All five edits are on the output layer: they change which token the model picks, not how it reads the question. The two family files that win the gap change the inside of the model: extraction's is a low-rank edit of 4.5 million weights, math's adds steering vectors on five layers. The general writer never tried an edit inside the model, and its write-up does not discuss one; it concluded early that "the format is almost never the problem on the 4B" and looked for fixes at the output. An edit inside the model reaches every question, while an output edit can be limited to a few tokens and gated by a detector, so a writer that has to keep seven families safe has a reason to stay at the output. One run cannot tell whether that was the reason or chance.
Math went the wrong way. On validation the LaTeX ban rescued 3 cut-off math answers out of 96 and lost none. On the GSM8K test set the general file scored 81.5 against 86.5 for the plain 4B: 12 answers went from right to wrong, 2 from wrong to right, and 28 answers hit the 512-token limit against 22 for the plain model (9 for the math file). Blocked from LaTeX, the model writes around it: sometimes longer, sometimes with a slip (writing "times" in words, it computed 3 × 14 as 34).
An extra check after the result, not planned beforehand, ran the GSM8K test set twice more: with the do-nothing file, and with the general file minus its LaTeX edit. Both gave exactly the plain model's 200 answers (86.5, 22 cut off). So the whole loss, −5.0 (CI −8.5 to −1.5), is the LaTeX ban, not noise from the generation setup, and the other four edits change no math answer. The ban had been chosen on 3 validation answers out of 96. That is smaller than the writer's own estimate of batching noise on those questions: packed differently, the plain model changed 38 of its 96 math answers. Without the ban, the general file would have scored about 78.7 and the gap to routing would be about 0.9 points. That figure comes from the test sets, after the fact.
| Prediction | Result |
|---|---|
| Routing beats the general file, by about 1 point | Met: +1.2 |
| The general file beats the plain 4B, by about 1 point | Met: +0.7 |
| The general file lands between the merged file and routing | Met, but only just above the merged file (+0.1) |
33. Test 7: the general file under the family files
Test 6 found that the general file's edits left most sets alone and helped a few, such as TREC (+2.5 against routing) and HumanEval (+1.9). Test 7 asked whether those safe fixes add anything on top of the library: the general file on every question, and the routed family file on top.
Setup. No new file was written. Each family file of test 2 was merged with the general file of test 6 into one file per family, as in test 5: edits on the same target add up. The only token both touch is the end-of-answer token, which the reading file also raises, so reading questions got both pushes. The stacks are 1.1 MB each, 10.1 MB for extraction. Two systems, with the routes of test 2:
- S, stack everywhere: every question gets its family's stack.
- P, stack unless it hurts: per family, the stack, except where it scored lower than the family file alone on that family's validation questions. Both were generated fresh in the same job, and the pick was saved before any test-set answer of a stack existed.
Criteria, written down before the stacks existed: H1, S beats router + family files (CI above zero); H2, P beats them.
The pick. On validation, the stack tied the family file for labels, code, commonsense and knowledge, was 0.3 points ahead for extraction (76.5 against 76.2) and lower for reading (80.5 against 82.2) and math (91.7 against 93.8). So P stacked five families and left reading and math alone.
| 4B system | Score over the 20 test sets |
|---|---|
| Router + one written file per family (test 2) | 79.6 |
| P, stack unless it hurts | 79.2 |
| S, stack everywhere | 79.1 |
| One general file, no router (test 6) | 78.5 |
| Qwen3.5-9B, plain | 78.9 |
| Comparison | Difference | 95% CI | Criterion |
|---|---|---|---|
| S − router + family files | −0.6 | −0.9 to −0.2 | H1 not met |
| P − router + family files | −0.4 | −0.7 to −0.1 | H2 not met |
| S − general file | +0.6 | −0.03 to +1.2 | – |
| P − general file | +0.7 | +0.1 to +1.3 | – |
Neither criterion was met, as expected, but the stack did more than add nothing: it made the library measurably worse.
| Family | Router + family files | S | P | Answers changed by the stack | Better / worse |
|---|---|---|---|---|---|
| Labels | 81.2 | 81.7 | 81.7 | 12 of 1,114 | 8 / 2 |
| Extraction | 68.8 | 65.6 | 65.7 | 149 of 594 | 40 / 58 |
| Reading | 83.8 | 82.7 | 83.9 | 58 of 669 | 16 / 33 |
| Math | 89.8 | 89.8 | 89.5 | 255 of 399 | 5 / 4 |
| Code | 74.0 | 73.8 | 73.8 | 2 of 364 | 0 / 1 |
| Commonsense | 79.2 | 79.0 | 79.0 | 1 of 335 | 0 / 1 |
| Knowledge | 80.5 | 80.5 | 80.5 | 4 of 489 | 1 / 1 |
Where it lost. Extraction: CoNLL fell from 73.3 to 68.1 and WNUT 2017 from 51.6 to 46.7. The stack changed a quarter of the extraction answers, and more of them for the worse. Most likely the general file's stop bias and its CoNLL type correction, written for a model without the extraction file, over-correct on top of it; test 7 did not switch them off one by one. Reading lost 1.1 points under S, where the two end-of-answer pushes add up; P avoided that loss because validation showed it. Math changed 255 answers but only 9 by score: the LaTeX ban rewrites the working without changing most results, and P's validation check took the stack out anyway. The gains were small: TREC 88.0 against 85.5 and E2E 82.2 against 81.6.
What validation could and couldn't tell. It caught the two families where the stack hurt clearly (reading and math). It let extraction through on a 0.3-point edge, which on the test sets became −3.1. The same lesson as test 6's LaTeX ban: a small edge on a few hundred validation answers is often noise.
The decision rule written down beforehand: with neither criterion met, the library alone stays, and the general file is the setup for engines that can't swap files per request, merged into the weights once.
| Prediction | Result |
|---|---|
| Neither H1 nor H2 is met; S and P land at most 0.3 points above routing | Not met as stated: neither criterion met, but both landed below routing (−0.6 and −0.4) |
| Math is the main risk; P keeps the stack in math | Not met: P left math alone, and the loss came from extraction |
34. Test 8: two newer mixture-of-experts models
Test 4's mixture of experts, Qwen3.5-35B-A3B, matched the 4B with the better file per family. Test 8 asked whether a newer model of the same kind does better on this laptop: Qwen3.6-35B-A3B (same size and architecture, half a year newer) and Google's Gemma 4 26B-A4B (26B weights, about 4B used per token). Both are Apache 2.0.
Setup. Exactly test 4's pipeline: checkpoints from Hugging Face at pinned revisions (Qwen3.6 at 345d467b, Gemma 4 at 4d7ae498), only the text model converted with llama.cpp b11853's own converter to bf16 GGUF, then Q4_K_M without an importance matrix: 21.7 GB for Qwen3.6, 16.8 GB for Gemma 4. Each prompt is the model's own chat template rendered by its Hugging Face tokenizer with thinking off, the same answer limits, stopping at the model's own end-of-turn tokens, the same scorers.
Two gates before any test question.
- Tokenization. For both Qwen models the server's tokens for a rendered prompt matched the Hugging Face tokenizer's exactly. For Gemma 4 they didn't: its template writes the start-of-text token as text, and the server added a second one in front. As written down beforehand, every model in this test then got its prompts as token ids, and the server logs confirm a single start token.
- Answer format. On 20 validation questions per build task (260 in all), the scorers could parse 95 to 100% of every model's answers on every task. Qwen3.6 was at 95% on two tasks, one answer of 20 each. No model was more than 5 points below Qwen3.5-35B-A3B, so no fix was needed.
| Model, Q4_K_M | Size | Score over the 20 test sets | Tokens per second (one request) |
|---|---|---|---|
| Qwen3.5-35B-A3B (test 4) | 21.7 GB | 84.0 | 69.6 |
| Qwen3.6-35B-A3B | 21.7 GB | 83.8 | 69.8 |
| Gemma 4 26B-A4B | 16.8 GB | 81.1 | 59.9 |
| Qwen3.5-4B + the better file per family (test 3) | – | 83.9 | – |
| Comparison | Difference | 95% CI | Criterion |
|---|---|---|---|
| Qwen3.6 − Qwen3.5 | −0.3 | −1.0 to +0.5 | N1 not met |
| Gemma 4 − Qwen3.5 | −3.0 | −3.8 to −2.1 | N2 not met |
| Qwen3.6 − Gemma 4 | +2.7 | +1.8 to +3.6 | – |
| Generation speed, against Qwen3.5 | Qwen3.6 1.00×, Gemma 4 0.86× | – | N3 met (at least 0.8×) |
Neither newer model beat Qwen3.5-35B-A3B. Qwen3.6 scored the same. Gemma 4 scored 3 points lower.
| Family | Qwen3.5-35B-A3B | Qwen3.6-35B-A3B | Gemma 4 26B-A4B | 4B + better file per family |
|---|---|---|---|---|
| Labels | 84.4 | 85.5 | 83.3 | 90.2 |
| Extraction | 68.5 | 66.4 | 58.3 | 77.6 |
| Reading | 87.0 | 85.9 | 78.5 | 85.6 |
| Math | 87.2 | 88.2 | 92.2 | 89.8 |
| Code | 88.0 | 87.9 | 88.9 | 74.0 |
| Commonsense | 89.5 | 87.8 | 87.8 | 79.0 |
| Knowledge | 89.0 | 88.8 | 86.5 | 81.0 |
Gemma 4 was the best of the three at math and code, and clearly the weakest at extraction and reading, where answers have to be copied from the text in a given form.
Many requests at once. The 500-question mix, 16 requests in flight, with llama-server's prompt cache turned off this time (test 4 found it held 8.6 GB without ever being used). Qwen3.5-35B-A3B was measured again the same way.
| 16 requests at once, cache off | Score | Correct per minute | Memory | Correct per minute per GB |
|---|---|---|---|---|
| Qwen3.5-35B-A3B | 81.3 | 70.2 | 25.2 GB | 2.79 |
| Qwen3.6-35B-A3B | 82.2 | 69.5 | 25.2 GB | 2.76 |
| Gemma 4 26B-A4B | 77.9 | 74.0 | 25.0 GB | 2.95 |
Gemma 4's file is 4.9 GB smaller, but at 16 requests it held the same memory as the others: its space for the text being processed is larger. It gave the most correct answers per minute, because it answered fastest, not because it was right more often.
Two models, estimated. The split written down after test 4: knowledge, code and commonsense questions to the mixture of experts, everything else (labels, extraction, math and reading) to the 4B with the better file per family, using test 2's routes. Composed from existing answers, so it mixes two engines and the split was chosen on these test sets: an estimate, which test 9 checks on fresh questions.
| Two models: 4B + better files, and… | Score over the 20 test sets | Against the mixture of experts alone |
|---|---|---|
| Qwen3.5-35B-A3B | 87.1 | +3.1 (CI +2.2 to +3.9) |
| Qwen3.6-35B-A3B | 86.9 | +3.2 (CI +2.4 to +4.0) |
| Gemma 4 26B-A4B | 86.8 | +5.7 (CI +4.8 to +6.6) |
Which mixture of experts takes the other half hardly matters: the 4B with its files covers the families where they differ most.
Which goes forward. The rule written down beforehand: the highest score, and within 0.5 points the one with more correct answers per minute per GB. Qwen3.5-35B-A3B scored highest, so it stays the general model for test 9.
| Prediction | Result |
|---|---|
| Qwen3.6 beats Qwen3.5 by 1 to 2 points | Not met: −0.3 |
| Gemma 4 lands within a point of Qwen3.5 | Not met: −3.0 |
| Gemma 4 is ahead per GB because it is 30% smaller | Ahead per GB (2.95 against 2.79), but because it was faster; it held the same memory |
| Qwen3.6 keeps the speed; Gemma 4 about 0.85× | Met: 1.00× and 0.86× |
35. Test 9: fresh questions, and two models end to end
Two things needed checking before any conclusion. Every test so far reused the same 20 test sets, and some tests were chosen because of what earlier tests showed on them. And the best setup, two models with a router in front, was only an estimate composed from old answers, with a split chosen after seeing those test sets.
Fresh questions. For each set, up to 200 new questions from the same source split as its test set, drawn with a new seed (9) from rows in none of our files: not in the test, selection, training or validation files, and not among test 3's 100 MBPP selection problems. Rows whose question text appears in any of our data files were dropped too. Same builders, prompts, answer limits and scorers. HumanEval has 164 problems and all are in the test set, so it is left out: 19 sets, 3,548 questions. SVAMP had 100 unused rows and MBPP 48; every other set got 200. The counts were saved before any model answered a fresh question.
Routes. The family router of test 2 (a vote of TF-IDF with logistic regression and bge-small with logistic regression) wasn't saved, so it was trained again the same way. Before it routed a fresh question it had to reproduce the saved routes of the old test sets on at least 99.5% of questions. It reproduced 100%. On the fresh questions it picked the intended family for 94.5%.
Systems. All non-thinking and greedy, each alone on the GPU: the plain 4B and 9B, the 4B with the router and the Opus 5.5 written files (test 2), the 4B with the general file and no router (test 6), the 4B with the router and the better file per family (test 3), the general model test 8 picked (Qwen3.5-35B-A3B, Q4_K_M in llama.cpp), and two models: knowledge, code and commonsense questions to Qwen3.5-35B-A3B, labels, extraction, math and reading to the 4B with the better file per family. The split is the one written down after test 4, unchanged. The two-model score uses each model's answers to the questions routed to it. A stacked system from test 7 would have run only if test 7 had met one of its criteria; it hadn't.
| System | Fresh questions (19 sets) | Old test sets (same 19 sets) |
|---|---|---|
| Two models: 4B + better file per family, and Qwen3.5-35B-A3B | 86.5 | 86.9 (estimate, test 8) |
| 4B + router + the better file per family | 84.4 | 84.2 |
| Qwen3.5-35B-A3B, 4-bit | 82.4 | 83.6 |
| 4B + router + Opus 5.5 written files | 80.5 | 79.7 |
| 4B + one general file, no router | 78.7 | 78.4 |
| Qwen3.5-9B, plain | 77.8 | 78.7 |
| Qwen3.5-4B, plain | 77.7 | 77.7 |
Every system landed within 1.2 points of its old score. The systems built or picked on the old test sets didn't lose: the written library and the better library came out slightly higher. The two models that never saw a file, the 9B and Qwen3.5-35B-A3B, came out 0.9 and 1.2 lower.
Claims, written down before any fresh question existed. Paired bootstrap over the 19 sets, each set resampled on its own, 10,000 resamples, seed 0.
| Claim | Difference | 95% CI | Criterion | Old test sets |
|---|---|---|---|---|
| F1: two models − Qwen3.5-35B-A3B alone | +4.1 | +3.2 to +5.0 | Met (CI above 0) | +3.1 (estimate) |
| F2: two models − 4B + better file per family | +2.0 | +1.3 to +2.8 | Met (CI above 0) | – |
| R1: 4B + written files − plain 9B | +2.7 | +1.5 to +3.9 | Met (CI above −1) | +0.7 |
| R2: 4B + better file per family − plain 9B | +6.7 | +5.4 to +7.9 | Met (CI above 0) | +5.0 |
| R3: router + written files − one general file | +1.7 | +1.0 to +2.5 | Met (CI above 0) | +1.2 |
| R4: Qwen3.5-35B-A3B − plain 9B | +4.6 | +3.5 to +5.7 | Met (CI above 0) | +5.1 |
All six claims held. Two results got stronger: the 4B with written files went from level with the 9B to 2.7 points ahead, and routing beat the general file by 1.7 instead of 1.2. Part of the first is the 9B, which lost 0.9 points on fresh questions while the plain 4B lost nothing: the 9B's lead over the plain 4B shrank from 1.0 to 0.1.
| Family, fresh | Plain 4B | Plain 9B | Written files | General file | Better file per family | Qwen3.5-35B-A3B | Two models |
|---|---|---|---|---|---|---|---|
| Labels | 79.1 | 77.2 | 79.3 | 79.8 | 88.2 | 81.2 | 88.2 |
| Extraction | 60.3 | 56.2 | 72.2 | 65.8 | 76.4 | 68.0 | 76.4 |
| Reading | 83.4 | 81.3 | 84.4 | 84.5 | 87.8 | 85.2 | 88.0 |
| Math | 88.5 | 89.0 | 91.0 | 86.8 | 91.0 | 89.2 | 91.0 |
| Code | 66.7 | 75.0 | 75.0 | 66.7 | 75.0 | 77.1 | 77.1 |
| Commonsense | 81.8 | 89.5 | 81.5 | 81.8 | 81.5 | 92.0 | 91.8 |
| Knowledge | 81.2 | 85.0 | 81.5 | 81.2 | 81.2 | 89.5 | 89.0 |
The pattern of test 4 held: the 4B with its files leads on labels, extraction and math, the mixture of experts on knowledge, commonsense and code, and two models take the better of each. Two models scored a little below the mixture of experts alone on commonsense and knowledge, where the router sent some of those questions to the 4B. The fresh code set has only 48 problems, so its differences are within noise.
The decision rule written down beforehand: with F1 and F2 met, the recommended setup is two models with the router in front.
Speed and memory: the plan, and what happened. The plan was to time both models loaded at once on the 500-question mix, each working on up to 16 questions at a time. That can't run on this laptop. Its GPU can address 35.2 GB (4.3 GB VRAM and 30.9 GB GTT). Qwen3.5-35B-A3B in llama-server holds about 24 GB, and the 4B with the better-file library about 12 GB. Three tries failed. Twice the 4B ran out of the 42% memory cap set for this run. With the cap at 60%, the machine ran out of memory: llama-server lost its GPU device, and the kernel's out-of-memory killer stopped the desktop app that ran the job queue. No result came from those tries. A dated amendment, written before any timing result, replaced the run: each side alone on its share of the same 500 questions, one after the other, memory summed.
| On the 500-question mix | Score | Time | Correct per minute | Memory | Correct per minute per GB |
|---|---|---|---|---|---|
| Two models, one side after the other | 88.0 | 21.6 min | 20.4 | 40.9 GB | 0.50 |
| Qwen3.5-35B-A3B alone (test 8) | 81.3 | 5.8 min | 70.2 | 25.2 GB | 2.79 |
| 4B + better file per family (test 3) | 86.0 | 24.1 min | 17.8 | 15.3 GB | 1.16 |
- Where the time went. The router sent 385 of the 500 questions to the 4B, which took 20.0 minutes, in batches of up to 16 in the transformers harness. Qwen3.5-35B-A3B answered its 115 in 58 seconds. Routing took 41 seconds. With both loaded at once, on a machine with enough memory, the time would lie between 20.6 minutes (the slower side) and 21.6 (the sum); that was not measured.
- Memory. Both sides together held 36.2 GB of GPU memory, more than this laptop's GPU can address, and 40.9 GB counting resident memory.
- What it means. Two models give the most right answers, 88.0 against 81.3 for the mixture of experts alone, but at under a fifth of its correct answers per GB. The cost is the 4B side running in the transformers harness, which test 4 measured at about a third of llama.cpp's speed for the same model: the files only run there. The 4B with files alone stays the setup for the least memory, 15.3 GB for 86.0.
One more thing that went wrong. After the out-of-memory crash, the job queue was restarted as a systemd user service. There, the code scorer's sandbox (unshare -rn, which needs unprivileged user namespaces) can't start, and every code answer scored as wrong without an error. That hit the first run of the mixture of experts' side: 0 of 37 MBPP answers passed, against 34 in test 8 with nearly identical answers. The scorer now stops with an error when its sandbox can't start, and that side was run again. No fresh-question code score was computed inside the service.
| Prediction | Result |
|---|---|
| Fresh scores within about 1.5 points of the old ones, a little lower for systems chosen on the old sets | Within 1.2 points. The systems chosen on the old sets didn't drop; the two models without files did |
| F1 and F2 met by 2 to 3 points | Met: +4.1 and +2.0 |
| R1 met, R2 by 3 to 5 points, R3 by about 1 point, R4 met | Met: +2.7, +6.7, +1.7, +4.6 |
| Two models: fewer correct answers per minute per GB than the 4B with files alone | Met: 0.50 against 1.16 |
| Two models: more correct answers per minute per GB than the mixture of experts alone | Not met: 0.50 against 2.79 |
36. Test 10: the files in a faster engine
Every file so far ran in the transformers harness, which test 4 measured at about a third of llama.cpp's speed for the same plain 4B. In test 9 that made the 4B the slow side of the two-model setup: its 385 questions took 20 minutes, while Qwen3.5-35B-A3B answered its 115 in 58 seconds. Test 10 ran the 4B's better-file library (test 3) in llama.cpp.
What a file needs from an engine. llama.cpp b11853, the Vulkan build of tests 4 and 8, and the 4B at Q8_0 (4.6 GB). Nothing was downloaded.
| Edit kind | Files | What the engine has to offer | llama.cpp b11853 |
|---|---|---|---|
| Low-rank edits (trained files) | labels, extraction, reading | LoRA adapters switched per request | LoRA adapters; its server takes them per request but runs a batch with one set |
| Residual vectors | math, code | a vector added after chosen layers, from the last prompt token on | control vectors, through the C API only; the server loads one for all requests |
| Token biases | commonsense | a bias per request | logit_bias, per request |
| Output rows of zeros, or copies of another token's row | math | two operations on the logits | done by the driver |
| Other output rows | none here | the final hidden state | the embeddings output, which makes llama.cpp output every token of a batch |
The stock server cannot run the written math and code files, so the test drives llama.cpp's own library (libllama.so) through its C API with a small driver: 16 sequences at once, continuous batching, greedy, the model's stop tokens, prompts as token ids rendered as in every test. One decode call has one adapter set and one control vector, so a batch cannot mix files: the driver runs one file's questions after another. The trained adapters were converted with llama.cpp's own convert_lora_to_gguf.py (200 modules each, 122 MB at f32). Engines with per-request adapters in one batch exist, so the table, not llama.cpp, is the result.
Gates, before any test question. The driver against llama-server on the plain 4B: 36 of 40 validation answers identical (bar: 90%). Each file in llama.cpp (bf16 GGUF) against the harness, on the first answer token of 16 validation questions: the correlation of the change each file makes to the 50 highest logits was 0.9996 (labels), 0.9997 (extraction), 0.9996 (reading), 0.998 (math) and 0.985 (code); the commonsense file's ten biases arrived exactly; the same top token on 16 of 16 for every file.
Score.
| System | Score over the 20 test sets |
|---|---|
| 4B + the better file per family, llama.cpp Q8_0 | 84.2 |
| 4B + the better file per family, harness bf16 (test 3) | 83.9 |
| 4B, plain, llama.cpp Q8_0 (test 4) | 77.7 |
The files kept their score: +0.3 against the harness (CI −0.1 to +0.6; criterion E1, CI lower bound above −1.5: met). 48 of 4,000 questions scored differently. Against the plain 4B in the same engine, the files added 6.5 points (CI +5.6 to +7.4). Per family the two engines were within 0.6 points everywhere.
Speed and memory, the 500-question mix, each system alone on the GPU, timed from the first routing call to the last answer:
| On the 500-question mix | Score | Time | Correct per minute | Memory | Correct per minute per GB |
|---|---|---|---|---|---|
| 4B + files, llama.cpp | 85.6 | 3.8 min | 112.5 | 10.9 GB | 10.36 |
| 4B + files, harness (test 3) | 86.0 | 24.1 min | 17.8 | 15.3 GB | 1.16 |
| 4B + files, llama.cpp, in arrival order | 85.4 | 7.0 min | 60.9 | 10.9 GB | 5.59 |
| 4B, plain, the driver | 75.1 | 2.8 min | 134.2 | 9.8 GB | 13.66 |
4B, plain, llama-server | 75.1 | 3.4 min | 110.6 | 10.6 GB | 10.40 |
| Qwen3.5-35B-A3B alone (test 8) | 81.3 | 5.8 min | 70.2 | 25.2 GB | 2.79 |
| Two models, one after the other | 88.4 | 4.0 min | 111.0 | 37.3 GB | 2.98 |
- The slowness was the harness. The same library gave 6.3 times the correct answers per minute in llama.cpp (criterion E2, at least 3 times: met), in 71% of the memory. Per family, on the mix: labels 183 questions in 28 s, extraction 83 in 27 s, reading 77 in 15 s, math 42 in 74 s, code 37 in 39 s, commonsense and knowledge 78 in 7 s.
- Two models are now faster than the big one alone. Routing (37 s), the 4B side (143 s) and the Qwen3.5-35B-A3B side as timed in test 9 (58 s), one after the other: 111.0 correct answers per minute against 70.2 (criterion E3: met), and 2.98 per GB against 2.79.
- Not mixing files in a batch costs 1.85 times the time. In arrival order, 16 questions at a time split by file, most batches are short.
- Both models at once was not run. The check written down beforehand: with the 4B loaded, GPU memory in use (10.3 GB, the desktop included) plus the 23.9 GB Qwen3.5-35B-A3B took alone plus 2 GB must fit in the 35.2 GB the GPU addresses. 36.2 GB does not. Above the idle level the two sides took 33.0 GB together, so it would fit with less margin.
- Against Qwen3.5-35B-A3B on fresh questions (not one of test 10's criteria; computed from test 9's outputs after this test): the 4B with the better file per family scored 2.1 points more (CI +0.8 to +3.3), and in llama.cpp it gives 1.6 times its correct answers per minute in 43% of its memory.
What went wrong first, and was fixed before the runs the criteria use. All three changes were recorded as dated amendments, and none changes a file.
- The first timed runs, made while the writers of test 11 shared the machine, had the driver 1.8 times slower than
llama-server. The driver listed a batch's sequences in the order its slots filled, llama.cpp computes them in ascending order, and when the two differ it swaps the 1 MB rows of logits back on every step. In ascending order, with 16 threads and a thread pool as the server has, the driver was as fast as the server on a validation profile (81.7 s against 90.2 s; before: 139.6 s). - Math ran at 39 tokens per second against 146 for the plain model. To apply math's output rows the driver turned on llama.cpp's hidden-state output, which makes it output every token of a batch, prompts included. The 38 rows are 34 rows of zeros and 4 exact copies of other tokens' rows (the renames " Final" ← " Verify" and "Thus" ← "Alternatively"), so they need only the logits. Applied there, math checked against the harness again (0.998, 16 of 16) and was scored again: 90.9 on GSM8K and 90.0 on SVAMP either way, with 98 of 197 and 116 of 200 answers identical in text.
- The repeat counted the 2.5 GB of base rows the math conversion loads as the driver's memory. The conversion now runs before memory is sampled; the four driver runs were made once more.
| Prediction | Result |
|---|---|
| E1 met: the files keep their score | Met: +0.3 |
| E2 met, at 60 to 80 correct answers per minute | Met: 112.5 (6.3 times the harness) |
| E3 more likely met than not, at 65 to 80 | Met: 111.0 |
| The 4B with files gives 6 to 8 correct answers per minute per GB | 10.4, more |
| Two models stay below Qwen3.5-35B-A3B alone per GB (about 2.0 to 2.3) | Not met: 2.98, above |
| Both at once fits, at about 33 GB of 35.2 | Not run: the check's 2 GB margin failed; the two sides took 33.0 GB |
| Arrival order costs 1.5 to 2.5 times the grouped time | Met: 1.85 times |
37. Test 11: Fable 5.2 as the writer
Every written file in tests 2 to 9 came from one writer model, Opus 5.5, in one run. Test 11 changed the writer and held everything else fixed: Fable 5.2 (claude-fable-5-2, released the same day) at reasoning effort "extra high" wrote the seven 4B family files again.
Setup. Three sessions grouped as the Opus 5.5 sessions were (labels, commonsense and knowledge; extraction and reading; math and code), each with its Opus 5.5 counterpart's brief, changed only in names and paths. The same rules: no training, at most 200 build questions, 60 forward batches and 8 candidates per family, the final file chosen by validation score. The writers worked in a sandbox built from what the Opus 5.5 writers had when they started: the harness, the 0.8B round's write-ups and scripts, and the train and validation splits. It held no 4B file, write-up, test question or result. Afterwards their transcripts were checked: 407 tool calls, every message from claude-fable-5-2 at extra high effort, no path outside the sandbox. The sessions took 3.5 to 4.9 hours each, sharing the GPU with test 10.
The files.
| Family | Fable 5.2's file | Validation, plain → file | Opus 5.5's file (test 2) |
|---|---|---|---|
| Labels | one low-rank edit in layer 0 (70,656 weights, 141 KB) | 75.0 → 78.0 | a gated emotion-definitions edit (11,776 weights) |
| Extraction | one low-rank edit in layer 31 (1.5 million weights, 3.0 MB) | 66.7 → 76.5 | low-rank edits in late layers (4.5 million weights) |
| Reading | output-row edits and biases on 24 tokens (124 KB) | 82.0 → 82.2 | a stop bias and a row edit (2,561 weights) |
| Math | a rank-one edit in layer 15 (11,776 weights, 24 KB) | 89.8 → 96.1 | output-row renames and steering vectors on five layers |
| Code | a token bias and a rank-6 edit in layer 15 (142 KB) | 47.8 → 54.4 | steering vectors on five layers |
| Commonsense | biases on the letters A–E (218 bytes) | 79.7 → 79.7 | biases on the letters |
| Knowledge | biases on the letters A–D (208 bytes) | 75.8 → 76.6 | biases on the letters |
- Labels found that in the emotion task the label follows the feeling word in the sentence, wrote a lexicon of 319 feeling words from its own knowledge, and made layer 0 read each one as its label word. 18 of its 60 batches ran on carrier phrases and text it wrote itself, logged as batches with no build question. The rules forbid training and searching over many candidates, not what the writer knows, so the file stands; the analysis also reports the library without it.
- Math wrote "keep the whole solution short" into the model at the last position of the chat template, where it decides how the answer opens: 12 of the plain model's 13 validation failures had run out of tokens. The writer called its own margin partly chance (the same edit at other scales scored 92.2 and 91.4) and expected +2 to +3 on test.
- Code makes the model open its answer with a docstring saying what the function returns.
Result.
| 4B system | 20 test sets | 19 fresh sets |
|---|---|---|
| Router + Fable 5.2 files | 79.6 | 81.0 |
| Router + Opus 5.5 files | 79.6 | 80.5 |
| Router + Fable 5.2 files, labels file left out | 79.0 | 79.9 |
| Plain 4B | 77.8 | 77.7 |
| Plain 9B | 78.9 | 77.8 |
| Router + the better file per family (test 3) | 83.9 | 84.4 |
| Comparison | Difference | 95% CI | Criterion |
|---|---|---|---|
| Fable 5.2 − Opus 5.5, fresh | +0.5 | −0.3 to +1.3 | W1 not met |
| Fable 5.2 − Opus 5.5, test sets | −0.1 | −0.7 to +0.6 | W2 not met |
| Fable 5.2 − plain 4B, fresh | +3.3 | +2.5 to +4.2 | W3 met |
| Fable 5.2 − plain 9B, fresh | +3.2 | +2.0 to +4.4 | – |
| Fable 5.2, labels file left out − Opus 5.5, fresh | −0.6 | −1.3 to +0.1 | – |
The two libraries are level. The decision rule written down beforehand: with W1 and W2 not met, within this budget the writer model was not what limited the files.
| Family, Fable 5.2 − Opus 5.5 | 20 test sets | 19 fresh sets |
|---|---|---|
| Labels | +2.1 (CI +0.9 to +3.3) | +3.2 (CI +1.9 to +4.6) |
| Extraction | −2.7 (CI −4.5 to −0.8) | −3.6 (CI −5.4 to −1.9) |
| Reading | −0.8 (CI −1.8 to +0.2) | −0.8 (CI −2.0 to +0.4) |
| Math | −3.0 (CI −5.8 to −0.2) | +0.8 (CI −1.8 to +3.5) |
| Code | +1.3 (CI −2.0 to +4.6) | 0.0 (48 problems) |
| Commonsense, knowledge | 0.0 | +0.5 |
- The lexicon worked: emotion went from 62.5 to 76.0 on the test set (Opus 5.5's file: 62.0), and labels led on fresh questions as well. It is also the whole lead: without it the Fable 5.2 library was 0.6 points behind.
- Extraction lost on CoNLL: 64.7 against 73.3 for Opus 5.5's file (plain 48.2). On E2E Fable 5.2's file was ahead (83.3 against 81.6). Its file edits one layer with a third as many weights.
- Math did not keep its validation gain on the old test set: GSM8K 85.0 against 86.5 for the plain model and 90.5 for Opus 5.5's file, while on fresh questions the math family came out 91.8 against 88.5 plain. With 128 validation questions and answers near the token limit, the margin the writer called partly chance was.
- Held-out sets moved little: DBpedia −0.5, WNUT +3.0, AdversarialQA −0.6, SVAMP +1.0, HumanEval −1.2, OpenBookQA −0.5, ARC −0.5 against the plain model, the same pattern as Opus 5.5's files.
| Prediction | Result |
|---|---|
| Within about 1 point of Opus 5.5's library, a little above (+0.5) | Met: +0.5 fresh, −0.1 test sets |
| W1 and W2 more likely not met than met | Not met, both |
| W3 met | Met: +3.3 |
| A clear difference, if any, from extraction or reading | Extraction, against Fable 5.2 (−2.7 and −3.6); and labels, for it |
| The risk: a file tuned to about 100 validation rows that drops on held-out sets | Math dropped on its own test set (GSM8K −1.5 against plain), not on SVAMP |
38. More details from the blog post
Replacing and adding. A weight file holds a short list of edits. Some replace numbers: zeroing a token's output row in the 4B swaps 2,560 numbers for zeros. Most add a small change on top of weights that stay as they are. In Qwen3.5 the output layer shares its weights with the input embeddings, so overwriting a token's output row would also change how the model reads that token. The files never write to the base weights: a thin wrapper around each module it touches adjusts the module's output, and removing the wrapper restores the model exactly.
The MIT edit as a file. The published edit from "Sparks of Weight-Space Programming", installed as a file in the library: 130,188 changed weights in two MLP layers, 1.3 MB, hot-swapped in within 1.4 ms and out within 0.05 ms. Without thinking mode it changed nothing, as expected for an edit that fixes looping while the model thinks.
Per-label biases on the 0.8B. Opus 5.5 measured how much the plain model favours each label and wrote a correction for each label into one weight of its output row, 4 to 6 weights per file:
| Task, 0.8B | Plain model | Opus 5.5 written weights | Trained LoRA |
|---|---|---|---|
| Question type (TREC) | 59.0 | 65.5 (+6.5, CI +2.0 to +11.0) | 94.0 |
| News topic (AG News) | 71.5 | 75.5 (+4.0) | 86.5 |
| General knowledge (MMLU) | 37.5 | 41.0 (+3.5) | – |
| Commonsense (CommonsenseQA) | 49.5 | 49.5 (unchanged) | 63.0 |
| Emotion | 56.0 | 54.0 (−2.0) | 85.0 |
Thinking on the 0.8B stayed slow. Answering one question at a time, the 0.8B with the blunt thinking file took a median of 26 seconds per math question (ten questions timed). The 4B without thinking took 27 seconds and got 86.5% right.
Routing limits. The ten phrasings per task in test 1 are synthetic, and real requests vary more. In a separate test of routing on content alone, accuracy fell from 94% with 12 files to 87% with 33, almost all of it from look-alike tasks.
39. Related work
As of 6 November 2026:
- Another model doing the programming. Several replications of the MIT post already use Opus 5.5. In one of them, Opus 5.5 scaled up 4 neurons in Qwen3.5-0.8B and MATH-500 went from 8.4 to 40.0. Their summary: the edits mostly cut the thinking loops, and don't add math skill.
- Programmed weights against training. One comparison had Opus 5.5 write fictional company facts into Qwen3.5 models, and it beat LoRA on new questions about them: 86% against 53% on the 0.8B. Another, on a small sentiment classifier, found that fine-tuning fixed more and broke less. For steering vectors that aren't written by an LLM, AxBench found prompting and LoRA beat most steering methods.
- A library of edits, routed per input. For steering vectors that aren't written by an LLM, this exists. RISER keeps a library of reasoning vectors with a router per input, IBM's CAST applies a vector depending on the prompt, and the UK AI Security Institute's vllm-lens gives each request in a batch its own steering vector.
- "It's mostly finishing in time." The Coupling Tax (May 2026) splits accuracy under a token budget into finished and cut-off answers. OpenWSP did the same for the MIT edit: accuracy on finished answers fell from 100% (34 answers) to 79.7% (315 answers).
- How much the LLM adds. A skeptical replication found that a simple steering direction, with no LLM involved, recovers about 79% of the MIT edit's gain.
- Trained adapters, routed. LoRA Land showed small models with task-specific trained adapters matching bigger models.
40. Next steps
- Files on a mixture of experts. Opus 5.5 written weights per family for Qwen3.5-35B-A3B, including nudges to the router inside the model that picks its experts, and trained files where they win.
- The files in a serving engine, not a driver. Test 10 ran every file kind in llama.cpp through its C API. A server needs control vectors and adapters per request, ideally several in one batch: in arrival order, one file per batch cost 1.85 times the time.
- Two models on one machine with room for both. Above the idle level they took 33.0 GB together on a GPU that addresses 35.2 GB: too tight for the margin the test required.
- Knowledge from outside the model. Retrieval from a document store, for facts no model holds.
- Scale. Routing with 33 or more files and real requests, and a shared store the files are pulled from.
- The loop. Questions the system gets wrong go to Opus 5.5, which programs a new file or improves an old one. A file only joins the library if it improves new questions without hurting the others.
41. Limitations of part 3
- One run per system, up to 200 test questions per set. Single-set differences of a few points are within noise; the CIs above are for the 20-set means.
- The transformers harness reaches about a quarter of the speed the memory bandwidth allows. Its speed and per-GB numbers favour neither side within a test, but they are far below what a serving engine gives (section 30).
- The 8-bit and 4-bit rounding is the simplest possible. Better 4-bit formats lose far less (section 30).
- Test 3 trained with one fixed recipe. Training directed by Opus 5.5, or more data, might move the families where training lost.
- Test 6 is one run of one writer. Another run of the general writer might pick other edits, for example edits inside the model.
- The mixture of experts has no files yet. Whether files help it as much as they help the 4B is untested.
- Test 9's fresh questions come from the same sources as the old test sets, so they test overfitting to the old questions, not other kinds of tasks. The fresh code set has 48 problems.
- The two-model timing ran each side alone, one after the other. Both at once, on one GPU with enough memory, would land between the slower side and the sum, but wasn't measured.
- The two-model split (knowledge, code and commonsense to the mixture of experts) was chosen on the old test sets after test 4. Test 9 confirmed it on fresh questions but tried no other split.
- Test 10's driver is a test driver, not a server: it groups questions by file, and its timed runs read every question from a list instead of a network. The two-model timing adds two sides measured alone.
- Test 11 is one run per writer model, and the Opus 5.5 sessions ran at their default effort. A difference between the two libraries mixes the model, the effort and luck; both started from the same 0.8B lessons, which were Opus 5.5's.