Looped Qwen3.8-27B (v3.1.2 + LoopCD-Hidden + Calibrated BF16 MTP + 1.76-Bit Bonsai Support)

Bringing Inkling-2-Mini's recurrent latent-depth + native MTP architectural benefits to frozen Qwen3.8-27B via a lightweight 62.8M-parameter (240 MB, 0.23% of 27B) gated workspace adapter β€” served via standalone plugins for both mlx-serve (Apple Silicon) and vLLM (CUDA).

Public Benchmark Comparison

Why This Exists

Inkling-2-Mini (3p) demonstrated that looping internal transformer blocks across multiple latent passes β€” paired with native Multi-Token Prediction (MTP) β€” lets a model perform heavier computation in latent space instead of emitting tens of thousands of verbose Chain-of-Thought tokens.

Looped Qwen3.8-27B retrofits that exact architectural synergy onto an already-trained frozen dense model (Qwen/Qwen3.8-27B):

  • Zero base-weight duplication (~1.05 GB drop-in overlay): Base Qwen3.8-27B (BF16, FP8, or 8-bit MLX) stays 100% frozen; middle layers 24..39 are wrapped in a 240 MB per-pass gated_workspace adapter (WorkspaceEntry + CrossPassMixer + pass-gated rank-16 LoRA).
  • Runtime-switchable depth (T = 1 / 2 / 3): T=1 is bit-identical to stock Qwen3.8-27B; T=2 and T=3 scale effective hybrid depth to 80 and 96 layers with zero retraining.
  • 53%–69% fewer <think> tokens + 99% tok/s parity: Calibrating Qwen3.8's native 1-layer BF16 MTP head (model-mtp.safetensors) achieves 3.57 accepted draft tokens/round (36.7 tok/s vs 37.1 tok/s stock single-stream on Apple M5 Max), finishing our 10-suite 2,321-problem H200 evaluation 3.7Γ— faster than stock T=1.
  • Zero-fork plugins for Mac & CUDA: Runs via standalone plugins on stock mlx-serve (v26.11.4+) and stock vLLM (v0.34+) β€” no custom engine forks required.

Official 80k Public Benchmark Scorecard (EvalScope + EvalPlus)

All Thinking suites use official Qwen/Qwen3.8-27B parameters (temperature=1.0, top_p=0.95, top_k=20, reasoning_effort="xhigh", max_tokens=81,920); EvalPlus Direct suites use greedy decoding (temperature=0.0). Unmodified base thinkingmachines/Inkling-2-Mini (3p, snapshot ed40e7da) was evaluated on the same harness (mlx-serve 26.11.4) for local reference.

