Looping has come to Qwen3.8-Flash-Next (180B total / ~6B active MoE + 51.2B 3-gram PLE) — and it looks really good. Alexey (@superalesha) did the heavy lifting of getting gated-workspace recurrence and 1,200 SFT + 200 GSPO RLVR steps working on Qwen3.8-Flash-Next in alesha-pro/Looped-Qwen3.8-Flash-Next and Strata, and I then ran a short continual merge on top of his MIT checkpoint to fold in our readout-protected Direct-code tuning and export Apple Silicon MLX sidecars.
Keeping 100% of the base model frozen (0 GB extra base memory), the merged 268 MB adapter (132 MB BF16 on Mac MLX) jumps AIME 2025 63.3% → 86.7%, GPQA-Diamond 80.0% → 92.0%, and LiveCodeBench v6 57.5% → 80.0% in 32%–67% fewer tokens, while holding 93.9% on HumanEval+ Direct and running 557 tok/s on 1× H200 vLLM.
Quick Links & Lineage: Built directly on Alexey’s
alesha-pro/Looped-Qwen3.8-Flash-Next&Strata(@superalesha) · Merged Adapter & MacMLXSidecars:sliderforthewin/Looped-Qwen3.8-Flash-Next· Code:jasontitus/loopedqwen-next
How It Happened (The Internet Is So Cool)
- A new twist lands: Inkling-2-Mini showed that pairing recurrent middle-layer loops with native speculative decoding lets a model spend extra compute inside latent space instead of burning 25,000 Chain-of-Thought tokens.
- Retrofitting a frozen dense model: Within a couple of days, I ported and optimized that gated-workspace loop design onto frozen Qwen3.8-27B (Looped Qwen3.8-27B, followed by Looped DeepSeek-V4.1). Almost immediately,
@beamivalice(author ofsushi) pointed out Apple’s LoopCD paper (arXiv:2610.02185) and landed zero-FLOP contrastive loop decoding intomlx-serve(ddalcu/mlx-serve#1348) with@ddalcu. (Bonus lore: testing the 27B loop on “pelican riding a bicycle,”@beamivaliceaccidentally mashed3passes andω = 0.15intoω = 3.15— a21×contrastive overdrive4.15·m_T − 3.15·m_refthatRMSMatchkept from exploding into NaNs, producing a bike with three wheels!) - Alexey gets it working on
Qwen3.8-Flash-Next: Days later, Alexey (@superalesha/alesha-pro) took that gated-workspace loop design and got it working on180BQwen3.8-Flash-Next, pushing it through 1,200 SFT steps + 200 GSPO RLVR steps inalesha-pro/Looped-Qwen3.8-Flash-NextandStrata— jumping +8 points on full LiveCodeBench (+22.5 ptsat 24k) with a third fewer thinking tokens, while Apple Silicon porters running baseQwen3.8-Flash-Nextat56 tok/son a128 GBM3 Max asked: who ports the loop to Mac? - Hopping in to merge both tunes: At the same time, I had trained a readout-protected
Qwen3.8-Flash-Nextloop adapter (sft_v21_direct, freezingL40..47) that sharpened non-thinkingDirectcode (61.5%vs.55.8%Stock) + a MacMLXexporter. Because Alexey released his weights cleanly under MIT, I hopped directly onto his RLVR recurrence scaffold, ran a 24-step (~14-minute) continual merge to fold in ourDirecttuning, and got a single unified adapter that beats both individual runs.
A new model twist → open retrofit on a common model → Alexey scaling it to 180B MoE with RLVR → hopping in to merge and ship CUDA + Mac sidecars, all within a few days.
Why Qwen3.8-Flash-Next (qwen4_exp) Is Built for Looping
At first glance, looping a 180B-parameter model sounds expensive. In practice, Qwen3.8-Flash-Next is arguably an even better fit for middle-layer recurrence than a dense model:
- Only
~6Bactive parameters & single-pass51.2BPLE:Qwen3.8-Flash-Nexthas 48 layers (12macro-blocks of3 Gated DeltaNet + 1 Qwen Sparse Attention) over a 4-stream HyperConnection residual highway ([B, S, 4, 2560]=10,240dims),512routed experts (top-10+1shared), and a massive51.2B3-gram Per-Layer Embedding (PLE) table atL1. - Heavy endpoints run once; only
L16..31repeats: PreludeL0..15(includingembed_tokensand the51.2BL1PLE lookup) and CodaL32..47+lm_headexecute once per token. SettingT = 2only runs the middle 16 layers (L16..31) one extra time — adding0 GBof base weights and just~42 KB/tokenof extra hybrid cache (4sparse QSA KV layers +12fixed-size GDN recurrent states). - Fewer tokens = real wall-clock speedup: Because
T = 2compresses<think>reasoning chains by 32%–38% (andDirectcompetitive code by up to 67%) while running at556.6 tok/son1× H200vLLM(and pairing cleanly with56 tok/sApple Silicon MLX ports where memory bandwidth — not token count — is the bottleneck), end-to-end time-to-answer drops substantially while memory stays flat.
Why Naive Weight Averaging Failed — and How Continual Merging Solved It
When we benchmarked both independent adapters across all 336 paired greedy problems (Direct + 24k <think>), they showed textbook complementary strengths:
- Alexey’s
@superalesha v3(1,200SFT +200GSPO RLVR): Huge<think>reasoning wins (LCB57.5% → 80.0%–82.5%,GPQA80.0% → 90.0%,AIME 202563.3% → 80.0%,-34%tokens), but RLVR compression slightly regressed non-thinkingDirectcode (HumanEval+ Direct95.1% → 91.5%,LCB Direct5255.8% → 51.9%). - Our
SFTAdapter (sft_v21_direct, 48-step readout-protected SFT): Strongest model on hard non-thinkingDirectcompetitive programming (LCB Direct5261.5%,+5.8 ptsover Stock and+9.6 ptsoverv3) with zero pre-code prose leaks, but without 200 steps of GSPO RLVR it didn’t compress<think>chains by a third.
You can’t simply average (W_ours + W_theirs) / 2: low-rank WorkspaceEntry and CrossPassMixer factors (A, B) live in arbitrary rotated coordinate subspaces, and the two schemas normalize the 4 HyperConnection streams differently (mul_ref_rms + 16 core_exit mixers vs. rms_match + 4 layer_tap mixers).
Instead, Frozen-Scaffold Continual Merging (scripts/run_option2_continual_merge.py) gave us the best of both worlds in 24 steps (~14 minutes):
- Freeze 100% of
@superalesha’s RLVR recurrence scaffold (max_diff == 0.0):workspace_entry.*, all 16cross_pass_mixers.*,lora_pass_delta_raw, and all 9dflash_bridges.*speculative-decoding matrices stay bit-for-bit untouched. - Adapt only the readout-protected LoRA subspace (
L40..47frozen): Update CoreL16..31and CodaL32..39LoRAs + MoE router LoRAs (lora_lr = 1.2e-5) while keeping the final lexical readout macro-blockL40..47frozen beneathlm_head. - 50/50
DirectCE + Online<think>Teacher KL: Interleave verifiedDirectcode supervision (sqrtper-document CE) with online teacher-KL retention (lam_kl = 1.0) against unmodified@superalesha v3on<think>traces. Held-outDirectNLL dropped monotonically while<think>KL drift stayed locked at0.0014nats/token (0.000000</think>stop-probability shift).
Complete 4-Way Paired Scorecard (336 Problems, temperature = 0.0 Greedy)
Benchmark Suite (temperature=0.0 Greedy) | Stock Qwen3.8-Flash-Next (T=1) | Our SFT Adapter (sft_v21_direct, T=3) | @superalesha’s RLVR Adapter (v3, T=2) | Merged Adapter (ckpt_final, T=2) | Merged Paired Flips & Token Δ |
|---|---|---|---|---|---|
AIME 2025 (n=30, <think> @ 24k) | 63.3% (19/30) | — | 80.0% (24/30) | 86.7% (26/30, p=0.016) | +7/-0 vs T=1, +3/-1 vs v3; -31.5% tok (9.4k) |
GPQA-Diamond (n=50, <think> @ 24k) | 80.0% (40/50) | 86.7%* (26/30) | 90.0% (45/50) | 92.0% (46/50, p=0.031) | +6/-0 vs T=1, +1/-0 vs v3; -36.0% tok (5.8k) |
LiveCodeBench v6 (n=40, <think> @ 24k) | 57.5% (23/40) | — | 80.0%–82.5% (32–33) | 80.0% (32/40, p=0.012) | +10/-1 vs T=1, p=1.0 vs v3; -38.3% tok (9.2k) |
HumanEval+ Direct (n=164, direct @ 2k) | 95.1% (156/164) | — | 91.5% (150/164) | 93.9% (154/164, T=2,3) | +4/-0 wins over v3 (+2.4 pts); 224 tok |
LCB Medium Direct52 (n=52, direct @ 4k) | 55.8% (29/52) | 61.5% (32/52) | 51.9% (27/52) | 55.8% (29/52, T=3) / 53.8% (T=2) | 100% of v3 drop erased; -67.4% tok (531) |
Pooled <think> Suites (120 problems) | 68.3% (82/120) | — | 84.2%–85.0% (101–102) | 86.7% (104/120) | +23 wins / -1 loss vs T=1 (556.6 tok/s H200) |
Pooled All 336 Problems | 79.5% (267/336) | — | 82.7%–83.0% (278–279) | 85.1% (T=2) / 85.4% (T=3/2) | +5.9 pts over Stock T=1, +2.4 pts over v3 |
*Our sft_v21_direct GPQA guard was run on the 30-item xhigh @ 20,480 subset (Stock T=1 = 27/30 = 90.0%). Bonus debugging find: fixing Linux’s 128 KB MAX_ARG_STRLEN ([Errno 7]) via tempfile execution on huge EvalPlus assertions revealed that all models actually score +18 points higher on HumanEval+ Direct than raw python -c Linux harnesses report (156/164 Stock, 150/164 v3, 154/164 Merged — verified identically on both vLLM 0.34.0 Cutlass FP8 and PyTorch FP8).
Try It Out (CUDA vLLM, Strata, & Apple Silicon MLX)
Everything is MIT-licensed and dual-format compatible (15/15 pytest), so both sliderforthewin/Looped-Qwen3.8-Flash-Next and alesha-pro/Looped-Qwen3.8-Flash-Next work interchangeably across every tool.
1. NVIDIA GPU (vLLM 0.34+ — 557 tok/s on 1× H200 or 2× GPU)
Installing loopedqwen-next registers LoopedQwen4ExpForCausalLM and auto-downloads the Merged Adapter (T = 2) with zero environment variables required (--engram-config '{"cpu_offload": true}' streams the 51.2 GiB PLE table from pinned host RAM so 1× H200 has 10+ GiB of free KV cache):
pip install --extra-index-url https://wheels.vllm.ai/0.34.0/cu130 "vllm==0.34.0"
pip install "git+https://github.com/jasontitus/loopedqwen-next.git"
vllm serve Qwen/Qwen3.8-Flash-Next-FP8 \
--hf-overrides '{"architectures": ["LoopedQwen4ExpForCausalLM"]}' \
--engram-config '{"cpu_offload": true}' \
--gpu-memory-utilization 0.965 \
--max-num-batched-tokens 4096 \
--max-num-seqs 24 \
--max-model-len 26624
- Already running
@superalesha’sStrata?ckpt_final.safetensors+ckpt_final.json(version: 3,num_passes: 2,dflash_bridges.*intact) is a 1-line drop-in swap viaVLLM_LOOPED_CKPT.
2. Apple Silicon Mac (MLX / mlx-serve — 132 MB BF16 Sidecar, Zero PyTorch)
Pre-folded BF16 sidecar bundles (mlx/default_t2 at 131.8 MB and mlx/default_t3 at 157.1 MB) fold all pass/horizon gates, RMSNorm offsets, and (A^T, B_eff^T) LoRAs ahead of time so Mac users need zero PyTorch:
hf download sliderforthewin/Looped-Qwen3.8-Flash-Next \
--include "mlx/default_t2/*" mlx_sidecar.py \
--local-dir ./Looped-Qwen3.8-Flash-Next-MLX
Drop MlxLoopedQwen4Adapter (mlx_sidecar.py, native mlx.core) into any MLX qwen4_exp port in ~15 lines to add recurrent middle-layer passes right on top of 4-bit, STQ, or BF16 Mac weights.
Links & Credits
- Hugging Face (Merged Adapter +
sft_v21_direct+MLXSidecars):sliderforthewin/Looped-Qwen3.8-Flash-Next - GitHub (
vLLMPlugin, 2-GPU Engine, Continual-Merge Trainer, &MLXHelper):jasontitus/loopedqwen-next - Alexey’s (
@superalesha) Original RLVR Adapter &StrataEngine:alesha-pro/Looped-Qwen3.8-Flash-Next·alesha-pro/Strata - Companion Releases (
27B&552BDeepSeek-V4.1) &LoopCDmlx-servePR: Looped Qwen3.8-27B · Looped DeepSeek-V4.1 ·ddalcu/mlx-serve#1348
Huge credit and thanks to Alexey (@superalesha) for scaling looped recurrence + GSPO RLVR onto Qwen3.8-Flash-Next and releasing it under MIT, @beamivalice (sushi) and @ddalcu (mlx-serve) for LoopCD and STQ work on Apple Silicon, the Qwen Team for Qwen3.8-Flash-Next, and everyone in the open-source MLX and CUDA communities building in public.
