Qwen3.8-Flash-Next · exlr8 (K2/K3/K4)
Version v0.3. Adds the Q4_0 DFlash parallel block speculative drafter (
drafter/dflash.q4_0.pack,523.8 MB) and its SHA-256 sidecar (hashes/drafter/dflash.q4_0.pack.sha256), auto-discovered with zero extra flags by kindlingai/gr8 for +38% code and +61–66% structured/counting single-stream speedups with 100% byte-identical greedy parity. All routed/shared expert files, index slices, dense text files, vision tower (dense/vision-bf16.safetensors), and the Layer-1 PLE rowstore are byte-identical tov0.2(set_id:867c001a5358e0a1c74c86aab1dbefc9cf607b71a9e7ffd2a5bbf7fee77fd3d4).
A quantization of Qwen3.8-Flash-Next in the exlr8 v2 format, built for NVIDIA GB10-class unified-memory
devices (DGX Spark, ASUS GX10) served on one to four boxes. Every routed and shared expert is stored at three trellis
widths, K2, K3 and K4, in the pmcgx codebook, and the serving width is chosen at load time.
These weights cannot be used without E4M3 rounding. A loader must round every value the trellis codebook produces to FP8 E4M3 (round to nearest even, saturating) before applying the side vectors. The encoder searched only over E4M3-rounded values, so the rounding is part of the format: a stock EXL3 decoder, or any decoder that skips the rounding, reads measurably worse weights from the same bytes. Every layer in this release uses the
pmcgxcodebook (exlr8 FORMAT.md, Codebook).
Qwen3.8-Flash-Next (Qwen4ExpForConditionalGeneration) is a hybrid multimodal MoE model: 48 text layers (36 Gated
DeltaNet linear-attention layers and 12 full GQA-12 attention layers with a block-4 QSA sparse indexer at layers 3, 7,
..., 47), 4-stream low-rank hyper-connections (4 × 2560, rank 320), a Layer-1 Per-Layer Embedding (PLE) 2/3-gram
table (320,001,536 × 160 BF16), 512 routed experts with top-10 routing plus one gated shared expert per layer, untied
248,320-token embeddings and LM head, a 1-layer full-attention MTP speculative drafter (mtp.layers.0), and a 27-layer
vision tower (model.visual.*). This release quantizes the routed and shared experts of layers 0-47 to pmcgx
K2/K3/K4, bundles the Q4_0 DFlash parallel block speculative drafter (drafter/dflash.q4_0.pack), and keeps the dense
projections, vocabulary, MTP drafter, vision tower and Layer-1 PLE rowstore unchanged in BF16.
Engine support
- kindlingai/gr8: KindlingAI's exlr8-native engine for DGX Spark, which serves
this release with
./gr8 qw38atTP=1toTP=4(including live width scaling acrossTP=1..4withGR8_PTAB=2andbin/g6layout), fetches each box's part from this repository (includingdrafter/dflash.q4_0.pack), streams Layer-1 PLE rows asynchronously from local NVMe behind Layer 0, auto-discovers DFlash parallel block speculative drafting for single-stream decode alongside graphed Layer-48 MTP (--mtp 0..3) for multi-stream concurrency, supportsO_DIRECTSSD KV prefix/session caching (KV_STORE=ssd:...), and supports multimodal image input withGR8_QW38_VISION=1(27-layer BF16 ViT + interleaved 3D MRoPE). See docs/QWEN38.md and the 1× DGX Spark recipe.
The format, and the byte-level description a loader needs, is shared with kindlingai/glm-5.3-exlr8-k2-k3-k4 and kindlingai/glm-5.3-flash-exlr8-k2-k3-k4. See Loading for what differs on Qwen3.8-Flash-Next.
Width profiles and KL divergence


