Qwen3.8-Flash-Next-MTP-HSM

Drop-in 4-step Hidden State Mixing (HSM) self-distilled Multi-Token Prediction (MTP) draft block for Qwen3.8-Flash-Next in Strata, keeping the exact original 31 mtp.* tensors (5.214 GB BF16) and full 40,525-token English draft vocabulary (draft_vocab_en.bin).

Unlike dense-only MTP tunes, this release updates both the shared dense layers (88.9M params) and all 512 routed experts (rank-16 LoRA merged losslessly back into BF16 and re-packed cleanly to native IQ4_NL, plus a Q2_0 pack for 12 GiB cards), trained directly against live Strata 0.1.70 IQ3_S residual states (final_R).

Contents & Checksums

Path Size Format SHA-256
rt-iq4_nl/dense.bin 116,099,072 Runtime dense pack (Q8_0/BF16/F32) 542dd50fa7be14d8f306ae211e385dc123f2ccd9a26dd7dd1e82a905922fc72c
rt-iq4_nl/dense.txt 1,880 Runtime dense header 8773c81ebb0986e37fe94a8a9933e87be48b1fabc6889a0106bcdab179d1c2ac
rt-iq4_nl/experts.bin 1,415,577,600 Native IQ4_NL routed experts (512 experts) 4d399a9af7cc1a8c79a563a3d0d69987cdc4c108e035cfc93cab08511c30c5c6
rt-iq4_nl/experts.txt 95 Native IQ4_NL expert metadata 09d45d0b6f6b4235e834ecc5cc978411f2bd388d6681570feb517cf887b77307
rt-iq4_nl/draft_vocab_en.bin 162,100 Unmodified 40,525-token English draft vocab 369151522226a5edaa5f12cfd1e2ae7db8f4fbdbd222f3dcf327dced9597fb25
mtp-iq4_nl.gguf 1,596,806,048 Packed IQ4_NL MTP GGUF b6b3c95ad0e3acd610cf86bd4a29d85b2172a02360f1e71d60af59eef0bb884a
mtp-iq4_nl.gguf.report.json 3,759 Per-tensor packing report 86f4007a0c2e547482cfed494a79120c8ab97d38a170f1acc82f355fed77fc60
rt-q2_0/dense.bin 116,099,072 Runtime dense pack (byte-identical to rt-iq4_nl/dense.bin) 542dd50fa7be14d8f306ae211e385dc123f2ccd9a26dd7dd1e82a905922fc72c
rt-q2_0/dense.txt 1,880 Runtime dense header 8773c81ebb0986e37fe94a8a9933e87be48b1fabc6889a0106bcdab179d1c2ac
rt-q2_0/experts.bin 707,788,800 Q2_0 routed experts (512 experts, legacy rt/ layout, no experts.txt) f133f7582f2a102e87f3b538d7b544fe3b43f667d28a1638c8485b8e50c4ebdd
rt-q2_0/draft_vocab_en.bin 162,100 Unmodified 40,525-token English draft vocab 369151522226a5edaa5f12cfd1e2ae7db8f4fbdbd222f3dcf327dced9597fb25
mtp-q2_0.gguf 889,017,216 Packed Q2_0 MTP GGUF d83e4b4f04dec4253caab48793a7a1ff0bb69ed263004431721c337547c1f336
mtp-q2_0.gguf.report.json 3,754 Per-tensor packing report fe5b17fb8c67bb8597554750011d9c8f16c5dbba72093f0803ca765e0288cdb0
bf16/ 5.214 GB All 31 BF16/F32 tensors + mtp-manifest.json Source weights for tools/mtp_pack.py (q2_0, iq4_nl, q8_0)

(Note: original stock rt-iq4_nl/dense.bin SHA-256 is c724dc0b0822ada5d2977bf5bde821605feabaa64ea2e0045b67ca656329070a.)

Drop-in Usage in Strata

To test side-by-side without replacing your default mtp folder:

hf download stuchapin/Qwen3.8-Flash-Next-MTP-HSM --include "rt-iq4_nl/*" --local-dir ./mtp-hsm
# Pass directly to Strata:
# --mtp ./mtp-hsm/rt-iq4_nl --mtp-draft-vocab ./mtp-hsm/rt-iq4_nl/draft_vocab_en.bin

