Qwen3.8-Flash-Next HyperLoop Adapters (Looped Transformer, T=2 / T=3)
Frozen-trunk recurrent-depth (Looped Transformer) adapters for
Qwen/Qwen3.8-Flash-Next (125B MoE + 51.2B PLE),
designed to run in the hyperloop edition of
aiueo52/sglang-rtxpro6000 (flash-next-fast)
and aiueo52/hyperburst-rtxpro6000 on a single
96 GB RTX PRO 6000 Blackwell GPU.
By looping the 16 middle layers (layers 16..31) T=2 or T=3 times through lightweight
CrossPassMixer + WorkspaceEntry + routing/out LoRA adapters (69.2M parameters, ~265 MB FP32
on disk, ~138 MB BF16 in VRAM, 0 extra MoE expert copies), Qwen3.8-Flash-Next shifts multi-step
reasoning into latent depth β cutting verbose <think> chains by 58β72% on coding tasks while
raising coding pass rates from 71.7% β 96.7β98.3% and finishing wall-clock 1.38β1.89Γ faster
than stock T=1. Paired with Hyperburst's real-packed RHT-256 + OCP MXFP4 KV cache
(SGLANG_QSA_PACKED_MXFP4=1), T=2 KV cache uses 29.1% less VRAM than stock FP8 T=1.
- Not a standalone model. Requires the standard RadixArk/Qwen3.8-Flash-Next-NVFP4 checkpoint (non-pro standard weights β no ThinkingCap overlay required).
- Format: Each preset ships
adapter.safetensors(854 tensors, 69,232,256 parameters, FP32, ~265 MB) plusadapter_config.json. Integrity checksums are inSHA256SUMS.txt.
Included presets (Pareto-optimal trio)
Choose the preset that fits your workload via LOOP_PRESET=synth|rlvr2|s1b2k:
| Preset | Default T |
Best for | Highlights (K=384, Real Packed MXFP4 KV) |
|---|---|---|---|
synth (default) |
2 |
Fastest concise coding & chat | Coding Think 58/60 (96.7%) in 64.0 s (1.89Γ faster than stock T=1), avg <think> β72.3% (1,157 β 320 tok), c=1 237.2 tok/s (96.5% of stock), GSM8K Direct 196/200 (MTP 4.58). |
rlvr2 |
3 |
All-around zero-weakness default | T=3: Coding Think 59/60 (98.3%, 0 wrong logic), Coding Direct 60/60 (100%), GSM8K Direct 196/200, GSM8K Think 99/100, MTP 4.59, 1.38Γ faster wall-clock. T=2: 8Γ48K VT 0.975 (7/8, exact stock parity). |
s1b2k |
3 |
Long-context T=3 & extreme think compression |
T=3: 8Γ48K 104/104 perfect (VT 1.000 = 8/8, beats stock 0.975), GSM8K Direct 197/200 (98.5%), Coding Think 58/60 (0 wrong, median <think> 112 tok = β90.0%, 1.64Γ faster). T=2: Coding Think 59/60 (0 trunc, 68.2 s = 1.78Γ faster). |
Quick start (hyperloop edition)
# 1. Clone the fork and assemble FlashInfer once
git clone --branch flash-next-fast https://github.com/aiueo52/sglang-rtxpro6000.git
cd sglang-rtxpro6000
python3 -m pip install flashinfer-python==0.6.17 ninja
python3 tools/assemble_flashinfer.py
# 2. Download all 3 HyperLoop adapters (~800 MB total)
hf download aiueo52/Qwen3.8-Flash-Next-HyperLoop --local-dir ./hyperloop-adapters
# 3. Serve hyperloop (non-pro standard RadixArk NVFP4 base)
export TARGET_MODEL=/path/to/Qwen3.8-Flash-Next-NVFP4
export LOOP_ADAPTER_DIR=./hyperloop-adapters
# Default preset: synth (T=2, fastest & -72% shorter thinking)
CONC=4 FLASH_NEXT_EDITION=hyperloop bash serve-fast.sh wa
# Or switch presets with one env var:
CONC=4 FLASH_NEXT_EDITION=hyperloop LOOP_PRESET=rlvr2 bash serve-fast.sh wa # T=3 all-around best
CONC=4 FLASH_NEXT_EDITION=hyperloop LOOP_PRESET=s1b2k bash serve-fast.sh wa # T=3 8x48K 104/104
You can also pass a single file directly via SGLANG_LOOPED_CKPT=/path/to/adapter.safetensors and
override pass count with SGLANG_LOOPED_NUM_PASSES=2 or 3.
Architecture & training method
Adapted from jasontitus/loopedqwen (MIT) to the 125B
Qwen4Exp (3:1 GDN + QSA sparse attention + 512-expert MoE + 51.2B PLE) architecture and trained
entirely on a single RTX PRO 6000 Blackwell (96 GB) via MLX-CUDA13 on the frozen NVFP4 base:
- Frozen trunk (
0base weights modified):layers 0..15(stem) run once,layers 16..31(core) repeatTtimes (T=2β 64 virtual layers,T=3β 80 virtual layers) with distinct virtual KV/GDN cache slots per pass, andlayers 32..47(coda) run once. - Trainable adapters (69.2M params):
WorkspaceEntry(rank 128), per-layerCrossPassMixer(rank 128), routing/out LoRA (rank 16) on core layers (qkv_proj,o_proj,in_proj_qkvz,in_proj_ba,out_proj, MoE routergate), and rank-16 coda LoRA on the final 8 layers. - Training stages:
- Stage 1 (
stage1_1536): 400 steps atseq_len=1536,T=3deep supervision + sparse top-K KL anchor toT=1+ frozen QSA MTP alignment + retention bank. rlvr2(Stage 2 RLVR): Warm-started from Stage 1; 260 prompts ΓG=6on-policysglang-looprollouts verified via isolated Python unit tests and exact math/logic grading (depth_wins=57/59,concise_wins=115, 0 over-length) + 260 steps clipped GSPO + strongT=1KL (0.20) +</think>stop-guard + frozen QSA MTP loss + 20% retention.s1b2k(Stage 1B 2K): Warm-started from Stage 1; 400 continuation steps atseq_len=2048(3,165items,lam_kl=0.18).synth(Stage 1B 2K β Stage 2 RLVR v2): Warm-started froms1b2k; 300 prompts ΓG=6balancedT=2/T=3on-policy rollouts (depth_wins=62/64,concise_wins=114) + 280 steps clipped GSPO (lam_kl=0.24,lam_mtp=0.22, 25% retention).
- Stage 1 (
Benchmark results
All 5 arms were evaluated on the exact same machine (RTX PRO 6000 Max-Q 96 GB), same K=384
minigun harness, same real-packed RHT-256 + OCP MXFP4 KV cache, and identical greedy decoding
(CONC=8, zero test-set contamination). Note: tok/s below reflects the K=384 evaluation harness;
in hyperloop (CONC=4, K=512 all experts resident + OEA), single-stream tok/s is substantially
higher.
| Benchmark | Stock T=1 |
rlvr2 T=2 / T=3 |
s1b2k T=2 / T=3 |
synth T=2 / T=3 |
|---|---|---|---|---|
c=1 smoke (tok/s, K384) |
245.8 | 230.2 / 183.6 | 225.0 / 192.2 | 237.2 / 186.6 |
| Coding Think (60) | 43/60 (71.7%) | 52 / 59 (98.3%, 0 wrong) | 59 (0 trunc) / 58 (0 wrong) | 58 (96.7%) / 54 (90.0%) |
β avg <think> tok (median) |
1,157 (1,116) | 540 (375) / 490 (393) | 360 (311) / 348 (112) | 320 (239, β72.3%) / 361 (238) |
β wall time (vs Stock T=1) |
121.1 s (1.00Γ) | 79.3 s / 87.7 s (1.38Γ) | 68.2 s (1.78Γ) / 73.8 s (1.64Γ) | 64.0 s (1.89Γ) / 79.4 s |
| Coding Direct (60) | 52/60 (86.7%) | 60 / 60 (100%) | 58 / 57 | 58 / 60 (100%) |
| GSM8K Direct (200) | 195/200 (97.5%) | 196 / 196 (98.0%) | 194 / 197 (98.5%) | 196 / 196 (98.0%) |
| GSM8K Think (100) | 99/100 (99.0%) | 98 / 99 (99.0%) | 93 / 97 | 96 / 95 |
| 8Γ48K Long-Context MK / MV / NT | 64 / 1.00 / 24 | 64 / 1.00 / 24 | 64 / 1.00 / 24 | 64 / 1.00 / 24 |
| 8Γ48K Long-Context VT (8) | 0.975 (7/8) | 0.975 (7/8) / 0.900 (6/8) | 0.750 (2/8) / 1.000 (8/8) | 0.775 (3/8) / 0.925 (7/8) |
| MTP accept len (Coding Think) | 3.08 | 4.10 / 4.59 | 3.05 / 3.05 | 3.12 / 4.10 |
- 250K needle check (Stage 1 base, MXFP4 KV, 0 retracts):
T=2MK7/8, MV1.000, VT1.000(63.8 s);T=3MK8/8, MV1.000, VT0.800(72.7 s).
Training data & provenance
No raw dataset text is redistributed in this repository. All training prompts and traces came from public datasets with permissive licenses (zero overlap with GSM8K test or held-out coding/long-context evals):
| Source | Use | License | Revision |
|---|---|---|---|
| Jackrong/Qwen3.8-Flash-Next-Distill | Stage 1 / 1B SFT (2,524 items; teacher: Qwen3.8-Flash-Next; upstream seeds: nvidia/Nemotron-SFT-Competitive-Programming-v2, Jackrong/Competitive-Programming-python-blend, nvidia/OpenCodeReasoning) |
Apache-2.0 / CC-BY-4.0 / ODC-BY / MIT / BSD-2/3 | 6e4c0286104b9f49e31be1f8dc4e981e424685f2 |
| meromorphic/Qwen3.8-27B-Distillation-40K | Stage 1 / 1B SFT (641 math/logic items; teacher: Qwen3.8-27B, created by Faunix) |
Apache-2.0 | f607679574d4e0af9563a288851a9b8447af9444 |
openai/gsm8k (train split only) |
Retention & RLVR math verification (150 hard train items; verified 0 overlap with test) |
MIT | 740312add88f781978c0658806c59bc2815b9866 |
| jasontitus/loopedqwen | Synthetic verifiable coding/bugfix/latent tasks & Looped adapter architecture | MIT (Copyright (c) 2026 Jason Titus) |
main |
On-policy Qwen3.8-Flash-Next-NVFP4 rollouts |
Stage 2 RLVR (rlvr2: 260Γ6, synth: 300Γ6) verified by isolated unit tests |
Qwen Community License 1.0 (base outputs) | local NVFP4 |
Limits & caveats
- Pareto trade-offs between presets:
synthis tuned forT=2speed and ultra-concise thinking (β72%); runningsynthatT=3slightly over-compresses<think>on hard coding/math (54/60Coding Think,95/100GSM8K Think), and itsT=28Γ48K variable-tracking (VT) score is0.775vs stock0.975.- Use
rlvr2when you want zero regressions across every domain (T=3Coding Think59/60, Direct60/60, GSM8K99/100;T=28Γ48K VT0.975). - Use
s1b2k(T=3) when you want8Γ48K VT 1.000 (8/8)alongsideβ70%shorter thinking.
- Base weight match: Trained and evaluated on the standard
RadixArk/Qwen3.8-Flash-Next-NVFP4base (non-pro). Loading on ThinkingCap or other fine-tuned overlays is experimental and untested quantitatively. - Measured on one GPU & engine: All numbers were measured on one RTX PRO 6000 Blackwell Max-Q (96 GB) using the Hyperburst SGLang build. Training used a local private MTP head for the auxiliary frozen-MTP loss term; no private MTP head or token map is bundled here.
License
These adapter weights are derivatives of Qwen/Qwen3.8-Flash-Next
and are released under the Qwen Community License 1.0 (LICENSE), including its notice (NOTICE).
Under that license, if you run a Model-as-a-Service or AI Work Assistant business, you need a
separate license from Qwen for commercial use (internal use is exempt). Products with more than
100M monthly active users or US$20M monthly revenue must display the model name.
Architecture adapted from jasontitus/loopedqwen (MIT). Much of the implementation, training, and benchmarking work was performed with AI coding assistants under the author's direction; all numbers were measured on the author's machine.
Model tree for aiueo52/Qwen3.8-Flash-Next-HyperLoop
Base model
Qwen/Qwen3.8-Flash-Next