Public Benchmark (n) Qwen3.8-27B Base (T=1) Looped Unguided (Ο‰ = 0) Looped + LoopCD-Hidden / v3.1 Best Token Delta Base Inkling-2-Mini (3p MoE ref)
LiveCodeBench v6 (175, 80k) 72.6% (31,566 tok, 39 caps) 73.1% (T=2) / 78.9% (15,117 tok, T=3, +6.3 pp) 73.3% β†’ 85.0% (v3.1 T=2, n=60 @ 64k);
56.7% β†’ 80.0% (T=3 + LoopCD, n=60 @ 24k)
-52.1% tok (-34.9% vs Ink) 82.3% (23,205 tok, 15 caps)
AIME 2024 Official (30, 80k) 93.3% (20,184 tok, 2 caps) 96.7% (9,526 tok T=2 / 11,477 tok T=3, 0 caps) 83.3% β†’ 93.3% @ 24k (v3.1 T=2 + LoopCD, 9,009 tok) -52.8% tok β€”
AIME 2025 Official (30, 80k) 90.0% (19,567 tok, 1 cap)
(73.3% @ 24k)
86.7% (12,255 tok v3 T=3; 9,137 tok v3.1 T=3) 73.3% β†’ 90.0% @ 24k (v3.1 T=3 + LoopCD, 9,957 tok);
90.0% β†’ 93.3% @ 64k (v3.1 ckpt_300 T=2)
-49.1% tok 96.7% (17,158 tok, 1 cap)
MMLU-Pro (500, 80k) 82.2% (4,968 tok, 23 caps) 80.0% (T=2) / 83.2% (1,580 tok, T=3, +1.0 pp) 86.0% β†’ 89.3% (v3 T=3 + LoopCD, n=150 @ 24k, 1,432 tok) -68.2% tok β€”
HumanEvalFix (164, <think>) 98.8% (2,289 tok) 93.3% (T=2) / 95.1% (254 tok, T=3) 97.0% (159/164) (v3 T=3 + LoopCD, 223 tok);
96.3% (v3 T=2 + LoopCD & v3.1 T=4)
-90.3% tok β€”
MBPP+ Direct (378, greedy) 77.5% (108 tok) 79.6% (93 tok, T=2, +2.1 pp) 79.6% (Ο‰=0 on Direct) -13.9% tok (-76.5% vs Ink) 77.8% (395 tok)
HumanEval+ Direct (164, greedy) 79.9% (255 tok, 4 caps) 81.7% (254 tok, T=2, +1.8 pp, 0 caps) 81.7% (Ο‰=0 on Direct) -0.6% tok (-54.8% vs Ink) 82.9% (562 tok)
HumanEval+ Think (164, greedy) 81.7% (1,878 tok, 3 caps) 82.3% (T=2) / 82.9% (640 tok, T=3, +1.2 pp) 82.9% (640 tok) -65.9% tok 90.2% (med. effort)
MBPP+ Think (378, greedy) 83.6% (2,254 tok, 7 caps) 83.1% (810 tok T=2 / 707 tok T=3) 83.1% (ties 24k Base 83.1%) -68.6% tok 81.2% (499 tok)
GPQA Diamond (198, 80k) 86.9% (18,655 tok, 18 caps)
(80.8% @ 24k)
80.8% (4,740 tok T=2) / 82.3% (4,940 tok T=3) Ties 24k Base 80.8% in 3.6Γ— fewer tok;
Gate-50: 68% β†’ 80% (T=3 + LoopCD) & 82% (T=4)
-73.5% tok 86.6% (pub) (87.5% @ 63/72 live, 10,409 tok)

Update (LoopCD-Hidden + v3.1): Special thanks to @beamivalice (author of sushi) for highlighting Apple's LoopCD research (arXiv:2610.02185) and contributing LoopCD support to mlx-serve (ddalcu/mlx-serve#1348). Adding LoopCD-Hidden (0 extra FLOPs, 0 extra cache) at T=3 (Ο‰=0.15, ref="prev") lifts v3.1 +3.2 pp across 314 thinking items (+15 / -5) and is now the default profile in vllm_looped_qwen38.

Token Compression & MTP Speed

Runtime Depth Scaling & v3.1 Fix


Low-Bit Quantization & 1.76-Bit Ternary Bonsai (8-Bit / 4-Bit / 1.76-Bit)

Our 240 MB v3.1 adapter (trained on BF16) attaches zero-shot to 8-bit, 4-bit, and Prism's 1.76-bit Ternary Bonsai 2.5 27B (Had.1024) via liblooped_qwen38.dylib (v0.3.5), reducing KL divergence vs. 8-bit by -26% (0.217 β†’ 0.160) rather than amplifying quant noise.

Low-Bit Depth Scaling Across 8-Bit, 4-Bit, and 1.76-Bit Bonsai

Complete 18-Cell Depth Γ— LoopCD Grid (Identical M2 Max, Hard-18 <think> Set)

