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 & Mac MLX Sidecars: sliderforthewin/Looped-Qwen3.8-Flash-Next · Code: jasontitus/loopedqwen-next

Better Together: Merging Open-Source Recurrent-Depth Adapters on Qwen3.8-Flash-Next

How It Happened (The Internet Is So Cool)

  1. 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.
  2. 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 of sushi) pointed out Apple’s LoopCD paper (arXiv:2610.02185) and landed zero-FLOP contrastive loop decoding into mlx-serve (ddalcu/mlx-serve#1348) with @ddalcu. (Bonus lore: testing the 27B loop on “pelican riding a bicycle,” @beamivalice accidentally mashed 3 passes and ω = 0.15 into ω = 3.15 — a 21× contrastive overdrive 4.15·m_T − 3.15·m_ref that RMSMatch kept from exploding into NaNs, producing a bike with three wheels!)
  3. 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 on 180B Qwen3.8-Flash-Next, pushing it through 1,200 SFT steps + 200 GSPO RLVR steps in alesha-pro/Looped-Qwen3.8-Flash-Next and Strata — jumping +8 points on full LiveCodeBench (+22.5 pts at 24k) with a third fewer thinking tokens, while Apple Silicon porters running base Qwen3.8-Flash-Next at 56 tok/s on a 128 GB M3 Max asked: who ports the loop to Mac?
  4. Hopping in to merge both tunes: At the same time, I had trained a readout-protected Qwen3.8-Flash-Next loop adapter (sft_v21_direct, freezing L40..47) that sharpened non-thinking Direct code (61.5% vs. 55.8% Stock) + a Mac MLX exporter. 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 our Direct tuning, 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 ~6B active parameters & single-pass 51.2B PLE: Qwen3.8-Flash-Next has 48 layers (12 macro-blocks of 3 Gated DeltaNet + 1 Qwen Sparse Attention) over a 4-stream HyperConnection residual highway ([B, S, 4, 2560] = 10,240 dims), 512 routed experts (top-10 + 1 shared), and a massive 51.2B 3-gram Per-Layer Embedding (PLE) table at L1.
  • Heavy endpoints run once; only L16..31 repeats: Prelude L0..15 (including embed_tokens and the 51.2B L1 PLE lookup) and Coda L32..47 + lm_head execute once per token. Setting T = 2 only runs the middle 16 layers (L16..31) one extra time — adding 0 GB of base weights and just ~42 KB/token of extra hybrid cache (4 sparse QSA KV layers + 12 fixed-size GDN recurrent states).
  • Fewer tokens = real wall-clock speedup: Because T = 2 compresses <think> reasoning chains by 32%–38% (and Direct competitive code by up to 67%) while running at 556.6 tok/s on 1× H200 vLLM (and pairing cleanly with 56 tok/s Apple 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,200 SFT + 200 GSPO RLVR): Huge <think> reasoning wins (LCB 57.5% → 80.0%–82.5%, GPQA 80.0% → 90.0%, AIME 2025 63.3% → 80.0%, -34% tokens), but RLVR compression slightly regressed non-thinking Direct code (HumanEval+ Direct 95.1% → 91.5%, LCB Direct52 55.8% → 51.9%).
  • Our SFT Adapter (sft_v21_direct, 48-step readout-protected SFT): Strongest model on hard non-thinking Direct competitive programming (LCB Direct52 61.5%, +5.8 pts over Stock and +9.6 pts over v3) 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):

  1. Freeze 100% of @superalesha’s RLVR recurrence scaffold (max_diff == 0.0): workspace_entry.*, all 16 cross_pass_mixers.*, lora_pass_delta_raw, and all 9 dflash_bridges.* speculative-decoding matrices stay bit-for-bit untouched.
  2. Adapt only the readout-protected LoRA subspace (L40..47 frozen): Update Core L16..31 and Coda L32..39 LoRAs + MoE router LoRAs (lora_lr = 1.2e-5) while keeping the final lexical readout macro-block L40..47 frozen beneath lm_head.
  3. 50/50 Direct CE + Online <think> Teacher KL: Interleave verified Direct code supervision (sqrt per-document CE) with online teacher-KL retention (lam_kl = 1.0) against unmodified @superalesha v3 on <think> traces. Held-out Direct NLL dropped monotonically while <think> KL drift stayed locked at 0.0014 nats/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 Problems79.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’s Strata? ckpt_final.safetensors + ckpt_final.json (version: 3, num_passes: 2, dflash_bridges.* intact) is a 1-line drop-in swap via VLLM_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.


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.