Qwen 4 is looped!
We just wrapped the middle 16 layers (L12..27) of Qwen/Qwen4-35B-A3B ( 35B total / 3B active MoE over a 4-stream HyperConnection residual highway + 10.2B 3-gram PLE at L2) in our Open-Channel recurrent-depth loop — and the results are our cleanest demonstration of latent-space test-time compute yet:
+18.3 pponLiveCodeBench v6(48.3% → 66.7%,+14 / -3paired wins/losses) — and**+12.1 pp** on the 33-problemLCB Hardslice (18.2% → 30.3%)+6.7 pponAIME 2024(86.7% → 93.3%,+2 / -0) and**+3.3 pponAIME 2025(86.7% → 90.0%,+1 / -0) in13.9%fewer tokens** (9,672 → 8,326)+3.3 pponBFCL Tool Calling(90.0% → 93.3%,+4 / -0attemp = 0) and**98.8%(100.0%withLoopCD) onAgentic State Planner**- Zero regressions across all 8 suites (
681problems):****7wins,1exact tie,0regressions — lifting the 8-suite Macro Average**+5.7 pp(75.4% → 81.1%)** and solving**+24net additional problems** (561 → 585 / 681) - Zero active LoRA weights (
22.8 MBtotal): The winning checkpoint (ckpt_best, Step 40) comes from Open-Channel Phase A (lora_frozen = True,lora_b == 0.0everywhere).100% ofQwen4-35B-A3B’s base weights are untouched — only the 4-streamHCWorkspaceEntryand 4 QSA boundaryHCCrossPassMixers(L15, 19, 23, 27) are active.
Links & Downloads (MIT):
Hugging Face Weights & sushi / Hibana Sidecars: https://huggingface.co/sliderforthewin/Looped-Qwen4-35B-A3B (sliderforthewin/Looped-Qwen4-35B-A3B)
GitHub — Trainer, vLLM Plugin, & Scorecard: https://github.com/jasontitus/loopedqwen (jasontitus/loopedqwen · docs/SCORECARD_QWEN4_35B.md)
GitHub — sushi (qwen4_moe) Guide & Sidecar Exporter: https://github.com/jasontitus/loopedqwen-next (docs/SUSHI_QWEN4_35B.md)
1. Complete 8-Suite (681-Problem) Scorecard vs. Stock Qwen4-35B-A3B# #
Every arm was evaluated identically on Qwen/Qwen4-35B-A3B-FP8 (vLLM 0.19.1rc1, symmetric stop-only grading, max_tokens = 28,672 on coding & math reasoning suites, 0% cap on tool/agentic/HumanEval suites):
Benchmark ( n ) |
Stock T=1 |
d=1 Control |
Looped T=2 |
T=2 + LoopCD |
Looped T=3 |
T=3 + LoopCD |
Δ ( T=3 - T=1 ) |
|---|---|---|---|---|---|---|---|
LiveCodeBench v6 ( 60 ) |
48.33% (29/60 ) |
40.00% (24/60 ) |
48.33% (29/60 ) |
55.00% (33/60 ) |
66.67% (40/60) |
65.00% (39/60 ,-14.5% tok) |
+18.33 pp (+14/-3 ) |
LCB Hard (DSV4.1-33) ( 33 ) |
18.18% (6/33 ) |
30.30% (10/33 ) |
24.24% (8/33 ) |
30.30% (10/33 ) |
30.30% (10/33 ) |
33.33% (11/33) |
+12.12 pp (+15.15 w/ CD) |
AIME 2024 ( 30 ) |
86.67% (26/30 ) |
86.67% (26/30 ) |
90.00% (27/30 ) |
86.67% (26/30 ) |
93.33% (28/30) |
90.00% (27/30 ) |
+6.67 pp (+2/-0 ) |
AIME 2025 ( 30 ) |
86.67% (26/30 ) |
93.33% (28/30 ) |
86.67% (26/30 ) |
90.00% (27/30 ) |
90.00% (27/30, -13.9% tok) |
90.00% (27/30 ) |
+3.33 pp (+1/-0 ) |
BFCL Tool Calling ( 120 ) |
90.00% (108/120 ) |
90.00% (108/120 ) |
90.83% (109/120 ) |
90.83% (109/120 ) |
93.33% (112/120) |
92.50% (111/120 ) |
+3.33 pp (+4/-0 ) |
Agentic State Planner ( 80 ) |
97.50% (78/80 ) |
100.00% (80/80 ) |
95.00% (76/80 ) |
100.00% (80/80) |
98.75% (79/80 ) |
100.00% (80/80) |
+1.25 pp (+2.50 w/ CD) |
HumanEval+ Direct ( 164 ) |
77.44% (127/164 ) |
78.05% (128/164 ) |
78.05% (128/164 ) |
77.44% (127/164 ) |
78.05% (128/164) |
78.05% (128/164) |
+0.61 pp |
HumanEvalFix Think ( 164 ) |
98.17% (161/164 ) |
95.73% (157/164 ) |
98.78% (162/164) |
97.56% (160/164 ) |
98.17% (161/164 ) |
98.17% (161/164 ) |
0.00 pp |
| 8-Suite Macro Average | 75.37% |
76.76% |
76.49% |
78.48% (+3.11 pp ) |
81.08% |
80.88% |
+5.71 pp |
Micro Total (681 Problems) |
561 / 681 |
561 / 681 |
565 / 681 |
572 / 681 |
585 / 681 (+24) |
584 / 681 (+23) |
7 Wins, 1 Tie, 0 Regressions |
Both T=3 (81.08%, 585/681) and T=3 + LoopCD (ω=0.15, 80.88%, 584/681) post 7 wins, 1 exact tie, and 0 regressions across all 8 benchmarks. Turning on LoopCD-Hidden (loop_cd_ref = "first", per_stream RMS) also lifts faster T=2 by +1.99 pp macro (76.49% → 78.48%) — jumping LiveCodeBench v6 +6.7 pp, LCB Hard 33 +6.1 pp, Agentic to 100%, and AIME 2025 to 90.0% — and pushes T=3 + LoopCD to 33.33% (+15.2 pp) on LCB Hard 33 and 100.0% (80/80) on Agentic State Planner while cutting LiveCodeBench v6 token count -14.5% vs Stock T=1.
2. The Surprise Result: Zero LoRA Weights — 100% Pure 4-Stream Recurrence# #
In our Looped Qwen3.8-27B update, we answered the “is looping just a disguised d=1 LoRA?” question by designing Open-Channel v4 training: per-stream RMS-matched workspace & cross-pass mixer gates, plus a Phase A warmup where every single layer LoRA is frozen (lora_b == 0.0) so the optimizer can only reduce loss by actually routing information across loop passes.
When we ran Open-Channel v4 SFT on Qwen4-35B-A3B, something remarkable happened:
- Held-out validation peaked at Step 40 — right inside Phase A (
0active LoRAs): Validation NLL dropped cleanly from0.16205(Stock T=1) →0.15474(T=2) →0.15450(T=3,loop_gain_t3 = +0.00755nats) while every single Core and Coda LoRABmatrix was exact0.0. Unfreezing LoRAs in Phase B (Steps 70–240) slightly overfit held-out validation (0.15450 → 0.15714), so automatic best-val checkpoint selection pickedStep 40 . d=1Control proves zero LoRA shortcut: Runningckpt_bestatd=1(loop OFF) is mathematically identical to StockQwen4-35B-A3B(108/120``+0/-0bitwise ontemp=0`` BFCL Tool Calling, and an identical561/681micro total across all 8 suites). Turning the loop ON (T=3) delivers the entire**+18.3 ppLiveCodeBench v6** (+26.7 ppoverd=1) and**+5.7 pp8-suite macro** jump.- What the
22.8 MBzero-LoRA adapter actually is: None ofQwen4-35B-A3B’s 40 layers are modified (no attention, GDN, MLP, or router LoRAs). The entire22.8 MB(~11.4MBF16 params,0.03%of 35B) consists ofjust 5 tiny between-pass bridges sitting outside the frozen layers —1HCWorkspaceEntryblender (L27 → L12) and4HCCrossPassMixers(L15, L19, L23, L27) — that teach the untouched layers how to read and refine their own prior-pass hidden state. Stripping the 342 exact-zero LoRA pairs (--strip-zero-loras,coda_lora_layers = 0) shrinks the pre-folded Apple Silicon sidecar from69.3 MBdown to**22.8 MB** and eliminates every LoRA matmul at runtime.
3. Four Model Families Looped: From 27B Dense to 552B Frontier MoE# #
With Qwen4-35B-A3B live, we have now retrofitted recurrent depth onto four distinct open-weights model families spanning 20× in total parameter scale — Dense, compact hybrid MoE, mid-frontier hybrid MoE, and a 552B frontier MoE — all with 0 GB of added base weights:
| Model Family | Architecture & Looped Core | LiveCodeBench v6 ( Stock → Looped ) |
Olympiad Math / Hard Slice ( Stock → Looped ) |
Runtime Support |
|---|---|---|---|---|
Qwen3.8-27B |
Dense 27B (64L , CoreL24..39 ) |
60.0% → 80.0% (+20.0 pp ) |
AIME 2025: 70.0% → 90.0% (+20.0 pp ) |
vLLM ,mlx-serve |
Qwen4-35B-A3B(This Post) |
Hybrid MoE 35B-A3B (40L , CoreL12..27 ,0 LoRAs ) |
48.3% → 66.7% (+18.3 pp ) |
AIME 2024: 86.7% → 93.3% (+6.7 pp ) |
vLLM ,sushi , Hibana |
Qwen3.8-Flash-Next |
Hybrid MoE 180B-A6B (48L , CoreL16..31 ) |
57.5% → 80.0% (+22.5 pp ) |
AIME 2025: 63.3% → 86.7% (+23.3 pp ) |
vLLM ,sushi ,MLX ,Strata |
DeepSeek-V4.1-Flash |
Frontier MoE 552B (40L , CoreL24..35 ) |
75.8% → 84.8% (+9.1 pp ) |
13 Hardest LCB: 61.5% → 84.6% (+23.1 pp ) |
vLLM ,sushi (1.75-bit Mac rescue!) |
Every single architecture — whether dense or sparse, 27B or 552B, with LoRAs or with zero LoRAs — gains +9 to +23 percentage points on hard competitive coding when given 2–3 passes through its middle layers.
Methodology note: Each row compares a model strictly against its own unmodified Stock T=1 baseline under identical evaluation caps (28k on Qwen3.8-27B & Qwen4-35B-A3B n=60; 24k on Qwen3.8-Flash-Next n=40; 32k on DeepSeek-V4.1-Flash n=33 Medium+Hard).
4. Try It Out (sushi on Apple Silicon or vLLM on 1× H100)# #
Apple Silicon (beamivalice/sushi Cooler Pack — 22.8 MB Drop-In Sidecar)#
We audited beamivalice/sushi ( HEAD @ 35dc854) and verified our sushi/default_t3 and sushi/default_t2 bundles directly against src/qwen4/qwen4_loop.zig (12/12 zig test passing):
hf download sliderforthewin/Looped-Qwen4-35B-A3B \
--include "sushi/default_t3/*" \
--local-dir ./qwen4-35b-loop
sushi serve --model <path-to-Qwen4-35B-A3B-STQ-or-BF16-pack> \
--loop ./qwen4-35b-loop/sushi/default_t3 \
--loop-depth 3
Two sushi notes: (1) Looped decoding runs on Sushi Cooler packs only (STQ or BF16 — qwen4_cooler.zig intentionally rejects legacy affine-EXL3 / MXFP4 packs). (2) In sushi v1.9.1, sushi/default_t3 runs the dominant gs_tanh * (s_hat - af) (s_hat_mode: "rms_match") recurrence and LoopCD-Hidden bit-exact today; full v4 delta_rms_match parity on the smaller low-rank gm/ gamma delta terms (used in our vLLM benchmarks above) is shipped in mlx/default_t3 and documented in the ~25-line loop_ops.zig spec at docs/SUSHI_QWEN4_35B.md.
NVIDIA Hopper (1× 80 GB H100 — 1,120–1,360 tok/s at T=3)#
Requires a vLLM build with qwen4_moe support (e.g., vllm/vllm-openai:qwen4 / vllm 0.19.1rc1+) plus our zero-fork plugin. By registering LoopedQwen4MoeForCausalLM in vLLM’s Engram UVA CPU-offload map (+20.5 GB freed by streaming the L2 PLE table from pinned host RAM), enabling FP8 QSA indexer caches, and turning on FULL_DECODE_ONLY CUDAGraphs (docs/QWEN4_ENGINE_OPTIMIZATIONS.md), a single 80 GB H100 serves Looped-Qwen4-35B-A3B at 1,121 tok/s (T=3) and 1,676 tok/s (T=2):
pip install "git+https://github.com/jasontitus/loopedqwen.git#subdirectory=vllm_looped_qwen38"
VLLM_LOOPED_CKPT="sliderforthewin/Looped-Qwen4-35B-A3B:ckpt_best_alesha_v3.safetensors" \
VLLM_LOOPED_NUM_PASSES=3 \
VLLM_LOOPED_CD_OMEGA=0.0 \
VLLM_LOOPED_CD_REF=first \
vllm serve Qwen/Qwen4-35B-A3B-FP8 \
--trust-remote-code \
--dtype bfloat16 \
--kv-cache-dtype fp8 \
--indexer-kv-dtype fp8 \
--engram-config '{"cpu_offload": true}' \
--compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' \
--hf-overrides '{"architectures":["LoopedQwen4MoeForCausalLM"]}'
Links & Resources# #
- Hugging Face (Adapter Weights +
sushi/ Hibana Sidecars, MIT):https://huggingface.co/sliderforthewin/Looped-Qwen4-35B-A3B - GitHub — Trainer,
vLLMPlugin, Engine Optimizations, & Scorecard:https://github.com/jasontitus/loopedqwen - GitHub —
sushi(qwen4_moe) Sidecar Exporter &v4delta_rms_matchSpec:https://github.com/jasontitus/loopedqwen-next/blob/main/docs/SUSHI_QWEN4_35B.md - Full 6-Arm (
48/48) Evaluation Scorecard:https://github.com/jasontitus/loopedqwen/blob/main/docs/SCORECARD_QWEN4_35B.md