For 12 GiB cards running partial offload, use the Q2_0 pack instead (see the 12 GiB section below):

hf download stuchapin/Qwen3.8-Flash-Next-MTP-HSM --include "rt-q2_0/*" --local-dir ./mtp-hsm
# --mtp ./mtp-hsm/rt-q2_0 --mtp-draft-vocab ./mtp-hsm/rt-q2_0/draft_vocab_en.bin

To pack a different expert format (e.g. q2_0 or q8_0) from the BF16 source weights:

hf download stuchapin/Qwen3.8-Flash-Next-MTP-HSM --include "bf16/*" --local-dir ./mtp-hsm
python tools/mtp_pack.py --src ./mtp-hsm/bf16 --experts q8_0 --out ./mtp-q8_0.gguf
python tools/mtp_rt.py --gguf ./mtp-q8_0.gguf --out ./rt-q8_0

Method Summary

  1. Parity verification: Verified a PyTorch replica (Qwen38TargetHead + Qwen38MTPModel) against live Strata 0.1.70 IQ3_S: 24/24 (100%) target head top-1 match (mean cosine 0.999979, KL 0.000071) and 20/20 (100%) 4-step MTP drafted token parity.
  2. Teacher trace capture: Captured 4,626,937 BF16 final_R rows (~94.9 GB) from Vemloir/Qwen3.8-Flash-Next-traces (703 train / 37 val sessions; 84.09% of assistant tokens covered by draft_vocab_en.bin).
  3. 4-step unrolled HSM training: Initialized from stock Qwen3.8-Flash-Next MTP weights, trained 146.6M parameters (88.9M dense + r=16 LoRA on all 512 routed experts) over 2,560-token context windows across 600 optimizer steps (2x RTX 3090, lr=1.0e-4 cosine decay, smooth alpha: 0.5 -> 1.0 HSM curriculum, tgt_temp=0.85, hard_ce_weight=0.15, step_weights=[0.8, 1.0, 1.2, 1.3]), and merged LoRA weights losslessly back to BF16.

Benchmarks (Same-Rig A/B on Strata 0.1.70)

  • Hardware: 2x NVIDIA GeForce RTX 3090 (24 GiB each, --layer-split 25), Intel Core i9-9920X, 128 GB RAM, Windows 10, CUDA 13.5, driver 621.24.
  • Base model & flags: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S, --kv k8v4 --kv-resident 32768 --max-context 131072 --spec 4 --spec-min-p 0.5 (STRATA_SPLIT_MTP_BATCH=1, STRATA_HC_Q8=1, STRATA_ATTN_DAILY=1, etc. β€” identical config for both arms, only --mtp changed).

Held-out Validation (62,254 anchors across 37 unseen traces)

Metric Stock MTP MTP-HSM (best05_bf16) Delta
AR@1..4 (unconditional) 79.25 / 55.02 / 39.93 / 29.88% 80.79 / 56.43 / 41.32 / 31.12% +1.54 / +1.41 / +1.39 / +1.24 pts
E[acc] (unconditional) 2.0408 2.0966 +0.0558
E[draft@0.5] / E[acc@0.5] 2.8138 / 1.9183 2.5851 / 1.9270 +0.0087 accepted (with fewer wasted drafts)
Validation soft_ce (steps 1..4) 0.8751 / 3.2920 / 5.4639 / 7.3008 0.7413 / 2.6808 / 4.4457 / 5.8601 -0.13 to -1.44 nats

Live Strata 0.1.70 Inference: T=0 Screen (4 prompts x 3 reps = 12 requests)

Arm Mean Decode Prose (256t) Code (256t) Reasoning (384t) Long (2600->128t) Draft Acceptance Latency / Round
Stock daily 156.78 tok/s 147.10 142.07 146.93 191.00 1,546 / 2,204 (70.1%) 13.43 ms (2.01 tok/win)
MTP-HSM (IQ4_NL) 163.53 tok/s (+4.3%) 158.50 (+7.7%) 154.00 (+8.4%) 160.90 (+9.5%) 180.70 (-5.4%) 1,567 / 1,960 (79.9%, +9.8 pts) 12.76 ms (2.04 tok/win)

