Qwen3.8-Flash-Next · GSQ-RCO Coder · 192 experts (GGUF)
A further expert-pruned version of ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF,
made to run an agentic coding workload (Claude Code driving ABAP/Go repositories) entirely in the VRAM of two
16 GB consumer GPUs with llama.cpp. Build id: cnm-fn-dslab192e-v1. This is an independent community build, not affiliated with or endorsed by ISTA-DASLab or Qwen.
- Base: Qwen3.8-Flash-Next (512 routed experts, top-10) → ISTA-DASLab GSQ-RCO-Coder (256 experts, ~3.5 bpw, selected by DASLab for code and agentic use) → this build: 192 experts per layer.
- How: the 64 removed experts per layer are the ones with the lowest summed router weight on one recorded
agentic coding session of ours (Claude Code working on one of our own ABAP/Go repositories), measured with a
patched llama.cpp, removed in two steps (256 → 224 → 192). This is a simple heuristic, not a KL-optimised search
like DASLab's RCO. The expert bytes are copied unchanged (no requantisation); router rows of removed experts are
dropped and
expert_countis set to 192. Nothing else (attention, shared expert, n-gram/PLE table) is changed. - Size: 52.1 GB in two shards (
Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-0000{1,2}-of-00002.gguf; the second shard is the n-gram/PLE table), of which the n-gram/PLE table (~28.8 GB) stays in system RAM under llama.cpp; the rest fits two 16 GB GPUs with a long context.
What we measured (and what we did not)
All numbers are ours, on one machine (2× RTX 4060 Ti 16 GB, i7-10700K, 128 GB DDR4), llama.cpp master 0ae0e1976
(CUDA graphs), one run per task. Small samples — treat them as indications, not benchmarks.
| check | result |
|---|---|
| "does it act?" (first step of a recorded agentic task replayed 20×, counts replies that call a tool) | 20/20 |
| short replay of a recorded agentic task (21 tool-calling steps, same history, next move) | acted 18/21, same tool 17/21 (our intermediate 224-expert cut, not released: 18/21, 15/21) |
| live agentic tasks with Claude Code (private tasks from our own repositories, hidden tests) | 2 of 2 completed tasks solved (7.6 and 28.4 min wall clock; the 7.6 min run used the unquantised Q8 MTP head with 3 expert layers in RAM, the 28.4 min run the exact config below); further tasks not yet run |
| decode speed on one live task (token-weighted over the run, MTP + n-gram speculation, config below) | ~45 tok/s below 40K context, ~35 at 40–70K, ~30 above 70K |
During selection we also saw that 160 experts break the "does it act?" check (1/10) while 192 holds (10/10) (10 samples each, masks on the 224-expert cut, no physical cut).
Not measured: standard benchmarks (SWE-bench, LiveCodeBench, …); vision (the parent keeps multimodal ability — we pruned on a text-only coding session and did not test images); general knowledge or non-coding tasks, which are expected to degrade further than in the parent. Any comparison against the unpruned DASLab 256-expert release on these same checks; more than one run per task; other hardware. If you need general capability, use the parent release.
Recommended llama.cpp setup (two 16 GB GPUs, zero experts in RAM)
Requires a llama.cpp build with the Qwen3.8-Flash-Next (qwen4exp) architecture, --spec-type draft-mtp, -otd/-devd and --fit-target; we used master 0ae0e1976 built with CUDA graphs. Older builds will not load the model or will reject the flags.
llama-server -m Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-00001-of-00002.gguf -c 194560 -np 1 -fa on --jinja \
--chat-template-file chat-template-mid-system.jinja -ctk q8_0 -ctv q5_1 -ub 512 -b 4096 --fit-target 128 \
--device CUDA0,CUDA1 -md mtp-Qwen3.8-Flash-Next-exps-Q4_K.gguf -devd CUDA1 -otd token_embd=CPU -ts 28,21 \
--spec-type draft-mtp,ngram-simple --temp 0.6 --top-k 20 --top-p 0.95 --min-p 0
mtp-Qwen3.8-Flash-Next-exps-Q4_K.gguf(3.0 GB) is unsloth's MTP draft head for Qwen3.8-Flash-Next with its experts requantised Q8_0 → Q4_K (down→ Q5_0, 640 columns). Every draft token is verified by the main model, so the head affects speed, not what the model chooses (up to small numeric differences from batched verification: replies are not byte-identical, but in our tests the same tool was chosen). A weaker head only lowers the acceptance rate. unsloth also publishes its own Q4_K_M MTP head, which we did not test. In our live runs MTP acceptance was ~50–65% and ~70% of generated tokens came from drafts (MTP + n-grams).-ctv q5_1: KL to a q8_0 V cache at 32K context was 0.012 against a q8_0-vs-q8_0 run-to-run floor of 0.0075.-ts 28,21and-otd token_embd=CPUare what made everything fit on our cards with zero experts in RAM; adjust for your GPUs. Without the MTP head, 192 experts at 192K context leave ~4 GB of VRAM free.chat-template-mid-system.jinjais the embedded chat template with one change: asystemmessage in the middle of a conversation is rendered in place instead of raising "System message must be at the beginning." Agentic clients such as Claude Code send such messages and fail with HTTP 500 on the embedded template. All our measurements used this template.
Files
The two shards were produced with llama-gguf-split --split --split-max-size 45G from one 52 106 315 296 B file (sha256 012c30ef…63b8); point llama.cpp at the first shard.
| file | size | sha256 |
|---|---|---|
Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-00001-of-00002.gguf |
23 306 177 056 B | 271e2971952137b6d11a8230a25870987f7724eb2a54547a595a0316ef304dbb |
Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-00002-of-00002.gguf (n-gram/PLE table) |
28 800 138 432 B | 2fab43ec437fb7f0007686ac5ada3935ce7119fcfd8a3101931ab16485431155 |
chat-template-mid-system.jinja |
— | chat template accepting mid-conversation system messages |
mtp-Qwen3.8-Flash-Next-exps-Q4_K.gguf |
2 983 995 520 B | 5075e39379796203ca59f9248871379d30b4c7062094b44c78d5729406dea406 |
keep-192-original-ids.json |
— | per-layer list of the kept experts in the original 512-expert numbering |
The keep list uses the original 512-expert numbering, so it can in principle be applied to other builds of Qwen3.8-Flash-Next that keep the original expert order; we have not tested that.
Credits and license
- Base model: Qwen3.8-Flash-Next by Qwen, under the Qwen Community License 1.0 (included as
LICENSE). Commercial use by a company running a Model-as-a-Service or AI-Work-Assistant business needs a separate license from Qwen (condition 2). Very large commercial products (>100M monthly active users or >US$20M monthly revenue) must display the model name (condition 1). ReadLICENSEbefore use. - Expert selection to 256 and the GSQ-RCO quantisation: ISTA-DASLab (GSQ,
RCO); their GGUF repository is tagged Apache-2.0, and its card states that the weights inherit the Qwen3.8-Flash-Next
license; we follow both (
NOTICE-ISTA-DASLab.md,LICENSE-APACHE-2.0,LICENSE). All credit for the quantisation and the 256-expert selection goes to them; this build only removes 64 more experts per layer and documents a home-hardware configuration. - MTP draft head: derived from unsloth's
Qwen3.8-Flash-Next-GGUFmtp-Qwen3.8-Flash-Next-Q8_0.gguf(Qwen Community License 1.0); modified by us: expert tensors requantised Q8_0 → Q4_K (down→ Q5_0).