| profile | routed bpw | resident size | experts / box (TP=1 / TP=2) | model-written KL (mean / median) | model-written top-1 | wikitext KL (mean / median) | wikitext PPL (ref 3.729) |
|---|---|---|---|---|---|---|---|
bit200 | 2.00 | 46.4 GB | 30.3 / 15.2 GB | 0.0537 / 0.00743 | 92.60% | 0.2177 / 0.0557 | 3.845 (+3.11%) |
bit300 | 3.00 | 61.5 GB | 45.4 / 22.7 GB | 0.0124 / 0.00157 | 96.34% | 0.0796 / 0.0178 | 3.737 (+0.23%) |
bit400 | 4.00 | 76.6 GB | 60.5 / 30.3 GB | 0.0046 / 0.00054 | 97.70% | 0.0373 / 0.0081 | 3.723 (-0.17%) |
Resident size counts every routed and shared expert of layers 0-47 at the profile's widths plus 16.0 GB of BF16 dense, vocabulary, MTP and vision weights (15.1 GB without vision; drafter/dflash.q4_0.pack adds 0.52 GB when loaded; ple/exlr8-ple-L001.bin, 102.4 GB, streams from local NVMe). Full-vocabulary float64 KL against BF16 (248,320 vocab) is measured over 65,536 WikiText-2 test positions (32 × 2048) and 16,057 model-written assistant positions (8 × 2048).
What each profile is:
bit200: uniform K2 (pmcgxE4M3) across all 48 MoE layers (512 routed + 1 shared expert per layer).bit300: uniform K3 (pmcgxE4M3) across all 48 MoE layers (512 routed + 1 shared expert per layer).bit400: uniform K4 (pmcgxE4M3) across all 48 MoE layers (512 routed + 1 shared expert per layer).
- Resident GPU/RAM size is everything one copy keeps in memory at that width: the experts of layers 0-47 plus
0.32 GBof expert index/side data,15.11 GBof BF16 dense, vocabulary and MTP files (9.90 GBwithout MTP viaGR8_QW38_NO_MTP=1),0.52 GBfor the Q4_0 DFlash drafter (drafter/dflash.q4_0.pack), and0.90 GBfor the opt-in BF16 vision tower (dense/vision-bf16.safetensors, loaded only whenGR8_QW38_VISION=1). - NVMe PLE rowstore (
ple/exlr8-ple-L001.bin,102.40 GB/95.37 GiB) stays on local NVMe and is read per token viaO_DIRECTpreadinto a small host LRU cache (default1 GiB), rather than occupying GPU memory. - Widths are exact: a K3 layer file is
945,709,056bytes (630,538,240bytes at K2,1,260,879,872bytes at K4), 513 experts × 3 projections × 2560 × 640 plus 64 KiB section alignment. - Each width is an independent, Hessian-aware trellis encode. Codes do not nest between widths, and all three use the
pmcgxE4M3 codebook.
Throughput results
1× DGX Spark (TP=1) with DFlash + full native 256K context
Measured on 2026-11-25 on one DGX Spark (GB10, 128 GB) with kindlingai/gr8
(bench/bench.py, local NVMe release storage, GR8_QW38_PLE_CACHE_MIB=1024, REUSE=1,
KV_STORE=ssd:/var/lib/gr8/cache/kv,size=32G,keep=all O_DIRECT, full native MAX_MODEL_LEN=262,144):
| manifest & mode | slots × context (KV pool) | code | prose | structured | counting | concurrency (c1 / c2 / c4 / max) | cold prefill (8K / 32K / 128K) | 128K SSD restore |
|---|---|---|---|---|---|---|---|---|
bit300 (K3, Hybrid DFlash + MTP=3) | 6 × 262K (1.57M rows) | 114.2 | 58.5 | 140.8 | 147.7 | 78.1 / 98.6 / 120.5 / 138.4 (c6) | 2,204 / 2,315 / 2,217 | 0.56 s |
bit400 (K4, Hybrid DFlash + MTP=3) | 4 × 262K (1.05M rows) | 108.3 | 56.6 | 130.8 | 134.7 | 78.4 / 93.2 / 105.7 (c4) | 2,160 / 2,285 / 2,170 | 0.61 s |
bit400 (K4, DFlash-only NO_MTP=1) | 5 × 262K (1.31M rows) | 109.8 | 57.0 | — | — | 78.8 / 54.6 / 77.1 / 84.7 (c5) | 2,143 (8K) | 0.26 s (8K) |
- Lossless greedy parity:
8/8(100%) byte-identical greedy output (T=0.0) with DFlash enabled vs.GR8_QW38_DFL=0(MTP=3baseline) onbit300. - 246K long-context needle recall: PASS on all three configs (
bit300246,129tok at2,094 tok/s;bit400hybrid245,478tok at2,050 tok/s;bit400NO_MTP=1245,809tok at2,059 tok/s), plus128Kneedle PASS and3/3count-200 clean. - Agentic benchmark (Kindling AI RealMark,
C=1, 2, 4,enable_thinking=false): RIPAL1,780.7(GradeA) onbit300(6 × 262K) —C=1:1,499.9(98.8% A,101Kctx),C=2:1,874.1(99.0% A,177Ktotal ctx),C=4:2,008.8(99.1% A,325Ktotal ctx),99.39%prefix cache hit across11.74Mprompt tokens,0API errors,5.59 GiBminimumMemAvailablethroughout.
Baseline MTP scaling (TP=1 & TP=2, pre-DFlash)
Measured with kindlingai/gr8 on 2026-11-22 on GB10 (DGX Spark) boxes with local
NVMe release storage, GR8_QW38_DENSE_FP8=1, GR8_QW38_PLE_ASYNC=1, GR8_QW38_GRAPH=1, and dual-rail RoCE
(GR8_QW38_FAST_AR=1) on TP=2. English prose (P=30, gen=96 for c1, gen=64 for c5):
| configuration | manifest | MTP=0 c1 | MTP=1 c1 | MTP=2 c1 | MTP=3 c1 | MTP=0 c5 agg | MTP=3 c5 agg |
|---|---|---|---|---|---|---|---|
1 box (TP=1) | bit300 | 32.69 tok/s | 45.23 tok/s | 52.68 tok/s | 56.05 tok/s | 135.62 tok/s | 165.87 tok/s |
1 box (TP=1, GR8_PTAB=2) | bit300 | — | — | — | 55.15 tok/s | — | — |
1 box (TP=1) | bit400 | — | — | — | 54.28 tok/s | — | — |
2 boxes (TP=2) | bit300 | 48.55 tok/s | 68.79 tok/s | 80.17 tok/s | 81.90 tok/s | 200.00 tok/s | 228.18 tok/s |
2 boxes (TP=2) | bit400 | — | — | — | 78.20 tok/s | — | 179.14 tok/s |
MTP=3achieves71%–85%draft acceptance (3.13–3.50 tok/round) on technical prose, with byte-identical greedy token parity acrossMTP=0, 1, 2, 3andGR8_PTAB=0vsGR8_PTAB=2on bothTP=1andTP=2.- Vision tower (
GR8_QW38_VISION=1):17.0–28.2 msper image (64–96tokens) on one GB10, cosine0.9995–0.9996vs PyTorchtransformersQwen4ExpVisionModelBF16 across square, landscape, and portrait grids.
What is in this repository
| content | notes |
|---|---|
experts/exlr8-layer-LLL.kK.safetensors | routed (0..511) and shared (512) expert trellis halves for layer LLL (000-047) at width K (2, 3, 4) |
experts/exlr8-layer-LLL.index.safetensors | index, side data and checksums for layer LLL (000-047) |
dense/exlr8-dense.safetensors | all BF16 dense projections, GDN/QSA attention weights, norms, hyper-connections, routers and shared experts (000-047, 7.35 GB) |
dense/exlr8-vocab.safetensors | untied BF16 token embedding (embed_tokens), language-model head (lm_head) and final hyper-connection mixer (2.54 GB) |
dense/exlr8-mtp.safetensors | BF16 Layer-48 MTP drafter weights (5.21 GB) |
dense/vision-bf16.safetensors | unquantized BF16 27-layer vision tower (333 model.visual.* tensors, 897.9 MB; opt-in via GR8_QW38_VISION=1) |
drafter/dflash.q4_0.pack | Q4_0 DFlash parallel block speculative drafter (523.8 MB, auto-discovered by gr8 when GR8_QW38_DFL=1) |
ple/exlr8-ple-L001.bin, exlr8-ple-L001.json | Layer-1 Per-Layer Embedding (PLE) BF16 NVMe rowstore (320,001,536 × 160 BF16 = 102.40 GB, 4 KiB-aligned for O_DIRECT) |
config.json, generation_config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja, preprocessor_config.json, vocab.json, merges.txt | the base model's, unchanged |
manifests/exlr8-manifest-bit200.json, -bit300.json, -bit400.json | uniform K2, K3 and K4 manifests across all 48 MoE layers |
index-slices/tp<N>/k<K>/rank<r>.safetensors | what rank r of TP=N needs at width K, for TP=1..4 and K=2..4 (see Index slices) |
hashes/ | a SHA-256 sidecar (<sha256> <bytes>) for every safetensors, drafter pack, manifest, PLE and root metadata file |
assets/card.json, assets/kl-mean.png, assets/kl-median.png, tools/card.py | full-vocabulary KL benchmark measurements and reproducible chart/table generator |
expert-build-summary.json | per layer: experts, widths, and each file's size and SHA-256 |
Dense matrices by type:
| matrices | encoding |
|---|---|
GDN projections (in_proj_qkv, in_proj_z, in_proj_a, in_proj_b, out_proj, conv1d), full GQA projections (q/k/v/o_proj), QSA indexer (index_qk_proj), shared experts, hyper-connections, routers, norms | BF16, as shipped (gr8 optionally quantizes dense decode matrices to block-32 FP8 on load via GR8_QW38_DENSE_FP8=1) |
token embedding, lm_head, Layer-48 MTP drafter, 27-layer vision tower (model.visual.*), Layer-1 PLE n-gram table | BF16, as shipped |
DFlash speculative drafter (drafter/dflash.q4_0.pack) | Q4_0 packed weights (523.8 MB), lossless target verification |
Loading
The files follow the exlr8 v2 layout in the GLM-5.3 card's Loader section, with Qwen3.8-Flash-Next's shapes:
- Hidden size
2560and expert intermediate size640, so each projection has5halves of128channels (NH = 5). A gate or up half is2560 × 128(k16 = 0..159), a down half is128 × 2560(b = 0..19), and each projection carries20block scales (blockisF16 [513, 3, 20]). A half at width K is40,960 × Kbytes (81,920B at K2,122,880B at K3,163,840B at K4). 512routed experts (0..511). The shared expert is stored as expert512(following the routed experts) in the trellis files and also carried in BF16 indense/exlr8-dense.safetensors.- Every layer (
0..47) and every width (K2,K3,K4) uses thepmcgxcodebook (trellis.{gate,up,down}.pmcgxandshared.trellis.{gate,up,down}.pmcgx), 64 KiB-aligned. - Tensor names in
dense/keep the upstream prefixmodel.language_model.layers.(andmtp.for the MTP layer,model.visual.for the vision tower). - The sharding rule at
TP=Nplaces halfh(0..4) of experte(0..512) in layerL(0..47) on rank(5e + h + L) mod N. ple/exlr8-ple-L001.binconcatenates the 128 upstreamngram_embedding.shard_*BF16 tables in shard order (0..127,320,001,536rows ×160BF16 =320bytes/row, padded to a 4 KiB boundary forO_DIRECTreads).drafter/dflash.q4_0.pack(523,766,397bytes, SHA-25671bdc71011657ef349131ab25b8caf3aa6c45524d996594094e0544a5adcae88) is fetched alongsidedense/andple/bygr8and auto-loaded on startup whenGR8_QW38_DFL=1(the default). SetGR8_QW38_DFL=0(orGR8_QW38_DFL_PACK=0) to disable.
Index slices
index-slices/tp<N>/k<K>/rank<r>.safetensors holds, for TP size N (1..4), width K (2..4) and rank r, every
half that rank owns under (5e + h + L) mod N, so a rank can fetch and load its halves without downloading the full
layer index files. Per layer L000..L047: units is I16 [U, 2], offset is I64 [U, 3], checksum is
U64 [U, 3], chan is F16 [U, 3, 128], block is F16 [513, 3, 20] (shared expert at row 512) and signs is
I8 [2, 2560].
Identifying the weights
The weight set ID names one exact set of weight files: the SHA-256 of the lines <path> <size> <sha256>, one per
weight file (dense/*, experts/* and ple/*, sorted by path, each line ending in a newline). This release's ID is
867c001a5358e0a1c74c86aab1dbefc9cf607b71a9e7ffd2a5bbf7fee77fd3d4. Every manifest in manifests/ and expert-build-summary.json carries it as set_id.
Provenance
Built from Qwen/Qwen3.8-Flash-Next at revision
812d96e10a0dd82b69d749e68693698cf6c36daa. The configuration, tokenizer, chat template, preprocessor config,
vocabulary and merge files are that revision's, byte for byte.
All 48 × 513 = 24,624 routed and shared expert pieces were audited against the upstream BF16 checkpoint before
publication, and the dense, vocabulary, MTP, vision tower (333 model.visual.* tensors from
model-00001-of-00131.safetensors) and PLE rowstore files are copied byte for byte in BF16 from the same revision.
Calibration
Encoded with Hessian-aware (LDLQ) rounding (qwen38fn-calib-v1) using the pmcgx E4M3 trellis codebook with
refinement. The calibration text, activations and Hessians are not part of this repository.
The format's three exllamav3-derived primitives (the trellis codebook structure, the 128×128 Hadamard matrix and the tile packing order) are taken from exllamav3 (MIT).
Intended use and limitations
- Serving Qwen3.8-Flash-Next (text and image-text-to-text) on GB10-class devices at
TP=1toTP=4. - Uniform-width manifests in v0.3:
bit200,bit300andbit400assign a uniform width to all routed experts; KL-tuned mixed-width manifests can be added later without changing the underlying weight files. - Not for training. Dense projections, routers, norms, vocabulary, MTP, vision tower and PLE keep their shipped BF16 precision.
Licence
Qwen3.8-Flash-Next is released by Qwen under the Qwen Community License 1.0, and this quantization stays under it: see LICENSE.
Acknowledgements
exllamav3 made this possible through their original research on the EXL3 format.
Built on Qwen's Qwen3.8-Flash-Next. The encoder and the format's primitives are derived from exllamav3 (MIT).
Changelog
2026-11-25: v0.3
- Added the Q4_0 DFlash parallel block speculative drafter (
drafter/dflash.q4_0.pack,523.8 MB) and SHA-256 sidecar (hashes/drafter/dflash.q4_0.pack.sha256), auto-discovered bygr8with zero extra flags. - Added verified 1× DGX Spark (
TP=1) full native 256K context throughput, 246K needle recall, greedy parity (8/8), and Kindling AI RealMark (RIPAL 1,780.7 A) benchmarks acrossbit300(6 × 262K) andbit400(4 × 262Khybrid and5 × 262KNO_MTP=1). - All expert, index-slice, dense, vocab, MTP, vision, and PLE files are byte-identical to
v0.2(set_idunchanged).
2026-11-23: v0.2
- Added the unquantized BF16 vision tower (
dense/vision-bf16.safetensors,333model.visual.*tensors,897.9 MB) andpreprocessor_config.jsonwith SHA-256 sidecars for multimodal serving (GR8_QW38_VISION=1). - Added full-vocabulary
float64KL divergence benchmarks against BF16 (assets/card.json,assets/kl-mean.png,assets/kl-median.png,tools/card.py) acrossbit200,bit300andbit400. - Updated
set_idto867c001a5358e0a1c74c86aab1dbefc9cf607b71a9e7ffd2a5bbf7fee77fd3d4inmanifests/andexpert-build-summary.json. All expert, slice, dense text, vocab, MTP and PLE files are unchanged fromv0.1.
2026-11-22: v0.1
- Initial release: routed and shared experts of layers
0-47in thepmcgxE4M3 codebook at K2, K3 and K4; BF16 dense, vocabulary and Layer-48 MTP files; Layer-1 PLE NVMe rowstore (ple/exlr8-ple-L001.bin); uniformbit200,bit300andbit400manifests;TP=1..4index slices; SHA-256 sidecars (hashes/) andexpert-build-summary.json.