Live Strata 0.1.70 Inference: standard-v1 (T=1.0, 22 requests, custom track w/ --skip-model-hash)

Case / Metric Stock daily MTP-HSM (IQ4_NL) Delta
short decode median 155.9 tok/s (154.5–162.4, n=3) 170.2 tok/s (161.0–170.8, n=3) +14.3 tok/s (+9.2%)
prompt-4k decode median 156.3 tok/s (140.0–158.5, n=3) 152.6 tok/s (135.5–156.2, n=3) -3.7 tok/s (-2.4%)
prompt-16k decode median 132.0 tok/s (124.7–153.6, n=3) 145.7 tok/s (132.7–170.2, n=3) +13.7 tok/s (+10.4%)
Prompt speed (4k / 16k) 1,209.7 / 2,141.3 tok/s 1,214.4 / 2,150.5 tok/s unchanged
22-req draft acceptance 2,983 / 4,554 (65.5%) 3,002 / 4,008 (74.9%) +9.4 pts (546 fewer wasted drafts)
Mean round duration 15.24 ms (2.27 tok/win) 14.20 ms (2.24 tok/win) -6.8% ms/win
Sanity suite (I1-4, R1-4, T1-4) 12 / 12 pass 12 / 12 pass Exact parity (0 failures)

12 GiB cards: Q2_0 pack (community-measured)

rt-q2_0/ was packed from bf16/ with Strata 0.1.70 tools/mtp_pack.py --experts q2_0 + tools/mtp_rt.py. Its dense.bin and experts.bin are byte-identical to the build @macintog tested in Niko1221/Strata#6525 (542dd50f… / f133f758…).

Their numbers, on a single RTX 3080 Ti 12 GiB (Ubuntu, CUDA engine 0.1.69, IQ3_S, --spec 4, 45k/134k-token prompts). These were not reproduced on the 2x RTX 3090 rig above:

Pack (--spec-min-p 0.75) MTP VRAM Expert slots Decode Prefill Draft acc.
Stock Q2_0 837 MiB 2,872 80.05 tok/s 2,864.7 tok/s 75.7 %
HSM IQ4_NL 1,512 MiB 2,526 82.05 tok/s (+2.5 %) 2,737.8 tok/s (-4.4 %) 84.9 %
HSM Q2_0 837 MiB 2,872 82.41 tok/s (+2.9 %) 2,858.9 tok/s (-0.2 %) 82.5 %
  • On a 12 GiB card, Q2_0 frees 675 MiB versus IQ4_NL, keeps 346 more GPU expert slots, and avoids the IQ4_NL prefill loss.
  • They found --spec-min-p 0.65 best for HSM Q2_0: 85.34 vs 82.40 tok/s at 0.75, and +2.05 % over stock Q2_0 at 0.75 in an alternating 6-pair confirmation.
  • On 24 GiB cards, IQ4_NL remains the measured default (results above).

Limits & Notes

  • Distilled against Strata 0.1.70 IQ3_S teacher hidden states; behavior on other quantizations (UD-Q4_K_XL, IQ2_XS, etc.), single-GPU setups, --spec 2/3, or HIP/SYCL/Metal backends has not been measured yet.
  • The standard-v1 comparison above ran in custom track with --skip-model-hash, so those two runs carry "status": "nonconforming" per BENCHMARK_PROTOCOL.md.
  • Note on --spec-min-p: relaxing to 0.45 / 0.40 gave a further ~`+1%in a separateT=0 test (150.4 -> 151.5 -> 151.9 tok/s, 2.01 -> 2.11 -> 2.22 tok/win, 73.1%acc at0.40`), while GPU 1 had ~24% desktop background load.
  • License: distributed under the Qwen Community License 1.0, matching upstream Qwen/Qwen3.8-Flash-Next.
Downloads last month
67
GGUF
Model size
3B params
Architecture
qwen4exp-mtp
Hardware compatibility
Log In to add your hardware

2-bit

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for stuchapin/Qwen3.8-Flash-Next-MTP-HSM

Quantized
(745)
this model