Qwen3.8-Flash-Next norev (oQ4e, MTP)
The same Flash-Next you already run on your Mac, minus the habit of second-guessing itself. The base model solves a task, then writes "Wait, let me reconsider…" and starts over, sometimes several times, until it runs out of tokens. It does it in both modes: in my runs 38 of 100 non-thinking answers and 33 of 100 thinking answers end at the token limit (I did not keep the thinking text, so there the loop is inferred from the counts: the edit cuts these 33 to 28 and the median answer from 18 k to 10.5 k tokens). I have used this model for coding every day for a few months now and that was the one thing that bothered me, so I removed a 6-dimensional "self-revision" subspace from the residual stream directly in the weights, at half strength, no training. On my coding benchmark the model hits the token limit 40 % less often, the typical answer is a quarter shorter and the accuracy does not go down (greedy 53 vs 51, sampled 52.0 vs 50.7, with thinking on 69 vs 63 in one run each). Everything else I could measure (HumanEval, GSM8K, MMLU, MTP draft acceptance, decode speed) stays within noise.
Code, measured directions, all per-task results and the things that did not work: github.com/blazkepa/flash-next-norev.
At a glance
| Architecture | Qwen3.8-Flash-Next (qwen4_exp): 48 layers (36 Gated DeltaNet + 12 Qwen Sparse Attention, full_attention in the config), 4 residual branches (hyper-connections), PLE n-gram embeddings, vision tower |
| Experts | 512 per layer, 10 active per token + 1 shared expert, nothing pruned |
| Hidden / vocab / context | 2 560 / 248 320 / 262 144 native |
| What changed vs the base | 149 weight matrices edited (W' = W − 0.5·U(UᵀW), 6 directions); expert down_proj re-quantised 4 → 6 bit; all other tensors are copied from GBP-DE's build as they are |
| Speculative decoding | MTP head included and edited like the backbone (its routed experts are 4-bit with down_proj now 6-bit, the rest 8-bit); works in oMLX out of the box |
| Vision | tower untouched; not tested |
| Quantisation | oQ4e affine: routed experts 4-bit g64 (gate/up) and 6-bit g64 (down_proj, this is the +10 GB); attention, Gated DeltaNet, embeddings, LM head and hyper-connection weights 8-bit g64; shared expert 8-bit g128; n-gram table 4-bit g32 |
| On disk / in memory | 118 GB (21 shards, 51 B-parameter n-gram table included) / about 86 GB in oMLX on a 128 GB Mac (oMLX shows it as 80 GiB; the n-gram table is memory-mapped from SSD, oMLX does it automatically) |
| Tested with | oMLX 0.7.4.dev1 (macOS app), mlx_vlm 0.7.11, MacBook Pro M5 Max 128 GB, macOS 26 |
Run it
oMLX on Apple Silicon, 128 GB recommended:
brew tap jundot/omlx https://github.com/jundot/omlx
brew install jundot/omlx/omlx # or the oMLX macOS app from the releases page, that is what I use
hf download blazkepa/Qwen3.8-Flash-Next-norev-oQ4e-MTP \
--local-dir ~/.omlx/models/blazkepa/Qwen3.8-Flash-Next-norev-oQ4e-MTP
omlx restart # new model directories are picked up at start; the folder name is the model id
The server is OpenAI-compatible at http://localhost:8000/v1. Sampling: use the settings from the original Qwen model card
(non-thinking: temperature 0.7 / top_p 0.8 / top_k 20 / presence_penalty 1.5; thinking: 1.0 / 0.95 / 20). My thinking runs used
temperature 0.6 instead of 1.0, see Results. Single stream with MTP on, once warm, it decodes at 96–107 tok/s on an M5 Max.
On a 128 GB machine the model does not fit fully resident (it is 10 GB bigger than the base), so oMLX logs
PLE forced to SSD ... roughly 2.5x slower than a resident load and keeps the n-gram table on disk. This is expected and all numbers
for this model are measured in this mode (the base ran fully resident). Warm, I did not see the slowdown from the warning; the first
pass after loading was slower (74–82 tok/s), probably because the table was still being paged in.
In-process with mlx_vlm (0.7.11 or newer) use the external-PLE view (prepare_external_ple_model from
mlx_vlm.models.qwen4_exp.ple_storage), which keeps the n-gram table on disk and brings the model down to ~86 GB resident. Details in
the GitHub README.
Results
All numbers are mine, measured on one machine through oMLX, against the exact base this model was built from
(GBP-DE/Qwen3.8-Flash-Next-oQ4e-WLSRefit-MTP, revision 8a284d64). They are not comparable with the Qwen model card: this is a 100-task subset of
LiveCodeBench release_v6 whose tasks predate the model (so possibly contaminated), mostly non-thinking, 4-bit. Only the base-vs-edited
difference is the point.
LiveCodeBench, fixed 100-task subset (23 easy / 31 medium / 46 hard, contests 2025-02-15 … 04-06), non-thinking, greedy, 8 192 tokens:
| pass@1 | hard | hit token limit | median tokens | total tokens | |
|---|---|---|---|---|---|
| base | 51 | 8 / 46 | 38 | 3 863 | 445 k |
| this model | 53 | 12 / 46 | 23 | 2 935 | 373 k |
Paired on tasks: +6 / −4 (sign test p = 0.75), and 5 of the 6 gains are tasks the base truncated. With sampling (temperature 0.7 / top_p 0.8 / top_k 20, 3 samples per model): base 50.7 on average (46–54), this model 52.0 (51–54), sign test p = 1.0. With Qwen's recommended presence_penalty 1.5 on top of that (2 samples per model): base 49 and 52, this model 60 and 51; answers cut at the limit 69 vs 43 of 200, median 5 196 vs 2 940 tokens, 21 % fewer tokens in total. This model's first sample (60) is the outlier: against the two base samples it is +16 / −5 and +14 / −6 on tasks, its second sample (51) is +7 / −5 and +7 / −8; pooled over tasks +17 / −8, p = 0.11, so I read the 60 as a lucky draw. One caveat: oMLX (through mlx-lm) applies the penalty only to tokens seen in the last 20 positions and the window cannot be changed per request, while Qwen's recommendation assumes the OpenAI/vLLM definition that counts every generated token. This 20-token penalty does not cure the base's loops (35 % of its answers still cut, vs 37 % without it), which is expected since a restart a few hundred tokens later is outside its window; a full-history penalty I did not test. It made the answers of both models somewhat longer and did not change the base-vs-edit comparison. So treat the accuracy as "same within noise" and the token columns as the real effect:
Thinking mode, same 100 tasks, temperature 0.6 / top_p 0.95 / top_k 20 (Qwen recommends temperature 1.0, I used 0.6), 32 768 tokens, one run per model:
| pass@1 | easy / medium / hard | hit token limit | median tokens | total tokens | |
|---|---|---|---|---|---|
| base | 63 | 23 / 25 / 15 | 33 | 18 027 | 1.71 M |
| this model | 69 | 23 / 28 / 18 | 28 | 10 533 | 1.47 M |
Paired on tasks: +7 / −1 (sign test p = 0.07), and 6 of the 7 gains are tasks where the base ran into the limit. It is one sampled run per model, so the same ±4 noise applies. Thinking helps both models a lot (+12 and +16 over non-thinking), and the loop is still the main way to fail: 33 of the 37 base failures and 28 of 31 here are answers cut at 32 768 tokens, not wrong answers.
What actually changed is how often the model argues with itself. On 100 open-r1 problems that were not used for measuring the direction (the same set I used to pick the variant; in-process, greedy, 3 500 tokens), counting "Wait", "But wait", "Actually", "Hmm", "Alternatively" and "Let me reconsider / re-check / re-think" per answer:
| base | this model | |
|---|---|---|
| revision phrases per answer | 4.6 | 1.3 |
| answers with at least one revision | 65 / 100 | 39 / 100 |
| answers with three or more | 48 / 100 | 16 / 100 |
| answers cut at the token limit | 28 | 15 |
| passed | 68 | 66 |
Not zero, on purpose. At full strength the revisions almost disappear (4.5 → 0.2 per answer) and the accuracy goes down with them (LiveCodeBench 43 vs 51); my reading is that some of the "Wait"s were real self-correction, not only loops. Half strength was the best of the variants I tried (rank 1, rank 3, rank 6 at scale 1.0 and 0.5), with the differences between them inside the noise.
Does it break anything else? Same machine, greedy, non-thinking:
| base | this model | |
|---|---|---|
| HumanEval (164) | 156 | 157 |
| GSM8K (300-problem subset of test) | 292 | 293 |
| MMLU (570 questions, 10 per subject, zero-shot) | 500 | 500 |
| MTP draft acceptance, single stream | 89.1 % | 90.6 % |
| MTP tokens per backbone pass | 3.3 | 3.1 |
| decode, single stream, MTP on, warm | 91–100 tok/s | 96–107 tok/s |
The speed rows are 3 prompts each, second pass. Refusals: a handful of prompts checked by hand, no difference noticed; not measured systematically.
What was done
- Ran the base model over 160 earlier Flash-Next coding answers (non-thinking, generated by the oQ5e build of the same model) and recorded the residual stream at revision phrases ("Wait", "Actually", …; the first token of the phrase and one neighbouring token) versus the same number of sentence starts without a revision, 3 020 positions each. Difference of means gives one direction per layer and per residual stream.
- Flash-Next has four hyper-connection residual streams and the directions must be measured in the raw streams, before the mixer; with a direction measured after the mixer the edit was mechanically correct and changed nothing in behaviour. PCA over the per-stream directions keeps 6 components.
- For every matrix that writes into the residual stream (149 tensors: attention
o_proj, GatedDeltaNetout_proj, expert and shared-expertdown_proj, PLE value projection, embeddings, the MTP block included) appliedW' = W − 0.5 · U(UᵀW)in the dequantised domain, then re-quantised with fresh scales. - Expert
down_projare stored in 6 bit instead of 4, because with 4-bit rounding about 30 % of the removed component came back.
This is abliteration (Arditi et al., 2024) pointed at a different behaviour: they remove a refusal direction, here it is self-revision. The list of tensors that write into the stream follows orcarouter's abliteration of this architecture.
The whole edit takes about 40 seconds on this machine, rewriting the shards included. The three traps above cost me more than the method itself; they are written up in the GitHub README together with the variants that lost (full scale, rank 1 and 3).
Provenance and files
Qwen/Qwen3.8-Flash-Next (Qwen Team) → GBP-DE/Qwen3.8-Flash-Next-oQ4e-WLSRefit-MTP (importance-aware oQ4e quantisation with
weighted-least-squares refit and MTP head, quantised with oMLX 0.7.3, revision 8a284d64) → this repository (weight edit, no training).
16 of the 21 shards are rewritten, the 5 n-gram table shards are byte-identical to the base at revision 8a284d64. GBP-DE has
updated their repository in place since then, so the current main there is a different build than the one I measured against. ablation.json is the per-tensor report of
the edit (mean relative change 0.025). checksums.sha256 covers every weight file, config.json and the index. Internally this variant
is called r6s05 (rank 6, scale 0.5); you will see that name in the GitHub repo and in the result files.
Limitations
- One quantisation, one machine, one 100-task subset. On 100 tasks ±5 is noise; read the token columns, not only pass@1.
- No wall-clock numbers on purpose. On my 128 GB machine oMLX keeps the base fully in RAM and then runs the four benchmark streams mostly one after another, while this model has the n-gram table on SSD and gets batched. My timings (about 40 % shorter runs) mix the server mode with the model and I cannot separate the two, so I dropped them. What is comparable is the token count, 14–22 % fewer in total depending on the mode; in a controlled single-stream test the warm decode speed was the same.
- With thinking I used temperature 0.6 where Qwen recommends 1.0. Non-thinking was measured both without and with Qwen's presence_penalty 1.5 as oMLX implements it, last 20 tokens only (2 samples each with it; it did not change the base-vs-edit comparison). A full-history penalty as in vLLM is untested.
- The directions were measured on this exact checkpoint. They live in the 2 560-dim residual space, so they may transfer to other quantisations of the same weights, but I did not check this yet.
- Vision untested. Refusals only spot-checked by hand.
Replication reports and failures are welcome as issues on GitHub.
References
- Arditi et al. (2024), Refusal in Language Models Is Mediated by a Single Direction, arXiv:2406.11717. The method: a difference-of-means direction, removed from every matrix that writes into the residual stream. They remove refusal; here it is self-revision.
- Jain et al. (2024), LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code, arXiv:2403.07974. The benchmark; the 100-task subset is described above.
- Zhu et al. (2024), Hyper-Connections, arXiv:2409.19606. The four residual streams of Flash-Next, which is why the directions are measured per stream.
License and thanks
Qwen Community License 1.0, the license file of the original model is included unchanged. The editing code is MIT, on GitHub.
Thanks to the Qwen team for the model, to GBP-DE for the quantisation this is built on, and to the oMLX author for a runtime that made all of this possible on a laptop.