Quant & Mode (Hard-18 on M2 Max) Peak Unified RAM Score Mean Tokens 1-Stream tok/s Time / Q (1-Stream) 3-Worker Wall
8-bit Non-Looped (T=1) 32.9 GB 44.4% (8/18) 3,543 12.73 278.3s 40.7m
8-bit Looped T=2 (Ο‰=0) 34.0 GB 61.1% (11/18) 2,036 10.96 185.8s 31.6m
8-bit Looped T=2 + LoopCD (Ο‰=0.25) 34.4 GB 61.1% (11/18) 1,911 (-46%) 12.86 148.6s (-47%) 29.5m
8-bit Looped T=3 + LoopCD (Ο‰=0.15) 35.7 GB 55.6% (10/18) 2,164 (-39%) 12.48 173.4s (-38%) 36.6m
8-bit Looped T=4 (Ο‰=0) 35.8 GB 61.1% (11/18) 2,058 9.34 220.3s 43.2m
8-bit Looped T=4 + LoopCD (Ο‰=0.15) 37.0 GB 66.7% (12/18) 2,175 (-39%) 9.81 221.7s (-20%) 46.0m
4-bit Non-Looped (T=1) 22.9 GB 38.9% (7/18) 3,314 16.68 198.7s 47.4m
4-bit Looped T=2 (Ο‰=0) 24.1 GB 38.9% (7/18) 2,534 15.12 167.6s 33.7m
4-bit Looped T=2 + LoopCD (Ο‰=0.25) 23.7 GB 50.0% (9/18) 2,478 (-25%) 14.89 166.4s (-16%) 34.1m
4-bit Looped T=3 + LoopCD (Ο‰=0.15) 22.0 GB 50.0% (9/18) 2,322 (-30%) 15.12 153.6s (-23%) 38.4m
4-bit Looped T=4 (Ο‰=0) 25.7 GB 38.9% (7/18) 2,678 9.40 284.9s 51.7m
4-bit Looped T=4 + LoopCD (Ο‰=0.15) 23.8 GB 50.0% (9/18) 2,808 9.75 288.0s 62.8m
Bonsai 1.76-bit Non-Looped (T=1) 12.1 GB (10.6G no-MTP) 44.4% (8/18) 3,716 20.36 182.5s 50.2m
Bonsai 1.76-bit Looped T=2 (Ο‰=0) 12.3 GB (11.5G no-MTP) 44.4% (8/18) 3,261 11.82 275.9s 57.4m
Bonsai 1.76-bit Looped T=2 + LoopCD (Ο‰=0.25) 12.3–17.1 GB 50.0% (9/18) 3,356 10.42 322.1s 61.8m
Bonsai 1.76-bit Looped T=3 + LoopCD (Ο‰=0.15) 13.7 GB (11.8G no-MTP) 44.4% (8/18) 2,974 (-20%) 11.21 265.3s 68.8m
Bonsai 1.76-bit Looped T=4 (Ο‰=0) 18.4 GB 27.8% (5/18) 3,690 7.41 498.0s 101.0m
Bonsai 1.76-bit Looped T=4 + LoopCD (Ο‰=0.15) 17.0 GB 38.9% (7/18) 3,400 6.78 501.5s 100.8m
  • 24 GB M4 Pro Mac mini (v3.1.2 / plugin 0.3.5): Looped Bonsai loads at 12.5 GB Peak Unified RAM (11.5 GB free!) with 32k context + 71.8%–79.3% MTP acceptance (+41% faster decode), runs 6 simultaneous 16k streams at 18.35 tok/s aggregate in 12.1 GB RAM, and scores 63.3% (19/30) on official AIME 2025 (19/19 = 100% on every problem under the 14.3k cap).

1.76-Bit Looped Bonsai Beats 8-Bit and BF16 Non-Looped


Included Files & SHA-256 Provenance

