# Looped DeepSeek-V4.1: Making a 552B Frontier Model Smarter and Faster (and Rescuing 1.75-Bit Local Macs)

> Source: <https://blog.tiltastech.com/projects/looped-deepseek-v41-recurrent-depth/>
> Published: 2026-12-01 21:00:00+00:00

**Recommendation:** Enable FULL_DECODE_ONLY CUDA Graphs in the dsv41_loop vLLM plugin instead of --enforce-eager; the source measured 4.0× faster c=36 batches and 10.1× faster batch=1, with T=3 at 50% of stock per-token speed.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

Last week I shared [**Looped Qwen3.8-27B**](https://blog.tiltastech.com/projects/looped-qwen38-recurrent-depth/), 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**](https://blog.tiltastech.com/projects/looped-qwen38-recurrent-depth/) (`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 ↓](#part-ii-update)

**What a tiny `0.006%` loop adapter did for `552B` DeepSeek-V4.1:**

- **Reaches `90.6%` (`48/53`) Full-Precision `LiveCodeBench v6` at `64k` uncapped (`84.9%` at `32k`):** On the exact same` vLLM` engine across`53` competitive programming problems (`45` Hard +`8` Medium),**`v4.1` (`T=3 + LoopCD`)** beats Same-Engine Stock at` 32k` (`84.9%` vs.`79.2%` ,`+5.7 pts` )*and* at`64k` uncapped (`90.6%` vs.`88.7%` ,**`90.0%` vs. `80.0%` on `20` brand-new disjoint Hard problems** ), while scaling strictly monotonically with loop depth using identical weights (`84.9%` at`T=1` →`86.8%` at`T=2` →`90.6%` at`T=3 + LoopCD` ).
- **Cuts thinking tokens `23%–27%` (`-37.4%` median) — and removes our old `--enforce-eager` `vLLM` bottleneck:** Looping 12 middle layers cuts median`<think>` output from**`16,413 → 10,282` tokens (`-37.4%`)** across the 53-problem` 64k` suite (`16,979 → 12,436` mean tokens on`R5-A@300`` all33` ,**`~5%` fewer total layer-passes per answer** ), and our updated`dsv41_loop` plugin now captures**Full Decode CUDA Graphs** (`4.0×` faster in`c=36` batches and`10.1×` faster at`batch=1` than our old`--enforce-eager` plugin, running`T=2` at`67%` and`T=3` at`50%` of Stock`T=1` ’s per-token`vLLM` speed).
- **Brings `1.75-bit` local Macs ALL the way back to Cloud Full-Precision parity (`57.6% → 75.8%`):** Compressing` 552B` routed experts`9.1×` to`1.75 bits` (`~111 GB` of experts) drops overall coding accuracy`-18.2 pts` (`19/33` vs.`25/33` ) and causes`20k+` -token proofs to spin into the`32k` limit (`1/4` solved). 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 the` 20k+` -token proofs in`21,486` tokens.

### Try It Out (`64 GB+` Apple Silicon Mac on `macOS 26.2+` — or an Adventurous `48 GB` Mac)[#](#try-it-out-64-gb-apple-silicon-mac-on-macos-262--or-an-adventurous-48-gb-mac)

```
curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_mac.sh | bash
```

- **Zero Re-Downloading:** Runs on[`@beamivalice`](https://github.com/beamivalice) ’s**[` sushi`](https://github.com/beamivalice/sushi)** engine ([PR `#280`](https://github.com/beamivalice/sushi/pull/280) ). If you already have`beamster` ’s`STQ-1.75bpw` or`STQ-2.7bpw` pack in`~/.sushi/models/` or`~/.cache/huggingface/` ,**`0 GB` of base weights are re-downloaded** — it grabs the adapter, lets`sushi` ’s live free-RAM planner size your expert cache (`48 GB` to`512 GB` ), and starts`:11434` .*(Downloading fresh requires `~330 GiB` free on NVMe — `~120 GiB` `1.75-bit` transformer + `189 GiB` SSD-streamed Engram lookup tables, which use `0 GB` of RAM; set `STQ_PACK_DIR=/Volumes/<ExternalSSD>/dsv41-stq` on smaller internal drives.)*
- **Connect instantly once `:11434` is 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 (` vLLM` with CUDA Graphs)** or **DGX Sparks**? **[Jump to 1-line CUDA setup ↓](#engines-and-how-to-run-it-yourself)**)*

## 1. Initial `R5-A@300` Coding Benchmarks (`33`-Problem Suite)[#](#1-initial-r5-a300-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](#part-ii-update), 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[#](#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[#](#3-rescuing-175-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`](https://github.com/beamivalice)’s [` sushi`](https://github.com/beamivalice/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-bit` drops**`-18.2 pts`** below Cloud Full Precision (` 57.6%` vs.`75.8%` ).
- On the **4 longest-chain Hard problems** (`24,334` mean tokens in Full Precision), Stock`1.75-bit` collapses from**`100% (4/4) → 25% (1/4)`** , timing out at` 32,768` tokens 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`](https://github.com/beamivalice) (` sushi` Author)[#](#independent-reproduction-by-beamivalice-sushi-author)

`@beamivalice`
Shortly after I published the release kit, [`@beamivalice`](https://github.com/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`](https://github.com/jasontitus/dsv41-loop-eval/commit/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`)[#](#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-Pass` Compatibility:** Pass`0` runs with zero adapters and workspace gates initialize to zero, so`1 pass` is bit-for-bit identical to stock`DeepSeek-V4.1` , and`sushi` /`vLLM` allocate isolated per-pass`128` -token SWA KV slots so recurrent passes never overwrite context.
- **Training `552B` on a Single GPU (`< $50`):** My training codebase started as an MLX port inspired by**[`UnstableLlama/exl3-qlora`](https://github.com/UnstableLlama/exl3-qlora)** (built on**Turboderp’s [`ExLlamaV3`](https://github.com/turboderp-org/exllamav3)** trellis quantization and Hadamard QLoRA math). Precomputing frozen Layer-20 states (`40 KB/token` ) and streaming official`MXFP4` routed experts through MLX’s fused`4-bit`` mx.gather_qmm` kernel (`95×` faster MoE layers) let all`300`` R5-A` steps (`~$44` ) and`60`` v4.1` open-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[#](#part-ii-update)

After sharing my [**Looped Qwen3.8-Next**](https://blog.tiltastech.com/projects/looped-qwen38-recurrent-depth/) (`v3.1`) work, thorough code and evaluation audits from **[`@TDI782476773395`](https://x.com/TDI782476773395)** and **[`@Daniel00Higgins`](https://x.com/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:

1. **Same-Engine Baseline, `1-Pass` LoRA Control & `Anchor-Only` Guards:** Comparing`vLLM` looped runs against hosted`DeepInfra` Stock leaves engine differences on the table — without a same-engine`1-Pass Same-LoRA` (`T=1` ) control and an`Anchor-Only` (`T=2` , state-zeroed) ablation (plus guarding`anchor_only` against scale-invariant RMS re-inflation under`delta_rms_match` ), how do we know the adapter isn’t just acting as a static LoRA shortcut?
2. **Near-Closed Recurrent Gate (`0.6%` State Carry in `R5-A`):** Just like early Qwen runs before opening the recurrent channel,`R5-A@300` ’s`WorkspaceEntry` state gate`tanh(gs)` had settled around`0.6%` mean amplitude — enough to nudge reasoning length, too small to power multi-pass iterative refinement (`T=3` ), while adapting all the way through`L38–39` left zero frozen readout layers.
3. **`32,768`-Token Cap Truncation:** Were looped runs winning on` LiveCodeBench v6` mainly because shorter`<think>` traces avoided hitting the`32k` token ceiling?
4. **`--enforce-eager` Latency in `vLLM`:** Requiring`--enforce-eager` dropped single-stream`vLLM` throughput 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`)[#](#51-opening-the-mhc-recurrent-channel-v41)

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 `mHC` Gates (`6.90%` Mean / `10.68%` Max Carry):** Tying`gs` across hidden dimensions per`mHC` stream (`>= 0` convex clamp) boosted recurrent state carry**more than `11×`** over` R5-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`):** Supervising` 65%` of steps at`T=3` with an explicit hinge margin requiring pass`T` NLL to beat*both* the`T=1` reference and pass`T-1` made`(s_2 − s_1)` a clean refinement direction — turning`T=3 + LoopCD (ω=0.3)` into the strongest arm at both`32k` and`64k` .
- **Partial-Span Anchor Dropout & `20%` CoT Clause Elision:** Dropping the anchor on`50%` spans forced the core to read`s_{p-1}` while keeping`gs` directly differentiable on the unmasked half.
- **Frozen Readout Layers (`L38–39`):** Restricting Coda LoRA to` L36–37` preserved the frozen model’s final readout calibration.

### 5.2 Removing Our Plugin’s `--enforce-eager` Bottleneck (`4×` Batch / `10.1×` `batch=1` Over Eager)[#](#52-removing-our-plugins---enforce-eager-bottleneck-4-batch--101-batch1-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-eager` plugin (`4× RTX PRO 6000`):** Single-stream (` batch=1` ,`T=2` ) jumped**`5.7 → 57.6 tok/s` (`10.1×`)** , and real` c=36` concurrent benchmark throughput jumped**`126.1 → 506.6 tok/s` (`4.0×` at `T=2`; `3.0×` even at `T=3 + LoopCD`: `378.6 tok/s`)** .
- **Vs. Same-Pod Stock `vLLM` (`T=1`, CUDA Graphs ON: `760.4 tok/s` at `c=36`):** Looped` T=2` (`52` layers) ran at**`506.6 tok/s` (`0.67×` of Stock)** and`T=3 + LoopCD` (`64` layers) at**`378.6 tok/s` (`0.50×` of Stock)** on`4× RTX PRO 6000` (and**`685–998 tok/s` batch** on`4× H200` ). Follow-up profiling showed`~8%` of that gap came from evaluating 8 separate FP32 LoRA matmuls +`.clone()` copies per adapted layer (`52` kernels/layer), which I have now fused into pre-scaled`BF16` Tensor-Core`addmm` pairs (`(wq_a, wkv)` and`(w1, w3)` fused ->`13` kernels/layer, detailed in[`LOOP_VRAM_AND_VLLM_CUDAGRAPH_OPTIMIZATIONS.md`](https://github.com/jasontitus/mlx-stq-trainer/blob/main/docs/LOOP_VRAM_AND_VLLM_CUDAGRAPH_OPTIMIZATIONS.md) ).

### 5.3 The 6-Arm Same-Engine Full-Precision Scoreboard (`32k` & `64k` Uncapped)[#](#53-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`](https://github.com/jasontitus/dsv41-loop-eval/blob/main/bench_data/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:

1. **Strict monotonic scaling with recurrent depth (`T=1 → T=2 → T=3 + LoopCD`):** Holding the` v4.1` LoRA weights completely fixed,`lcb53` climbs**`75.5% → 81.1% → 84.9%`** at` 32k` and**`84.9% → 86.8% → 90.6%`** at` 64k` uncapped (`82.2% → 84.4% → 88.9%` on`hard45` ).
2. **Pure `mHC` state-carry gain (`+7.5` to `+7.6 pts` over `Anchor-Only T=2`):** Running two passes*without* recurrent state carry (` Anchor-Only T=2` ) drops below Stock at both token limits (`77.4%` at`32k` ,`83.0%` at`64k` ). Opening the`mHC` state channel lifts accuracy to**`84.9%` (`32k`) and `90.6%` (`64k`)** , hitting**` 90.0%` (`18/20`) vs. Stock’s `80.0%` (`16/20`)** on the` 20` brand-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` ).
3. **Complementary Checkpoints Shipped Side-by-Side:**`v41-000060` is now the default root checkpoint on Hugging Face (`90.6%` on`lcb53 @ 64k` ), while`checkpoints/r5a-000300` (`52.6%`` 10/19` on multi-turn`Agentic19` repo bugfixing vs. Stock’s`15.8%`` 3/19` ) and`checkpoints/r5a-000250` (`75.8%` on`1.75-bit` Apple Silicon`sushi` ) remain preserved under`checkpoints/` .

## Engines and How to Run It Yourself[#](#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`](https://github.com/beamivalice/sushi)** ([PR `#280`](https://github.com/beamivalice/sushi/pull/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`](https://github.com/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`](https://github.com/vllm-project/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`](https://github.com/jasontitus/mlx-stq-trainer/blob/main/vllm_loop/README.md))* | 
| **Merged `4×` / `8×` NVIDIA DGX Sparks (`200 GbE`)** | **[` vLLM`](https://github.com/vllm-project/vllm)** Ray TP=4/8 + NVMe Engram offload | `deepseek-ai/DeepSeek-V4.1-Flash-1017` | `./run_sparks_vllm_cluster.sh 2-3` in[`jasontitus/dsv41-loop-eval`](https://github.com/jasontitus/dsv41-loop-eval) | 

### Code, Weights & Credits[#](#code-weights--credits)

- **Hugging Face Adapter Weights (`v41-000060` root + `R5-A@300`, `R5-A@250`, `R4-B'@200`):**[` sliderforthewin/Looped-DeepSeek-V4.1-Flash`](https://huggingface.co/sliderforthewin/Looped-DeepSeek-V4.1-Flash)
- **1-Command Mac & CUDA Installers & 6-Arm Eval Kit:**[`jasontitus/dsv41-loop-eval`](https://github.com/jasontitus/dsv41-loop-eval)*(problem ID lists, `agentic_tool_eval.py`, and `same_pod_6arm_32k_64k_summary.json` live in [`bench_data/`](https://github.com/jasontitus/dsv41-loop-eval/tree/main/bench_data))*
- **Recurrent Trainer & CUDA-Graph `vLLM` Plugin (`vllm_loop`):**[` jasontitus/mlx-stq-trainer`](https://github.com/jasontitus/mlx-stq-trainer)
- **Apple Silicon `sushi` Recurrent Decoder PR:**[`beamivalice/sushi#280`](https://github.com/beamivalice/sushi/pull/280)
- **Acknowledgements:** Huge thanks to**[`@TDI782476773395`](https://x.com/TDI782476773395)** and**[`@Daniel00Higgins`](https://x.com/Daniel00Higgins)** for their sharp analysis and bug finding on`Looped Qwen3.8-Next` (`v3.1` ) that directly drove the`v4.1` bug fixes, retuning,`vLLM` CUDA-Graph & fused-LoRA speedups, and`64k` uncapped evaluation;**[`UnstableLlama/exl3-qlora`](https://github.com/UnstableLlama/exl3-qlora)** and**Turboderp’s [`ExLlamaV3`](https://github.com/turboderp-org/exllamav3)** for inspiring the streamed-MoE QLoRA trainer foundation;**[`@beamivalice`](https://github.com/beamivalice)** for[` sushi`](https://github.com/beamivalice/sushi) and pointing me to Apple’s**LoopCD** paper ([`arXiv:2610.02185`](https://arxiv.org/abs/2610.02185) ); and**` beamster`** for the` STQ-1.75bpw` and`STQ-2.7bpw` DeepSeek-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`).
