Run this model with HF Jobs
Run sliderforthewin/Looped-Qwen4-35B-A3B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/sliderforthewin/Looped-Qwen4-35B-A3B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/sliderforthewin/Looped-Qwen4-35B-A3B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use sliderforthewin/Looped-Qwen4-35B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use sliderforthewin/Looped-Qwen4-35B-A3B with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download sliderforthewin/Looped-Qwen4-35B-A3B --local-dir Looped-Qwen4-35B-A3B
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Looped-Qwen4-35B-A3B (v1.0 β Open-Channel Pure-Recurrence Adapter)
+18.33 pp on LiveCodeBench v6 (48.33% $\rightarrow$ 66.67%), +12.12 pp on the 33-problem LCB Hard slice (18.18% $\rightarrow$ 30.30%), +6.67 pp on AIME 2024 (86.67% $\rightarrow$ 93.33%), +3.33 pp on AIME 2025 (-13.9% tokens), and +3.33 pp on BFCL Tool Calling (90.00% $\rightarrow$ 93.33%) β with ZERO layer LoRA weights (lora_b == 0.0) and 100% untouched Qwen4-35B-A3B base weights.
- GitHub (Trainer,
vLLMHopper Engine, & Benchmarks):jasontitus/loopedqwen&jasontitus/loopedqwen-next - Sushi (
qwen4_moe) Integration &v4delta_rms_matchSpec:docs/SUSHI_QWEN4_35B.md - Full 8-Suite (
681-Problem) Paired Scorecard:SCORECARD_QWEN4_35B.md
Architecture & Pure-Recurrence Discovery
Qwen/Qwen4-35B-A3B (model_type: qwen4_moe, 40 layers = 10 Γ [3 Gated DeltaNet + 1 Qwen Sparse Attention], hc_count = 4, hidden_size = 2048, 256 experts + shared expert, 10.2B 3-gram PLE at L2) uses a 4-stream HyperConnection residual highway (S = 4 Γ 2048 = 8192).
We loop only the middle 16 layers (L12..27, 4 hybrid [3 GDN + 1 QSA] macro-blocks) for T = 2 or T = 3 passes while Prelude L0..11 (including the L2 3-gram PLE lookup) and Coda L28..39 run once per token:
- Winning Checkpoint (
ckpt_best, Step 40, Open-Channel Phase A): Selected strictly by held-out validation NLL (nll_base_t1 = 0.16205$\rightarrow$nll_t2 = 0.15474$\rightarrow$nll_t3 = 0.15450,loop_gain_t3 = +0.00755nats). - Zero Layer LoRA Weights (
0LoRA Pairs): Because Step 40 sits inside Phase A (lora_frozen = True), every single Core and Coda LoRABmatrix is exact0.0. Only the 4-streamHCWorkspaceEntry(rank = 128,s_hat_mode = "rms_match") and4QSA boundaryHCCrossPassMixers(L15, 19, 23, 27,rank = 128,mixer_source = "core_exit") are active (22.8 MBtotal pre-folded BF16 weights,0LoRA GEMMs at runtime!).
Which Bundle Should You Load?
| Path in Repo | Size | Target Runtime | Format Details |
|---|---|---|---|
loop/ (copy of sushi/default_t3) |
22.8 MB |
beamivalice/sushi (v1.9.1 / HEAD) |
Drop-in <pack>/loop/ or --loop <dir> (T=3, 0 LoRAs, *_tanh folded into standard keys so qwen4_loop.zig loads cleanly today) |
sushi/default_t3/ & sushi/default_t2/ |
22.8 MB / 22.5 MB |
beamivalice/sushi (v1.9.1 / HEAD) |
Validated via zig test against sushi/src/qwen4/qwen4_loop.zig (coda_lora_layers = 0, tensor_count = 22 for T=3, 16 for T=2) |
mlx/default_t3/ & mlx/default_t2/ |
23.4 MB / 22.8 MB |
Hibana (v4) & sushi (delta_rms_match upgrade) |
Full Open-Channel v4 contract (delta_rms_match: true, includes gm_tanh, gamma_tanh, one_plus_dkappa_tanh; passes check_loop_sidecar.py) |
ckpt_best_alesha_v3.safetensors (+ .json) |
104.6 MB |
vLLM (vllm_looped_qwen38) / Strata |
Canonical version: 3 (alesha_v3) multi-horizon (T=1..8) checkpoint |
ckpt_best.safetensors (+ .json) |
104.6 MB |
loopedqwen-next / PyTorch Trainer |
Canonical looped-qwen4-exp-v1 checkpoint |
Quickstart
1. Apple Silicon (beamivalice/sushi on STQ or BF16 Cooler Pack)
# Download the ready-to-run sushi T=3 sidecar (22.8 MB)
hf download sliderforthewin/Looped-Qwen4-35B-A3B --include "sushi/default_t3/*" --local-dir ./qwen4-35b-loop
# Launch any Qwen4-35B-A3B Cooler pack (STQ or BF16) at T=3 (or pass --loop-depth 2)
sushi serve --model <path-to-Qwen4-35B-A3B-STQ-or-BF16-pack> \
--loop ./qwen4-35b-loop/sushi/default_t3 --loop-depth 3
Note for
@beamivalice/sushidevs:sushi(35dc854) already wiresqwen4_moeinto--loop(src/arch/registry.zig:20,src/qwen4/qwen4_flags.zig:97,src/qwen4/qwen4_forward.zig:208).sushi/default_t3runs the dominants_hat(gs_tanh,s_hat_mode: "rms_match") recurrence bit-exact today. Addingdelta_rms_match: true(25 lines in20Γqwen4_loop.zig+loop_ops.zigOP == 1/OP == 2) additionally matches the `per-stream RMS ratio on the low-rankgm/gammadelta terms inmlx/default_t3β full spec in [docs/SUSHI_QWEN4_35B.md`](https://github.com/jasontitus/loopedqwen-next/blob/main/docs/SUSHI_QWEN4_35B.md).
2. NVIDIA Hopper (vLLM + Qwen/Qwen4-35B-A3B-FP8 on 1Γ 80 GB H100)
Requires a vLLM build with qwen4_moe support (vllm/vllm-openai:qwen4 / vllm 0.19.1rc1+). With docs/QWEN4_ENGINE_OPTIMIZATIONS.md (engram_config={"cpu_offload": True} UVA PLE offload + FP8 QSA indexer + FULL_DECODE_ONLY CUDAGraphs), 1Γ 80 GB H100 serves Looped-Qwen4-35B-A3B at 1,120β1,360 tok/s (T=3) and 1,490β1,740 tok/s (T=2):
# 1. Install the zero-fork vLLM plugin
pip install "git+https://github.com/jasontitus/loopedqwen.git#subdirectory=vllm_looped_qwen38"
# 2. Serve Looped-Qwen4-35B-A3B at T=3 (set VLLM_LOOPED_CD_OMEGA=0.15 for T=3 + LoopCD)
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"]}'
8-Suite (681-Problem) Benchmark Scorecard (stop-Only Symmetric Grading)
All arms evaluated identically on Qwen/Qwen4-35B-A3B-FP8 (max_tokens = 28,672 on coding/math, 0% cap on agentic/tool/HumanEval suites):
Benchmark (n) |
Stock T=1 |
d=1 Control |
Looped T=2 |
T=2 + LoopCD |
Looped T=3 |
T=3 + LoopCD |
$\Delta$ (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 Looped T=3 (81.08% macro, 585/681) and T=3 + LoopCD (Ο=0.15, 80.88% macro, 584/681) post 7 wins, 1 exact tie, and 0 regressions across all 8 benchmarks.
Quantized
Model tree for sliderforthewin/Looped-Qwen4-35B-A3B
Base model
Qwen/Qwen4-35B-A3B