Last week I shared Looped Qwen3.8-27B, where looping the middle layers of a frozen 27B model boosted coding accuracy while cutting <think> tokens in half. The #1 question people asked afterward was whether looping only helps smaller models — or whether it can actually lift a top frontier open model too.
So I tested it on DeepSeek-V4.1-Flash-1017 (552B MoE) — keeping 100% of the 552B base weights frozen and training a tiny ~33M–35M-parameter (~126–135 MB FP32 / ~66–71 MB BF16, 0.006%) recurrent loop adapter over 12 middle decoder layers ( L24–35) on a single GPU.
Dec 4, 2026 Update (v4.1: Bugs Fixed, Retuned & Re-Tested at 64k Uncapped + vLLM CUDA Graphs): Detailed community audits on my Looped Qwen3.8-Next (v3.1) repo surfaced symptoms that applied directly to Looped DeepSeek-V4.1 too — near-closed recurrent gates, --enforce-eager lag in my vLLM plugin, 32k cap truncation, and the need for same-engine 1-Pass Same-LoRA & Anchor-Only controls. So I fixed the bugs, retuned an open-channel v4.1 checkpoint ( 6.9% mean / 10.7% max mHC state carry + Dual Progressive Margin), unlocked FULL_DECODE_ONLY CUDA Graphs in dsv41_loop (4.0× faster in c=36 batches and 10.1× faster at batch=1 than my old --enforce-eager plugin), and ran a 12-wave (6 arms × 32k + 6 arms × 64k uncapped) same-engine full-precision benchmark across 53 LiveCodeBench v6 problems (45 Hard + 8 Medium) and 19 multi-turn repo bugfixes (Agentic19). v4.1 (T=3 + LoopCD) hit 84.9% (45/53) at 32k and 90.6% (48/53) at 64k uncapped (90.0% vs. Stock’s 80.0% on 20 brand-new Hard problems, -37.4% median tokens) — strictly beating Same-Engine Stock, 1-Pass Same-LoRA, Anchor-Only T=2, and R5-A@300. Jump to the Dec 4 v4.1 update ↓
What a tiny 0.006% loop adapter did for 552B DeepSeek-V4.1:
- Reaches
90.6%(48/53) Full-PrecisionLiveCodeBench v6at64kuncapped (84.9%at32k): On the exact samevLLMengine across53competitive programming problems (45Hard +8Medium),v4.1(T=3 + LoopCD) beats Same-Engine Stock at32k(84.9%vs.79.2%,+5.7 pts)and at64kuncapped (90.6%vs.88.7%,90.0%vs.80.0%on20brand-new disjoint Hard problems ), while scaling strictly monotonically with loop depth using identical weights (84.9%atT=1→86.8%atT=2→90.6%atT=3 + LoopCD). - Cuts thinking tokens
23%–27%(-37.4%median) — and removes our old--enforce-eagervLLMbottleneck: Looping 12 middle layers cuts median<think>output from**16,413 → 10,282tokens (-37.4%)** across the 53-problem64ksuite (16,979 → 12,436mean tokens onR5-A@300`` all33,~5%fewer total layer-passes per answer ), and our updateddsv41_loopplugin now capturesFull Decode CUDA Graphs (4.0×faster inc=36batches and10.1×faster atbatch=1than our old--enforce-eagerplugin, runningT=2at67%andT=3at50%of StockT=1’s per-tokenvLLMspeed). - Brings
1.75-bitlocal Macs ALL the way back to Cloud Full-Precision parity (57.6% → 75.8%): Compressing552Brouted experts9.1×to1.75 bits(~111 GBof experts) drops overall coding accuracy-18.2 pts(19/33vs.25/33) and causes20k+-token proofs to spin into the32klimit (1/4solved). Plugging in my cloud-trained adapter + contrastive decoding (LoopCD) lifts all 33 problems to**75.8%(25/33,+18.2 pts) — tying Stock Cloud Full Precision (25/33) right on a MacBook Pro (~24 tok/s)** — and solves**4/4(100%)** of the20k+-token proofs in21,486tokens.
Try It Out (64 GB+ Apple Silicon Mac on macOS 26.2+ — or an Adventurous 48 GB Mac)#
curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_mac.sh | bash
- Zero Re-Down: Runs on
@beamivalice’s**sushi** engine (PR#280). If you already havebeamster’sSTQ-1.75bpworSTQ-2.7bpwpack in~/.sushi/models/or~/.cache/huggingface/,0 GBof base weights are re-downloaded — it grabs the adapter, letssushi’s live free-RAM planner size your expert cache (48 GBto512 GB), and starts:11434.(Down fresh requires~330 GiBfree on NVMe —~120 GiB1.75-bittransformer +189 GiBSSD-streamed Engram lookup tables, which use0 GBof RAM; setSTQ_PACK_DIR=/Volumes/<ExternalSSD>/dsv41-stqon smaller internal drives.) - Connect instantly once
:11434is up:- Browser Chat UI:
open http://127.0.0.1:11434 - Claude Code:
ANTHROPIC_BASE_URL=http://127.0.0.1:11434 ANTHROPIC_API_KEY=sushi claude --model DeepSeek-V4.1-Flash-1017-Sushi-STQ-1.75bpw - Local OpenAI Agents (
Cline,Roo Code,OpenCode,curl):http://127.0.0.1:11434/v1(Running NVIDIA CUDA (vLLMwith CUDA Graphs) or DGX Sparks? Jump to 1-line CUDA setup ↓)
- Browser Chat UI:
1. Initial R5-A@300 Coding Benchmarks (33-Problem Suite)# #
In my initial R5-A@300 run, I evaluated the 2 × 2 grid — 2 passes and 3 passes, both with and without LoopCD contrastive decoding — in native MXFP4 full precision via vLLM against Stock DeepSeek-V4.1-Flash-1017 across 33 Medium & Hard LiveCodeBench v6 problems (--effort high, temperature=1.0, top_p=1.0, seed=42, 32,768-token limit):
LiveCodeBench v6 Test Set ( 32,768 Token Limit) |
Stock 1.75-Bit Mac (1p ) |
Looped 1.75-Bit Mac (2p+CD) |
Stock Full Precision ( 1p) |
Looped FP ( 2 passes) |
Looped FP ( 2p + LoopCD) |
Looped FP ( 3 passes) |
Looped FP ( 3p + LoopCD) * |
|---|---|---|---|---|---|---|---|
| All 33 Medium + Hard Problems | 57.6% (19/33 ) |
75.8% (25/33) |
75.8% (25/33 ) |
84.8% (28/33, +9.1 pts) |
81.8% (27/33 ,+6.1 pts ) |
81.8% (27/33 ,+6.1 pts ) |
78.1% (25/32 ,+3.1 pts *) |
| 13 Hardest Problems*(AtCoder / LeetCode Hard)* | 30.8% (4/13 ) |
53.8% (7/13) |
61.5% (8/13 ) |
84.6% (11/13, +23.1 pts) |
69.2% (9/13 ,+7.7 pts ) |
69.2% (9/13 ,+7.7 pts ) |
58.3% (7/12 , ties Stock*) |
| 20-Problem Standard Split*(8 Med + 12 Hard)* | 75.0% (15/20 ) |
75.0% (15/20) |
75.0% (15/20 ) |
80.0% (16/20, +5.0 pts) |
80.0% (16/20, +5.0 pts) |
80.0% (16/20, +5.0 pts) |
80.0% (16/20, +5.0 pts) |
4 Long-Chain Hard Problems*(20k+-token proofs)* |
25.0% (1/4 ) |
100.0% (4/4) |
100.0% (4/4 ) |
100.0% (4/4) |
100.0% (4/4) |
100.0% (4/4) |
100.0% (4/4) |
| Average Thinking + Output Tokens*(all 33)* | ~20,500 tok |
17,324 tok (-15% ) |
16,979 tok |
12,436 tok (-27%) |
11,953 tok (-30%) |
13,997 tok (-18% ) |
13,003 tok (-23% ) |
| Average Tokens on Solved Problems | — | 12,677 tok |
~13,200 tok |
10,270 tok |
8,898 tok (-33%) |
11,186 tok |
9,203 tok (-30%) |
*Notes: In this initial table, Stock Full Precision ran via DeepInfra (MXFP4/BF16), while Looped FP ran on 4× RTX PRO 6000 via vLLM (MXFP4 MoE + FP8 MLA KV cache, concurrency=33); in 3 passes + LoopCD, 1 item (#3701) dropped on a transient HTTP disconnect ( 32/33 completed). In Section 5 (v4.1 Update) below, I eliminated every cross-provider confound by running Stock, 1-Pass Same-LoRA, Anchor-Only T=2, R5-A@300, v4.1 T=2, and v4.1 T=3 + LoopCD head-to-head on the exact same vLLM stack at both 32k and 64k uncapped.
2. Why Shorter Thinking Chains Pay for the Extra Loop Pass# #
A natural concern with looping is per-token compute: running 12 middle layers (L24–35) twice executes 52 layer-passes per token instead of 40 (+30% layers).
In reasoning models, total work per question is tokens multiplied by compute per token:
Layer-Passes per Question = (Tokens Generated) × ( Layer-Passes per Token)
Across all 33 coding problems, +30% layers per token cuts <think> length by -26.8% (16,979 → 12,436 tokens):
12,436 × 52 = 646.7k layer-passes vs. 16,979 × 40 = 679.2k (~5% less total compute per answer!)
3. Rescuing 1.75-Bit Local Mac Inference Back to Full-Precision Quality# #
Running a 552B model locally on a Mac requires extreme compression — beamster’s 1.75-bpw STQ (Sushi Trellis Quant) pack squeezes the 552B routed experts into ~111 GB (plus ~10 GB trunk/DSpark and two SSD-streamed Engram tables that use 0 GB of RAM), served by @beamivalice’s sushi engine.
That 9.1× expert compression from BF16 holds up well on medium tasks (75.0% on the 20-problem standard split), until the model has to sustain a 20,000-token mathematical proof. Tiny quantization errors accumulate across thousands of steps, causing <think> chains to second-guess themselves until they hit the 32,768-token limit:
- Across all 33 LiveCodeBench problems , Stock
1.75-bitdrops**-18.2 pts** below Cloud Full Precision (57.6%vs.75.8%). - On the 4 longest-chain Hard problems (
24,334mean tokens in Full Precision), Stock1.75-bitcollapses from**100% (4/4) → 25% (1/4)** , timing out at32,768tokens on 3 of the 4 problems.
Adding a loop adapter on an M5 Max MacBook Pro (~24 tok/s, $0 API cost) recovers 100% of that -18.2 pt quantization loss across all 33 problems:
Configuration ( 32,768 Token Limit) |
Engine & Hardware | All 33 Coding Problems | 13 Hardest Problems | 4 Long-Chain Hard Problems | Mean Tokens (All 33) |
|---|---|---|---|---|---|
Stock 1.75-Bit (1 pass) |
sushi · Mac (128 GB RAM) |
57.6% (19/33 ) |
30.8% (4/13 ) |
25.0% (1/4 · 3 hit 32k cap) |
~20,500 tok |
Looped 1.75-Bit (2 passes, R4-B'@200 STQ-trained) |
sushi · M5 Max MacBook Pro |
66.7% (22/33 ,69.7% lenient) |
46.2% (6/13 lenient) |
75.0% (3/4 ,4/4 lenient) |
19,380 tok |
Looped 1.75-Bit (2 passes + LoopCD, R5-A@250 cloud-trained) |
sushi · M5 Max MacBook Pro |
75.8% (25/33, +18.2 pts!) |
53.8% (7/13, +23.0 pts) |
100.0% (4/4 · 0 cap hits!) |
17,324 tok |
Stock Full Precision (1 pass Reference) |
Cloud MXFP4/BF16 Cluster |
75.8% (25/33 ) |
61.5% (8/13 ) |
100.0% (4/4 ) |
16,979 tok |
Look at the third and fourth rows: my R5-A adapter was trained purely on cloud MXFP4 weights — it never saw 1.75-bit quantization noise during training. On 1.75-bit weights alone (ω=0), quantization drift still holds all33 to 63.6% (21/33, 2/4 on long-chain Hard); turning on Loop-Contrastive Decoding (LoopCD, ω=0.3) — nudging hidden states along (pass_2 − pass_1) right before coda layer 36 — cancels that drift, lifting 1.75-bit Mac accuracy +18.2 pts (19/33 → 25/33) to match Stock Cloud Full Precision ( 25/33 = 75.8%) across all 33 problems while solving 4/4 (100%) of the long-chain proofs in 21,486 tokens.
Independent Reproduction by @beamivalice ( sushi Author)#
@beamivalice
Shortly after I published the release kit, @beamivalice independently benchmarked loop=2 vs. loop=2 + LoopCD (ω=0.3) on Apple Silicon (sushi 1.8.1, 95 GiB streamed budget with DSpark) on AtCoder abc392_d (a baseline-failing probability problem from the fast4 canary suite):
Arm ( sushi 1.8.1 ,STQ-1.75bpw ) |
Loop / LoopCD |
Completion Tokens | Reasoning Chars | Wall Time | Decode ( DSpark ) |
Unit Tests ( 1e-8 tol) |
|---|---|---|---|---|---|---|
T2 |
loop=2, omega=0.0 |
2,236 |
6,354 |
103.4 s |
22.5 tok/s (1.18/rnd ) |
42 / 42 PASS |
T2_cd |
loop=2, omega=0.3 |
1,373 (-38.6%) |
3,604 (-43.3%) |
66.0 s (-36.2%) |
22.1 tok/s (1.26/rnd ) |
42 / 42 PASS |
Turning on LoopCD-Hidden (ω=0.3) cut reasoning length by 43.3% and wall-clock answer time by 36.2% (103.4 s → 66.0 s) with exact 42/42 mathematical accuracy. (Bonus catch by @beamivalice: my bench_data/lcb_eval.py grader was originally comparing stdin outputs as exact strings, rejecting 1/13 printed to 15 decimals 0.076923076923077 against 0.076923076923 (|diff| = 7.7e-14); fixed with LiveCodeBench’s 1e-6 float-token tolerance in 1d16922, which also flipped abc392_d to PASS on my saved fast4 run without changing any of the 33 integer/string problems in all33.)
4. How the Loop Is Wired (and Trained on a Single GPU for < $50)# #
DeepSeek-V4.1-Flash-1017 uses a Causal Encoder-Decoder layout: layers 0–20 act as an encoder producing shared KV states, while consumer layers 21–39 read from that boundary alongside local 128-token sliding-window KV caches over a 4-stream HyperConnection highway:
Token Embeddings + Engram
└─> Frozen Encoder + Prelude (L0–L23) ──> Anchor a (4-Stream HyperConnection)
│
┌────────────────────────────┘
▼
Stream-Tied Convex Workspace Entry <────┐
│ │ Extra Pass (p < T)
▼ │
Recurrent Core (L24–L35 + Core LoRA) ───┘
│
▼ Final Pass (optional LoopCD contrastive step)
Coda Readout (L36–L37 LoRA + Frozen L38–L39) ──> Frozen LM Head
- Bit-Exact
1-PassCompatibility: Pass0runs with zero adapters and workspace gates initialize to zero, so1 passis bit-for-bit identical to stockDeepSeek-V4.1, andsushi/vLLMallocate isolated per-pass128-token SWA KV slots so recurrent passes never overwrite context. - Training
552Bon a Single GPU (< $50): My training codebase started as an MLX port inspired by**UnstableLlama/exl3-qlora** (built onTurboderp’sExLlamaV3trellis quantization and Hadamard QLoRA math). Precomputing frozen Layer-20 states (40 KB/token) and streaming officialMXFP4routed experts through MLX’s fused4-bit`` mx.gather_qmmkernel (95×faster MoE layers) let all300`` R5-Asteps (~$44) and60`` v4.1open-channel graft steps (~$22) run on a single GPU.
5. Dec 4 Update: Fixing Shared Qwen3.8-Next Symptoms, Retuning (v4.1), 64k Uncapped & vLLM CUDA Graphs# #
After sharing my Looped Qwen3.8-Next (v3.1) work, thorough code and evaluation audits from @TDI782476773395 and @Daniel00Higgins flagged several failure modes and methodological traps on Qwen3.8-Next — and looking closely at Looped DeepSeek-V4.1 (R5-A@300), several of those exact same symptoms applied here too:
- Same-Engine Baseline,
1-PassLoRA Control &Anchor-OnlyGuards: ComparingvLLMlooped runs against hostedDeepInfraStock leaves engine differences on the table — without a same-engine1-Pass Same-LoRA(T=1) control and anAnchor-Only(T=2, state-zeroed) ablation (plus guardinganchor_onlyagainst scale-invariant RMS re-inflation underdelta_rms_match), how do we know the adapter isn’t just acting as a static LoRA shortcut? - Near-Closed Recurrent Gate (
0.6%State Carry inR5-A): Just like early Qwen runs before opening the recurrent channel,R5-A@300’sWorkspaceEntrystate gatetanh(gs)had settled around0.6%mean amplitude — enough to nudge reasoning length, too small to power multi-pass iterative refinement (T=3), while adapting all the way throughL38–39left zero frozen readout layers. 32,768-Token Cap Truncation: Were looped runs winning onLiveCodeBench v6mainly because shorter<think>traces avoided hitting the32ktoken ceiling?--enforce-eagerLatency invLLM: Requiring--enforce-eagerdropped single-streamvLLMthroughput to~5.7 tok/s.
So I fixed those bugs across the trainer and dsv41_loop plugin, retuned an open-channel v4.1 (v41-000060) checkpoint, unlocked Full Decode CUDA Graphs, and ran a 12-wave (6 arms × 32k + 6 arms × 64k uncapped) same-engine full-precision vLLM evaluation across 53 LiveCodeBench v6 problems (45 Hard + 8 Medium, including 20 brand-new disjoint Hard problems verified at 0 13-gram overlap against all training rows) plus a 19-task multi-turn repository bugfixing benchmark ( Agentic19).
5.1 Opening the mHC Recurrent Channel (v4.1)#
To force genuine cross-pass hidden-state carry without destabilizing DeepSeek-V4.1’s 4-stream HyperConnections ( mHC), v4.1 introduced four trainer changes:
- Stream-Tied Convex
mHCGates (6.90%Mean /10.68%Max Carry): Tyinggsacross hidden dimensions permHCstream (>= 0convex clamp) boosted recurrent state carrymore than11×overR5-A(6.90%mean /10.68%max on pass 1;3.72%mean /5.65%max on pass 2). - Dual Progressive Margin (
Pass 2 < Pass 1 < Pass 0): Supervising65%of steps atT=3with an explicit hinge margin requiring passTNLL to beatboth theT=1reference and passT-1made(s_2 − s_1)a clean refinement direction — turningT=3 + LoopCD (ω=0.3)into the strongest arm at both32kand64k. - Partial-Span Anchor Dropout &
20%CoT Clause Elision: Dropping the anchor on50%spans forced the core to reads_{p-1}while keepinggsdirectly differentiable on the unmasked half. - Frozen Readout Layers (
L38–39): Restricting Coda LoRA toL36–37preserved the frozen model’s final readout calibration.
5.2 Removing Our Plugin’s --enforce-eager Bottleneck (4× Batch / 10.1× batch=1 Over Eager)#
Why did our earlier dsv41_loop plugin require --enforce-eager? TorchDynamo ( mode > 0, PIECEWISE) tries to trace Python mutations when swapping per-pass 128-token sliding-window KV caches ( DeepseekV4SWACache). By binding static per-pass cache modules onto _run_layers, unsetting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True, and passing --compilation-config '{"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY"}', vLLM bypasses TorchDynamo while capturing the entire multi-pass L24–35 loop into a single CUDA Graph per batch size:
- Vs. our old
--enforce-eagerplugin (4× RTX PRO 6000): Single-stream (batch=1,T=2) jumped**5.7 → 57.6 tok/s(10.1×)** , and realc=36concurrent benchmark throughput jumped**126.1 → 506.6 tok/s(4.0×atT=2;3.0×even atT=3 + LoopCD:378.6 tok/s)** . - Vs. Same-Pod Stock
vLLM(T=1, CUDA Graphs ON:760.4 tok/satc=36): LoopedT=2(52layers) ran at**506.6 tok/s(0.67×of Stock)** andT=3 + LoopCD(64layers) at**378.6 tok/s(0.50×of Stock)** on4× RTX PRO 6000(and**685–998 tok/sbatch** on4× H200). Follow-up profiling showed~8%of that gap came from evaluating 8 separate FP32 LoRA matmuls +.clone()copies per adapted layer (52kernels/layer), which I have now fused into pre-scaledBF16Tensor-Coreaddmmpairs ((wq_a, wkv)and(w1, w3)fused ->13kernels/layer, detailed inLOOP_VRAM_AND_VLLM_CUDAGRAPH_OPTIMIZATIONS.md).
5.3 The 6-Arm Same-Engine Full-Precision Scoreboard (32k & 64k Uncapped)#
Every arm below ran through the exact same vLLM + dsv41_loop stack (--effort high, temperature=1.0, top_p=1.0, seed=42, zero finish_reason != "stop" passes; raw JSON in same_pod_6arm_32k_64k_summary.json):
Arm ( Same-Engine Full-Precision vLLM ) |
lcb53 (32k ) |
hard45 (32k ) |
lcb53 (64k Uncapped) |
hard45 (64k Uncapped) |
hard20_disjoint (64k) |
Mean / Median Tok ( 64k) |
Agentic19 Repo Fixes |
|---|---|---|---|---|---|---|---|
1. Stock Base (T=1, no LoRA) |
79.2% (42/53 ) |
75.6% (34/45 ) |
88.7% (47/53 ) |
86.7% (39/45 ) |
80.0% (16/20 ) |
18,121 /16,413 |
15.8% (3/19 ) |
2. 1-Pass Same-LoRA (T=1, v4.1 LoRAs ON) |
75.5% (40/53 ) |
71.1% (32/45 ) |
84.9% (45/53 ) |
82.2% (37/45 ) |
80.0% (16/20 ) |
14,852 /10,752 |
21.1% (4/19 ) |
3. Anchor-Only (T=2, gs=0, state-half 0) |
77.4% (41/53 ) |
73.3% (33/45 ) |
83.0% (44/53 ) |
80.0% (36/45 ) |
80.0% (16/20 ) |
15,416 /12,030 |
42.1% (8/19 ) |
4. Published R5-A@300 (T=2) |
79.2% (42/53 ) |
75.6% (34/45 ) |
81.1% (43/53 ) |
77.8% (35/45 ) |
80.0% (16/20 ) |
14,086 /11,434 |
52.6% (10/19) |
5. v4.1 Looped (T=2, ω=0.0) |
81.1% (43/53 ) |
77.8% (35/45 ) |
86.8% (46/53 ) |
84.4% (38/45 ) |
85.0% (17/20 ) |
14,350 /12,195 |
31.6% (6/19 ) |
6. v4.1 Looped (T=3 + LoopCD ω=0.3) |
84.9% (45/53) |
82.2% (37/45) |
90.6% (48/53) |
88.9% (40/45) |
90.0% (18/20) |
14,014 / 10,282 |
26.3% (5/19 ) |
Three findings stand out clearly:
- Strict monotonic scaling with recurrent depth (
T=1 → T=2 → T=3 + LoopCD): Holding thev4.1LoRA weights completely fixed,lcb53climbs**75.5% → 81.1% → 84.9%** at32kand**84.9% → 86.8% → 90.6%** at64kuncapped (82.2% → 84.4% → 88.9%onhard45). - Pure
mHCstate-carry gain (+7.5to+7.6 ptsoverAnchor-Only T=2): Running two passeswithout recurrent state carry (Anchor-Only T=2) drops below Stock at both token limits (77.4%at32k,83.0%at64k). Opening themHCstate channel lifts accuracy to**84.9%(32k) and90.6%(64k)** , hitting**90.0%(18/20) vs. Stock’s80.0%(16/20)** on the20brand-new disjoint Hard problems (including solving AtCoder arc196_d at 44.0k tokens where 64k Stock capped out) while cutting median tokens by**37.4%** (16,413 → 10,282). - Complementary Checkpoints Shipped Side-by-Side:
v41-000060is now the default root checkpoint on Hugging Face (90.6%onlcb53 @ 64k), whilecheckpoints/r5a-000300(52.6%`` 10/19on multi-turnAgentic19repo bugfixing vs. Stock’s15.8%`` 3/19) andcheckpoints/r5a-000250(75.8%on1.75-bitApple Siliconsushi) remain preserved undercheckpoints/.
Engines and How to Run It Yourself# #
Everything — adapters (v41-000060, R5-A@300, R5-A@250, & R4-B'@200), one-line Mac and CUDA installers, zero-fork CUDA-Graph vLLM plugin, sushi Metal integration, and 6-arm 32k/ 64k evaluation kit — is open source:
| Hardware Tier | Inference Engine | Base Weights ( 0 GB re-downloaded if cached) |
How to Run |
|---|---|---|---|
Apple Silicon 64 GB–128 GB(or adventurous 48 GB, macOS 26.2+) |
beamivalice/sushi (PR #280 ) w/ NVMe expert streaming |
beamster/DeepSeek-V4.1-Flash-1017-Sushi-STQ-1.75bpw(~330 GiB on NVMe incl. Engram) |
curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_mac.sh | bash |
Apple Silicon 256 GB–512 GB ( M3 Ultra ,macOS 26.2+ ) |
beamivalice/sushi (100% RAM-pinned) |
STQ-1.75bpw or higher-precision**STQ-2.7bpw**(~450 GiB on NVMe) |
QUANT=2.7bpw curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_mac.sh | bash |
NVIDIA CUDA (4× >=94 GB or 8× 80 GB GPUs) |
vLLM (>= 0.34.1rc1 nightly) +dsv41_loop (FULL_DECODE_ONLY CUDA Graphs) |
deepseek-ai/DeepSeek-V4.1-Flash-1017 |
curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_cuda.sh | bash(or see vllm_loop/README.md) |
Merged 4× / 8× NVIDIA DGX Sparks (200 GbE) |
vLLM Ray TP=4/8 + NVMe Engram offload |
deepseek-ai/DeepSeek-V4.1-Flash-1017 |
./run_sparks_vllm_cluster.sh 2-3 injasontitus/dsv41-loop-eval |
Code, Weights & Credits#
- Hugging Face Adapter Weights (
v41-000060root +R5-A@300,R5-A@250,R4-B'@200):sliderforthewin/Looped-DeepSeek-V4.1-Flash - 1-Command Mac & CUDA Installers & 6-Arm Eval Kit:
jasontitus/dsv41-loop-eval(problem ID lists,agentic_tool_eval.py, andsame_pod_6arm_32k_64k_summary.jsonlive inbench_data/) - Recurrent Trainer & CUDA-Graph
vLLMPlugin (vllm_loop):jasontitus/mlx-stq-trainer - Apple Silicon
sushiRecurrent Decoder PR:beamivalice/sushi#280 - Acknowledgements: Huge thanks to**
@TDI782476773395** and**@Daniel00Higgins** for their sharp analysis and bug finding onLooped Qwen3.8-Next(v3.1) that directly drove thev4.1bug fixes, retuning,vLLMCUDA-Graph & fused-LoRA speedups, and64kuncapped evaluation;UnstableLlama/exl3-qloraandTurboderp’sExLlamaV3for inspiring the streamed-MoE QLoRA trainer foundation;@beamivaliceforsushiand pointing me to Apple’sLoopCD paper (arXiv:2610.02185); and**beamster** for theSTQ-1.75bpwandSTQ-2.7bpwDeepSeek-V4.1 packs.
Next up: testing v4.1 on STQ-2.7bpw Apple Silicon, scaling to GPQA Diamond and AIME 2025/2026, and exploring adaptive per-request depth routing ( direct → T=1, deep reasoning → T=3).