Qwen3.8 Flash Next GSQ RCO Coder — 21.99 GB Hybrid GGUF
The current model is Qwen3.8-Flash-Next-GSQ-RCO-Coder-22GB-IQ2_XXS-00001-of-00002.gguf. Download the second shard as well; both files are required.
This release combines ISTA's exact GSQ-RCO Coder pruning with selected lower-precision expert banks from Unsloth UD-IQ1_S. The transformer shard is 21.9866 GB, down from 29.6084 GB in the pinned ISTA release. The separate 28.8001 GB n-gram lookup table is unchanged and can be served from disk.
Total download package: 50.7867 GB (47.30 GiB) for the two required GGUF shards. The 21.99 GB headline describes the transformer shard.
All 1,079 non-routed transformer tensor payloads are unchanged from ISTA, including attention, shared experts, routers, embeddings, the output head, and the small control tensors. The same 256 of 512 experts per layer are retained, in the same router order, across all 48 layers.
This is a community hybrid of the two published GGUF releases. No new GSQ training, RCO pruning search, or weight requantization was performed.
Model details
| Property | Value |
|---|---|
| Foundation model | Qwen/Qwen3.8-Flash-Next |
| Pruned base | ISTA GSQ-RCO Coder |
| Expert donor | Unsloth UD-IQ1_S |
| GGUF architecture | qwen4exp |
| Transformer layers | 48 |
| Routed experts retained per layer | 256 of 512 |
| Experts selected per token | 10 |
| Transformer shard | 21,986,609,760 bytes |
| Disk-backed n-gram shard | 28,800,138,432 bytes |
| Total GGUF storage | 50.7867 GB (50,786,748,192 bytes) |
Package size and hardware compatibility
| Component | Package size | Runtime placement |
|---|---|---|
| Transformer shard | 21.9866 GB | CPU-mapped weights or GPU-resident weights, depending on offloading |
| PLE n-gram shard | 28.8001 GB | Disk-backed lookup table with --lazy-mode on; IQ4_NL, 4.5 bits per weight including scales |
| Complete two-shard package | 50.7867 GB (47.30 GiB) | Total GGUF download and disk storage |
The published variant is labeled IQ2_XXS, in the 2-bit family, with a mixed-precision tensor allocation detailed below. Both filenames include that label so Hugging Face can group the shards in its Hardware compatibility sidebar.
Hugging Face's automatic hardware estimator may count the complete 50.79 GB package as resident weights. With lazy PLE loading, the n-gram table can remain on disk: the transformer file accounts for 21.99 GB, with KV cache, compute buffers, runtime allocations, and the operating system requiring additional memory. The total package size is not a measured VRAM requirement.
Use llama.cpp with qwen4exp, Q2_0, and lazy n-gram support. CPU inference with mmap and SSD paging was validated on an AMD BC-250 with approximately 14 GiB of system RAM; the transformer was not fully resident in that test. Full GPU residency, GPU speed, and a minimum GPU-memory requirement were not measured.
Download and run
Use a llama.cpp build with qwen4exp, Q2_0, and lazy n-gram support. This release was checked with commit f3363593f457169cdfbdfe22ea399b1cc139ba18.
hf download Ninnix96/Qwen3.8-Flash-Next-GSQ-RCO-Coder-22GB-gguf --local-dir model
llama-cli \
-m model/Qwen3.8-Flash-Next-GSQ-RCO-Coder-22GB-IQ2_XXS-00001-of-00002.gguf \
--lazy-mode on \
-ngl 0 -c 8192 -t 8 \
--temp 0 --single-turn \
--chat-template-kwargs '{"enable_thinking":false}' \
-p "Write a Python function that reverses a linked list."
This is a CPU example. Keep both shards in the same directory and pass the first to the runtime. --lazy-mode on keeps the large n-gram table served from disk. Offloading transformer layers to a GPU requires enough memory for their weights and the runtime's additional allocations.
For a local OpenAI-compatible endpoint:
llama-server \
-m model/Qwen3.8-Flash-Next-GSQ-RCO-Coder-22GB-IQ2_XXS-00001-of-00002.gguf \
--lazy-mode on \
-ngl 0 -c 8192 -t 8 --parallel 1
The multimodal projector is not included. Vision quality was not evaluated.
Quantization recipe
Compression is concentrated in the routed experts. Protected tensors retain ISTA's existing mixed precision, rather than being converted to a new uniform precision.
| Tensor class | Published allocation |
|---|---|
| Routed gate banks | 35 IQ2_XXS, 13 IQ2_S |
| Routed up banks | 36 IQ2_XXS, 12 IQ2_S |
| Routed down banks | 41 Q2_0, 7 IQ4_NL |
| Attention and shared experts | Exact ISTA tensor bytes and types |
| Token embeddings and output head | Exact ISTA tensor bytes and types |
| Routers, norms, biases, and control tensors | Exact ISTA tensor bytes and types |
| N-gram lookup table | Exact ISTA IQ4_NL shard |
The UD-IQ1_S donor name does not mean these routed banks use IQ1_S. Its relevant gate/up tensors use IQ2_XXS or IQ2_S, and its down tensors use Q2_0.
Assembly and selection
- Pin the ISTA release and read its published per-expert allocation. Preserve the same 256 original expert IDs in every layer.
- Match each retained router row against the unpruned Unsloth router. This verifies expert identity and recovers the exact order needed for every transplanted bank.
- For an eligible gate, up, or down bank, copy the corresponding 256 expert slices from the already-quantized donor tensor. Copy all other tensors directly from ISTA.
- Estimate the bank's drift from ISTA with Unsloth's published importance matrix. The proxy weights squared weight differences by per-expert input energy. Most banks use 64 sampled output rows per retained expert; the first three scored banks use all output rows.
- Build three allocations under a 22 billion-byte transformer budget: relative drift, absolute weighted drift, and relative drift with a larger penalty for replacing down banks. Rank proxy cost per byte saved, then measure whole-model KL divergence against ISTA.
- Select the allocation with the lowest calibration mean KL and verify it on a separate corpus. The selected allocation also had the highest observed calibration top-1 agreement.
The winning allocation copies 120 of 144 routed banks from Unsloth: 44 gate, 44 up, and 32 down banks. It keeps 24 routed banks from ISTA, including seven higher-precision IQ4_NL down banks and nine down banks already stored as Q2_0.
Mixing is per layer/projection bank: standard GGUF assigns one quantization type to each tensor. Every expert inside a selected bank uses that bank's type. There is no additional expert pruning.
The importance-matrix score is a search proxy, not a measured KL value. recipe.json records the pinned sources and exact replacement list; quantization.json lists the resulting tensor types.
Measured quality
The reference is the original pruned ISTA GSQ-RCO Coder GGUF, not BF16 or the unpruned model. These are teacher-forced next-token comparisons on Python code from pinned HumanEval prompts and canonical solutions. Calibration and validation use disjoint task IDs.
| Allocation | Transformer GB | Calibration mean KL | Top-1 agreement |
|---|---|---|---|
| Relative drift | 21.9997 | 0.032772 | 98.413% |
| Absolute weighted drift | 21.9538 | 0.041272 | 98.413% |
| Protect down | 21.9866 | 0.027198 | 99.206% |
Calibration covers 252 predicted tokens in 128-token contexts. The selected allocation was then evaluated over 1,008 predicted tokens from the disjoint validation set:
| Held-out metric | Result |
|---|---|
| Mean KL divergence | 0.126516 ± 0.014409 |
| Top-1 agreement with ISTA | 94.444% ± 0.722 percentage points |
| Median KL | 0.001312 |
| 99th-percentile KL | 2.404138 |
| Hybrid perplexity | 1.443762 |
| ISTA perplexity | 1.380902 |
| Perplexity increase | 4.55% |
The uncertainty values are the native llama-perplexity estimates. Top-1 agreement measures agreement with ISTA's predicted token; it is not coding-task accuracy. These short-context results identify the best calibration KL among the three tested allocations, rather than a global optimum.
Code-audit spot check
One COMPSEC case completed before the evaluation was stopped: COMPSEC-076 passed, returning the accepted Answer: 20. It used temperature zero, reasoning enabled at high, and 2,795 generated tokens within a 4,096-token limit. The reasoning was coherent but repetitive and took approximately 35.8 minutes with CPU/SSD inference.
The other two selected spot-check cases were not completed. This release has no full code-suite, HumanEval pass@1, or SWE-bench score. Long-context and vision quality were not measured.
Validation and provenance
- The original expert mask and router-row identity passed checks in all 48 layers.
- Every output tensor payload was checked against the bytes selected from its source.
- All non-routed transformer tensors are byte-identical to ISTA.
- The n-gram shard's complete SHA-256 matches the published ISTA source.
- Native
llama.cppload, next-token evaluation, and chat generation passed. - A separate non-thinking generation sanity check returned the requested Python expression
a + b.
| Source | Pinned revision |
|---|---|
| ISTA GSQ-RCO Coder | bba88856f8c3c0c9e40e45f82d05e228b814ac43 |
| Unsloth UD-IQ1_S and imatrix | 084c631ac221016019d6e0a863afe92d90edd3b0 |
| HumanEval corpus | b9453e8f1865df0a0057a1383767caa400acfbcf |
| llama.cpp | f3363593f457169cdfbdfe22ea399b1cc139ba18 |
Detailed metrics are in validation.json. Per-tensor payload hashes are in tensor-sha256.json. Whole-file hashes are in SHA256SUMS.
f519acc9e3c6d570299224f589b5d1b0a7868698ea1736809480f87dbb07a1e9 Qwen3.8-Flash-Next-GSQ-RCO-Coder-22GB-IQ2_XXS-00001-of-00002.gguf
316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113 Qwen3.8-Flash-Next-GSQ-RCO-Coder-22GB-IQ2_XXS-00002-of-00002.gguf
Acknowledgements
This release depends on the original model and compression work from:
- Qwen, for Qwen3.8-Flash-Next.
- ISTA DASLab, for GSQ quantization, RCO expert pruning, and the published allocation map.
- Unsloth, for the donor GGUF and importance matrix.
- llama.cpp and GGML, for the format, inference runtime, quantization implementations, and evaluation tools.
- Salvatore Sanfilippo / Antirez, for work on asymmetric MoE compression and local inference that informs the broader recipe used in this collection.
License
The derived weights retain the foundation model's Qwen Community License 1.0, included in LICENSE. See Qwen/Qwen3.8-Flash-Next for the original model and complete upstream terms.