Qwen3.8-Flash-Next · GSQ-RCO Coder · 192 experts · implant16 (GGUF)
Second expert-pruned build of ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF
for running an agentic coding workload (Claude Code driving ABAP/Go/TypeScript repositories) entirely in the VRAM
of two 16 GB consumer GPUs with llama.cpp. Build id: cnm-fn-dslab192e-implant16-v2. It follows our first build,
oisee/Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-GGUF
("v1"). Same size and runtime footprint; a different set of experts. This is an independent community build, not
affiliated with or endorsed by ISTA-DASLab, Qwen or unsloth.
- 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 expert slots per layer.
- How (three steps):
- Cut 256 → 224 (as in v1): drop the 32 experts per layer with the lowest summed router weight on one recorded agentic coding session of ours (Claude Code working on one of our own repositories).
- Cut 224 → 192 with protected "decision" experts: rank the 224 by router weight on the same session, with tokens weighted by class (decision ×8, tool-call ×4, edit arguments ×2, everything else ×1), and always keep the 16 experts per layer with the highest weight on decision positions (the token right before the model either starts a tool call, writes visible text or ends its turn). Exception: layer 47 uses v1's set, because our class statistics for that layer covered only one position.
- Implant: in layers 0–46, the 16 weakest unprotected experts are replaced by the 16 strongest experts outside DASLab's 256 (here weak/strong = plain summed router weight, prompt + generated tokens, on the same session, measured on the full 512-expert model — not the class-weighted rank of step 2), each replacement accepted only if it adds router weight; layer 47 got 1 replacement. 753 replacements in total. The implanted experts are taken from unsloth's Q8_0 GGUF of Qwen3.8-Flash-Next and requantised to the destination layer's own tensor types (IQ2_S / IQ3_XXS / IQ3_S / IQ4_XS for gate/up, IQ4_NL or Q2_0 for down) with unsloth's importance matrix; their router rows are taken from the full 512-expert router. All other expert bytes are copied unchanged from the DASLab release; attention, shared expert and the n-gram/PLE table are untouched. These are simple heuristics on one session, not a KL-optimised search like DASLab's RCO.
- Size: 52.1 GB (52 106 350 560 B) in two shards; the second shard is mostly the n-gram/PLE table (~28 GB), which stays in system RAM under llama.cpp. The rest fits two 16 GB GPUs: 190K context (194 560 tokens) with the MTP draft head, 192K without it.
Downloads / prebuilt binaries
MoREL runtime cnm-varexp-v0.1 prerelease provides the fork runtime required by the PB3 MoREL models. It is also offered here for K192p-implant16 v2, whose generation with these packages has not been tested. These are machine-specific Ubuntu 24.04 packages. Choose the package that matches your CPU and backend; they are not universal Linux builds. Windows x64 CUDA/CPU, macOS arm64 and generic Linux x64 CUDA/Vulkan/CPU Actions packages are not available in this prerelease yet. Build from the release source for other machines.
| Machine / backend | Asset | SHA-256 |
|---|---|---|
| AVX2/FMA/F16C CPU (i10, Ryzen 5 5600G) | llama-cnm-varexp-v0.1-i10-cpu-linux-x86_64.tar.gz | 8c40381780f37427c52d7a5b30efe07bf0e0448ad0880f1a7d025ebf2ad0876e |
| AVX CPU + Radeon Vulkan (i3, i5-3570K / RX 580) | llama-cnm-varexp-v0.1-i3-vulkan-linux-x86_64.tar.gz | 5420ec8769075c1affe3b011b5a0d7dc92fa3cd688accfb7b8ee4b6e5b07f345 |
| CUDA 12.0 sm_75 (i5, RTX 2070) | llama-cnm-varexp-v0.1-i5-cuda-linux-x86_64.tar.gz | 7c7390f8193197fb38b8e3aa9ddd5507afa6caa21aaed19672e4c9857a8c502c |
| CUDA 12.0 sm_89/86/75 (i7, RTX 4060 Ti) | llama-cnm-varexp-v0.1-i7-cuda-linux-x86_64.tar.gz | 567d67ff6ca26c3046c39247b8efa704f897d981f2fa2671a6edd7ebe8a7e16b |
Each tarball has a matching .sha256 asset on the release page. Download both and run sha256sum -c <archive>.sha256 before extraction. Keep the executables and project shared libraries together. System C/C++ libraries and GPU drivers/CUDA libraries are external dependencies. These packages disable HTTPS and the embedded server Web UI.
The release notes contain the complete test matrix. Packaging checks covered all four builds; PB3-208 had short CPU (i10) and partial-offload Vulkan (i3) completions. CUDA generation, PB3-304/K192p generation with these packaged binaries, full Vulkan residency, long contexts and MTP were not tested in this release. Existing model-card evaluations used their separately recorded runtime configurations.
What we measured (and what we did not)
All numbers are ours: one machine for the GPU checks (2× RTX 4060 Ti 16 GB, i7-10700K, 128 GB DDR4), llama.cpp
master 0ae0e1976 (CUDA graphs). Small samples, mostly one run per task — treat them as indications, not benchmarks.
Offline checks
| check | this build | v1 (192 experts, no protection, no implant) |
|---|---|---|
| KL to the full model per token class on one held-out agentic session (from a repository not used for selection), 4K context windows, 61 410 scored positions, reference: unsloth's full 512-expert UD-IQ4_XS: all positions mean KL / top-1 agreement | 0.753 / 71.3 % | 0.874 / 69.7 % |
| same, decision positions only (64 positions) | 0.194 / 92.2 % | 0.353 / 82.8 % |
| "does it act?" (first step of a recorded agentic task replayed 20×, replies that call a tool) | 20/20 | 20/20 |
| short replay of a recorded agentic task (21 tool-calling steps, same history, next move): acted / same tool as the original | 20/21 / 17/21 | 18/21 / 17/21 |
| decode speed in that replay (n-gram speculation only, no MTP head, q8_0 KV, 192K context), median of 42 replies; separate runs, not interleaved, the difference may be noise | 34.3 tok/s | 32.9 tok/s |
For the KL rows: our intermediate step 2 alone (protected 192, no implant, not released) gave 0.883 all / 0.222 decision (69.2 % / 93.8 % top-1); the implant is what lowers the all-positions KL. 64 decision positions is a small sample and we did not compute confidence intervals for these rows. In the replay check the step-2 build chose the same tool 19/21 times, this build 17/21.
Live agentic tasks. Claude Code (harness at xhigh effort) driving a local llama-server with the
recommended setup below, on private tasks from our own repositories graded by hidden tests; the client runs on a
second machine, and the harness gives the slower local hardware 5× the normal time limit.
| task (level) | result | wall clock |
|---|---|---|
| L1a | RESOLVED, RESOLVED (2 runs) | 5.7 min, 5.2 min |
| L1b (in-sample, see below) | RESOLVED | 56.9 min |
| L2a | RESOLVED, RESOLVED (2 runs) | 48.6 min, 35.4 min |
| L2b | no valid run yet (the first attempt was stopped by our own run scheduler after 49 min, not by the model or the time limit) | — |
| L3a | no valid run yet (the first attempt was stopped by our run scheduler after 30 s) | — |
| L3b | RESOLVED; a single pass of an independent LLM judge (not validated) scored the patch 2 of 3 | 59.8 min |
- L1b is the task whose recorded session we used for expert selection (steps 1–3), so its result is in-sample. L1a and L2a come from the same repository as L1b; L2b and L3b come from a different repository that was not used for selection.
- In one L2a run, by our reconstruction from the transcript (the hidden tests were not re-run on that state), the hidden tests would already have passed about 11 minutes in; the agent kept working until it decided it was done.
- The second L2a run was flagged by the harness's leakage scan: the agent's final message contained two links into the task's own repository. Both were copied from a file in the working tree; the agent made no web requests.
- For comparison: on the same harness, the unpruned Qwen3.8-Flash-Next (NVFP4) on one RTX PRO 6000 failed L3b twice (one run ended after 24 min with failing hidden tests, a second run with a critic round hit its time limit). Two runs against one: this does not show that the pruned model is better, only that L3b is not easy.
- v1 on the same harness: L1a 7.6 min, L2a 28.4 min (both RESOLVED, one run each, partly different configuration).
- Decode speed over all live runs above on one server instance (MTP + n-gram speculation, contexts up to 192K): 32.1 tok/s token-weighted (417 111 generated tokens, 652 replies, including the stopped L2b/L3a attempts); prefill median ~950 tok/s on new prompt parts over 2 000 tokens (62 requests).
Not measured: standard benchmarks (SWE-bench, LiveCodeBench, …); vision (the parent keeps multimodal ability — we pruned and implanted on text-only coding sessions and did not test images); general knowledge or non-coding tasks, which are expected to degrade further than in the parent; a comparison against the unpruned DASLab 256-expert release on these same checks; more than one or two runs per task; other hardware; Ollama. 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. This is the exact configuration of the live runs above:
llama-server -m Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-implant16-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
Without the MTP head (the configuration of the offline replay checks):
llama-server -m Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-implant16-00001-of-00002.gguf -c 196608 -np 1 -fa on --jinja \
--chat-template-file chat-template-mid-system.jinja -ctk q8_0 -ctv q8_0 -ub 512 -b 4096 --fit-target 128 \
--spec-type ngram-simple --temp 0.6 --top-k 20 --top-p 0.95 --min-p 0
- Long agentic requests can exceed llama-server's default HTTP timeout; we ran with
--timeout 1800. - Sampling defaults: temperature 0.6, top-k 20, top-p 0.95, min-p 0 (all our measurements). Clients that send their own sampling parameters override these.
- With the live configuration llama.cpp's fit step reported "no changes needed": all 49 layers and the MTP head on the GPUs, about 28 GB of host memory for the memory-mapped n-gram/PLE table and token embeddings.
mtp-Qwen3.8-Flash-Next-exps-Q4_K.gguf(3.0 GB, the same file as in v1) 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). A weaker head only lowers the acceptance rate.-ctv q5_1: in our v1 measurement, 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 (not re-measured on this build).-ts 28,21and-otd token_embd=CPUare what made everything fit on our cards; adjust for your GPUs.chat-template-mid-system.jinja(same as v1) is 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 350 560 B file
(sha256 325f9c1c5edf80e51232c5abb15d1494df8a18a8de8618dbeb11b68f2361259b);
comparing the shards with the original showed every tensor (type, shape, bytes) and every metadata key identical.
The second shard (the n-gram/PLE table) is byte-identical to v1's second shard, since that table is untouched.
Point llama.cpp at the first shard.
| file | size | sha256 |
|---|---|---|
Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-implant16-00001-of-00002.gguf |
23 306 212 320 B | a896ef295771fd2047d2d221a00e564010929c7dd890ecdfbe3b666e723c9429 |
Qwen3.8-Flash-Next-GSQ-RCO-Coder-192E-implant16-00002-of-00002.gguf (n-gram/PLE table) |
28 800 138 432 B | 2fab43ec437fb7f0007686ac5ada3935ce7119fcfd8a3101931ab16485431155 |
mtp-Qwen3.8-Flash-Next-exps-Q4_K.gguf |
2 983 995 520 B | 5075e39379796203ca59f9248871379d30b4c7062094b44c78d5729406dea406 |
chat-template-mid-system.jinja |
9 988 B | chat template accepting mid-conversation system messages |
experts-192-implant16-original-ids.json |
— | per layer: the original expert id (0–511) in each of the 192 slots, and every replacement (slot, id removed, id added) |
implant16-manifest.json |
— | the implant tool's manifest (plan hash, router-row checks, input hashes; local paths reduced to file names) |
Expert ids use the original 512-expert numbering of Qwen3.8-Flash-Next.
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; internal use that makes nothing available to third parties is exempt). 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 removes and replaces experts and documents a home-hardware configuration. - Implanted experts: from unsloth's
Qwen3.8-Flash-Next-GGUFQ8_0 files, requantised by us with unsloth's importance matrix (Qwen Community License 1.0). - MTP draft head: derived from unsloth's
mtp-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).