File Size Description SHA-256
ckpt_final.safetensors 240 MB Primary v3 adapter (682 tensors, 62,853,632 params; Stage 1A + 1B + Stage 2 GSPO RLVR) 0983e9d8c0c44d8d8daa5f0f8213724a33ca6498c5bcc9dd5ee962511b918596
ckpt_final.json <1 KB LoopConfig metadata (core_start=24, core_end=40, gated_workspace) 6087606feb6355523134d93e4fa12f9c9a9c3c5a3b498818a82cce525540370b
model-mtp.safetensors 810 MB Calibrated 15-tensor BF16 native Qwen3.8 MTP speculative drafter e058c2481ca8b8fcad2b08b96022d6b6b50254acfcfd47efdb9ea2001fa5b77a
v3.1/ckpt_200.safetensors 240 MB v3.1 stop-guard checkpoint (--lam-stop 0.50 + token effort buckets; recovers +3/18 regressed GPQA items while keeping 6/6 anchors) f2f8e31f596384ce7ce04aba43aac76d0215a3db48dd9e9393b0cf42fd1ec1f6
v3.1/ckpt_200.json <1 KB v3.1 LoopConfig metadata 01e3d0977358d94aa873de978c93c2cde40e03293b8e870198fc62dff06801fb
liblooped_qwen38.dylib 1.8 MB Prebuilt macOS arm64 mlx-serve plugin (v0.3.5 with LoopCD-Hidden, BF16 MTP, and native 1.76-bit Bonsai Hadamard support, built against mlx-serve v26.11.4 kit) 065dbec05cc527528db85afef2f18eda631ae7a3accb59114a5d13273f0f5f4d
export_mlx_serve_pack.py 20 KB Zero-copy symlinked pack exporter for mlx-serve (safe symlink overwrite & overlap guards) (script)

Quickstart 1: Apple Silicon Mac (Browser Chat, Mac App, Claude Code, Cursor)

Works seamlessly with Homebrew mlx-serve (brew install ddalcu/mlx-serve/mlx-serve), MLX-Serve.app, or fresh Macs β€” and automatically reuses any Qwen3.8-27B already in ~/.mlx-serve/models/ or ~/.cache/huggingface/hub/ (0 GB base re-download):

curl -fsSL https://raw.githubusercontent.com/jasontitus/loopedqwen/main/install_mac.sh | bash
  • Browser Chat UI: Opens automatically at http://127.0.0.1:11234 as soon as loading completes (or download Looped-Qwen3.8-Mac-Installer.dmg from GitHub Releases).
  • Claude Code / Codex / OpenCode / Aider: Run mlx-serve launch claude (or codex, opencode, aider).
  • Cursor / Cline / Roo Code / ChatBox: Set OpenAI Base URL = http://127.0.0.1:11234/v1, API Key = local, Model = Looped-Qwen3.8-27B.
  • Pure Python (mlx-lm, no mlx-serve binary): Append -s -- --python. See the full Everyday AI User Guide.

Quickstart 2: NVIDIA CUDA GPUs (vLLM β€” 1-Line Auto-Installer or 2-Line pip)

No fork of vLLM required β€” vllm-looped-qwen38 registers automatically via vllm.general_plugins and auto-downloads v3.1/ckpt_200.safetensors from HuggingFace:

# Option A: One-line CUDA installer (auto-detects VRAM: BF16 on 80GB+, FP8 on 48GB / 2x24GB)
curl -fsSL https://raw.githubusercontent.com/jasontitus/loopedqwen/main/install_cuda.sh | bash

# Option B: Existing vLLM environment (2 commands β€” defaults to T=3 + LoopCD omega=0.15)
pip install "git+https://github.com/jasontitus/loopedqwen.git#subdirectory=vllm_looped_qwen38"
vllm serve Qwen/Qwen3.8-27B \
  --hf-overrides '{"architectures": ["LoopedQwen3_5ForCausalLM"]}' \
  --dtype bfloat16 \
  --max-model-len 81920 \
  --port 8000

Architecture & Ecosystem

Full training code (including our checkpointed log-space WY GatedDeltaNet chunk scan), plugins, and raw per-item evaluation JSONLs: https://github.com/jasontitus/loopedqwen

Downloads last month

-

Downloads are not tracked for this model. How to track
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for sliderforthewin/Looped-Qwen3.8-27B

Base model

Qwen/Qwen3.8-27B
Finetuned
(1,086)
this model

Paper for sliderforthewin/Looped-Qwen3.8-27B