When we retrofitted recurrent depth + LoopCD onto frozen Qwen3.8-27B, the obvious follow-up question from local Mac users was: does looping break on ultra-low-bit quantized weights? Intuition says repeating middle layers 2–3× per token through noisy 1.76-bit ternary weights should compound quantization error.
We tested that hypothesis directly by plugging our BF16-trained 240 MB v3.1 loop adapter zero-shot (zero retraining!) onto PrismML’s 1.76-bit Ternary Bonsai 2.5 27B (Had.1024, 9.0 GB on disk) using our native mlx-serve plugin v0.3.5.
The exact opposite happened:
- Zero-shot looping reduced quantization drift: Next-token KL divergence vs.
8-bitdropped-26%(0.217 → 0.160) on a 72-prompt probe. 1.76-bitLooped Bonsai (T=2 + LoopCD,12.3–17.1 GBRAM) hit50.0%(9/18) onHard-18— beating both32.9 GB8-bitNon-Looped (44.4%) and54 GBBF16Non-Looped (44.4%), and tying22 GB4-bitLooped!- Fits comfortably on a
24 GBMac mini with apps open (12.5 GBpeak RAM,11.5 GBfree): Where4-bitLooped failed preflight (18.0 GBneeded,17.6 GBfree with Chrome open), Looped Bonsai loaded with32kcontext +72%–79%MTP draft acceptance (+41%faster decode after ourv0.3.5host-rotated Hadamard fix) and solved3/3multi-constraint tasks in191–200svs. Non-Looped’s2/3in238–243s. - Strong public benchmarks on a
24 GBMac mini (16.3 GBpeak RAM atc=6): Across284public questions (AIME 2025,LiveCodeBench v6,GPQA Gate-50,HumanEval+), Looped Bonsai scored93.5%(72/77) whenever finishing under the12.3k–14.3kbatch cap (63.3%AIME 2025,52.5%LiveCodeBench v6,64.0%GPQA Gate-50,90.9%HumanEval+ Direct).
Direct Comparison: Bonsai 2.5 Non-Looped vs. Looped
We evaluated identical 1.76-bit Ternary Bonsai 2.5 27B weights (mlx-serve plugin v0.3.5) toggling only recurrent depth (T=1/2/3/4) and zero-FLOP LoopCD-Hidden across three independent measurements:
Benchmark / Metric (1.76-Bit Ternary Bonsai 2.5) | Non-Looped (T=1) | Looped (T=2 / T=3 + LoopCD) | Delta (Looped vs. Non-Looped) |
|---|---|---|---|
Hard-18 Reasoning Score (M2 Max) | 44.4% (8/18) | 50.0% (9/18, T=2+CD) | +5.6 pp (beats 33 GB 8-bit & 54 GB BF16 T=1!) |
Next-Token KL Drift vs. 8-Bit (72 prompts) | 0.217 KL | 0.160 KL (T=3+CD) | -26% lower quantization drift |
Mean <think> Tokens (Hard-18) | 3,716 tok | 2,974 tok (T=3+CD)3,356 tok (T=2+CD) | -20% fewer tokens-10% at T=2+CD |
24 GB Mac mini Multi-Constraint Solve (32k ctx, MTP ON) | 2/3 optimal · 238–243s | 3/3 optimal · 191–200s (T=3+CD) | +1/3 solved · -19% faster wall-clock |
Peak Unified RAM (24 GB mini w/ Chrome open) | 12.1 GB (32k ctx) | 12.47 GB (32k ctx, MTP ON)11.5–11.8 GB (--no-mtp) | +0.37 GB (11.5 GB still free!) |
Every Depth Cell on 1.76-Bit Bonsai (Plus 1-Bit, 4-Bit, & 8-Bit Reference)
Optimal loop depth turns out to scale cleanly with quantization bit-width. On 1.76-bit ternary weights, T=2 + LoopCD is the clear accuracy peak (50.0%), T=3 + LoopCD maximizes token compression (-20%), and pushing to T=4 begins over-iterating ternary quantization noise (27.8%, partially rescued to 38.9% by LoopCD). For completeness, we also benchmarked PrismML’s 1-bit Bonsai 27B (Qwen3.6-27B, Q1_0_g128) on PrismML’s llama.cpp Metal fork on the exact same M2 Max Hard-18 suite:
Model & Mode (Hard-18 on M2 Max, temp=0.0) | Peak Unified RAM | Score | LCB / HE+ / GPQA / AIME | Mean Tokens | 1-Stream tok/s | Time / Q (1-Stream) | 3-Worker Wall |
|---|---|---|---|---|---|---|---|
1-bit Bonsai 27B (Qwen3.6, llama.cpp, T=1) | 10.67 GB (2.1G idle) | 16.7% (3/18) | 0/6 · 3/6 · 0/4 · 0/2 | 4,664 (15 capped) | 24.02 | 194.2s | 54.8m |
1.76-bit Bonsai 2.5 Non-Looped (T=1) | 12.1 GB (10.6G no-MTP) | 44.4% (8/18) | 2/6 · 4/6 · 0/4 · 2/2 | 3,716 | 20.36 | 182.5s | 50.2m |
1.76-bit Bonsai 2.5 Looped T=2 (ω=0) | 12.3 GB (11.5G no-MTP) | 44.4% (8/18) | 3/6 · 3/6 · 0/4 · 2/2 | 3,261 (-12%) | 11.82 | 275.9s | 57.4m |
1.76-bit Bonsai 2.5 Looped T=2 + LoopCD (ω=0.25) | 12.3–17.1 GB (11.5G no-MTP) | 50.0% (9/18) | 3/6 · 3/6 · 1/4 · 2/2 | 3,356 (-10%) | 10.42 | 322.1s | 61.8m |
1.76-bit Bonsai 2.5 Looped T=3 + LoopCD (ω=0.15) | 13.7 GB (11.8G no-MTP) | 44.4% (8/18) | 3/6 · 2/6 · 1/4 · 2/2 | 2,974 (-20%) | 11.21 | 265.3s | 68.8m |
1.76-bit Bonsai 2.5 Looped T=4 (ω=0) | 18.4 GB | 27.8% (5/18) | 1/6 · 2/6 · 0/4 · 2/2 | 3,690 | 7.41 | 498.0s | 101.0m |
1.76-bit Bonsai 2.5 Looped T=4 + LoopCD (ω=0.15) | 17.0 GB | 38.9% (7/18) | 2/6 · 3/6 · 0/4 · 2/2 | 3,400 | 6.78 | 501.5s | 100.8m |
Reference: 4-bit Non-Looped (T=1) | 22.9 GB | 38.9% (7/18) | 1/6 · 4/6 · 1/4 · 1/2 | 3,314 | 16.68 | 198.7s | 47.4m |
Reference: 4-bit Looped T=3 + LoopCD | 22.0 GB | 50.0% (9/18) | 3/6 · 3/6 · 1/4 · 2/2 | 2,322 (-30%) | 15.12 | 153.6s (-23%) | 38.4m |
Reference: 8-bit Non-Looped (T=1) | 32.9 GB | 44.4% (8/18) | 2/6 · 3/6 · 1/4 · 2/2 | 3,543 | 12.73 | 278.3s | 40.7m |
Reference: 8-bit Looped T=2 + LoopCD | 34.4 GB | 61.1% (11/18) | 4/6 · 4/6 · 1/4 · 2/2 | 1,911 (-46%) | 12.86 | 148.6s (-47%) | 29.5m |
Reference: 8-bit Looped T=4 + LoopCD | 37.0 GB | 66.7% (12/18) | 4/6 · 5/6 · 1/4 · 2/2 | 2,175 (-39%) | 9.81 | 221.7s (-20%) | 46.0m |
24 GB M4 Pro Mac Mini: 284-Question Public Benchmarks
To verify that 1.76-bit Looped Bonsai holds up beyond an 18-item slice on real consumer hardware, we ran 284 public benchmark questions directly on a 24 GB M4 Pro Mac mini (T=3 + LoopCD, c=6 simultaneous 16k streams, --no-mtp --kv-quant 8, 16.32 GB peak Unified RAM, 7.45 GB idle):
Public Suite (24 GB M4 Pro Mac mini, 16.3 GB Peak RAM) | 1.76-Bit Looped Bonsai (T=3+CD) | Accuracy When Finishing Under Cap | Mean Tokens (len_cap) | Wall Time (c=6) | 54 GB BF16 Non-Looped (24k) | 54 GB BF16 Looped (24k) |
|---|---|---|---|---|---|---|
AIME 2025 (n=30, 14.3k cap) | 19/30 (63.3%) | 19/19 (100.0%) | 8,232 (11 capped) | 218.3m (18.9 t/s) | 73.3% (22/30) | 90.0% (27/30, 10.0kt) |
LiveCodeBench v6 sub40 (n=40, 12.3k cap) | 21/40 (52.5%) | 21/22 (95.5%) | 7,319 (18 capped) | 289.6m (16.8 t/s) | 55.0% (22/40) | 77.5% (31/40, 8.9kt) |
GPQA Gate-50 (n=50, 12.3k cap) | 32/50 (64.0%) | 32/36 (88.9%) | 6,573 (14 capped) | 312.0m (17.6 t/s) | 86.0% (43/50) | 80.0% (40/50, 5.5kt) |
HumanEval+ Direct (n=164, no <think>) | 149/164 (90.9%)* | 149/162 (92.0%) | 263 (2 capped) | 64.9m (11.1 t/s) | 79.9% (EvalPlus) | 80.5% (EvalPlus) |
*HumanEval+ Direct ran against the full 80× EvalPlus test assertions using a chat-instruct prompt ("Complete the following Python function...") rather than EvalPlus’s raw completion wrapper, so treat 90.9% as strong chat-mode accuracy rather than a strict apples-to-apples beat over BF16.
Look at that middle column: across all 120 hard <think> items (AIME 2025 + LiveCodeBench v6 + GPQA Gate-50), 1.76-bit Looped Bonsai was 72/77 (93.5%) accurate whenever it finished inside the 12.3k–14.3k batch cap. 43 of the 48 misses were simply hitting the 16k context cap we set to fit 6 parallel slots (c=6) inside 16.3 GB RAM. For interactive single-user use (c=1), you have 32k context + MTP ON in just 12.5 GB RAM, giving those long derivations twice the runway.
The v0.3.5 MTP Fix & Honest Runtime Tradeoffs
Two engineering details matter if you actually run this day-to-day on a Mac:
- Fixing Bonsai MTP Draft Acceptance (
0.0% → 78%in pluginv0.3.5): In our initialv0.3.4plugin, Bonsai weights are stored in a Hadamard-rotated basis (Had.1024), while our calibrated BF16 MTP head operates in unrotated hidden space — causing0.0%draft acceptance. Applying the host-side inverse Hadamard transform at the MTP boundary inv0.3.5jumped Bonsai MTP acceptance from0.0% → 71.8%–79.3%(1.06tok/round) and sped up interactive<think>decode by+41%(12.08 tok/ssingle-stream at12.60 GBRAM on a24 GBM4 Pro Mac mini). - Honest wall-clock tradeoff (
4-bitvs.1.76-bitBonsai):- On
8-bitand4-bit, looping is strictly faster wall-clock (-47%on8-bitT=2+CD,-23%on4-bitT=3+CD) because token compression (-30%to-46%) beats the small per-token core overhead. - On
1.76-bitBonsai, each looped pass runs an extra on-the-fly Fast Walsh-Hadamard Transform (fwht) across the core blocks, which cuts single-streamtok/sfrom20.36 → 10.42–11.21 tok/s. OnHard-18, where Bonsai’s token reduction is-10%to-20%, that makesT=2+CDslower per question (322svs.183s) while winning+5.6 ppaccuracy — whereas on multi-constraint scheduling problems where looping cuts tokens-45%, Looped Bonsai still finishes19%faster (196svs.241s). - Rule of thumb: If you have
32 GB+RAM, run4-bitLooped (T=3+CD,22 GB) — it’s both smarter (+11.1 pp) and23%faster! If you have16–24 GBRAM (or want6×concurrent streams in12.1 GB),1.76-bitLooped Bonsai (T=2+CDorT=3+CD) lets you run a27Breasoning model comfortably alongside Chrome and your IDE.
- On
Links & How to Run It
- Main write-up & one-line installer: Looped Qwen3.8-27B: Retrofitting Recurrent Depth onto a Frozen Open Model
- GitHub (
v3.1.2, MIT, pluginv0.3.5): jasontitus/loopedqwen · Export script (export_mlx_serve_pack.py) - Weights & prebuilt macOS plugin: sliderforthewin/Looped-Qwen3.8-27B on HuggingFace
- Base ternary weights: prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit