Instructions to use sliderforthewin/Looped-Qwen3.8-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use sliderforthewin/Looped-Qwen3.8-27B with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download sliderforthewin/Looped-Qwen3.8-27B --local-dir Looped-Qwen3.8-27B
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Looped Qwen3.8-27B (v3 + Calibrated BF16 MTP + v3.1 Stop-Guard Preview)
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).
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 GBdrop-in overlay): BaseQwen3.8-27B(BF16, FP8, or 8-bit MLX) stays 100% frozen; middle layers24..39are wrapped in a240 MBper-passgated_workspaceadapter (WorkspaceEntry+CrossPassMixer+ pass-gated rank-16 LoRA). - Runtime-switchable depth (
T = 1 / 2 / 3):T=1is bit-identical to stockQwen3.8-27B;T=2andT=3scale effective hybrid depth to80and96layers with zero retraining. - 53%β69% fewer
<think>tokens + 99%tok/sparity: Calibrating Qwen3.8's native 1-layer BF16 MTP head (model-mtp.safetensors) achieves3.57accepted draft tokens/round (36.7 tok/svs37.1 tok/sstock single-stream on Apple M5 Max), finishing our 10-suite 2,321-problem H200 evaluation 3.7Γ faster than stockT=1. - Zero-fork plugins for Mac & CUDA: Runs via standalone plugins on stock
mlx-serve(v26.11.4+) and stockvLLM(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 Qwen3.8-27B v3 (+ v3.1 in parens) |
Token Delta | Base Inkling-2-Mini (3p MoE ref) |
|---|---|---|---|---|
LiveCodeBench v6 (175, 80k) |
72.6% (31,566 tok, 39 caps) |
73.1% (13,147 tok, T=2) / 78.9% (15,117 tok, T=3, +6.3 pp) |
-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) |
-52.8% tok |
β |
AIME 2025 Official (30, 80k) |
90.0% (19,567 tok, 1 cap) |
86.7% (13,445 tok T=2 / 12,255 tok T=3) (v3.1: 21/21=100% live @ 5,189 tok; S1A: 96.7%/100%) |
-31.3% tok |
96.7% (17,158 tok, 1 cap) |
MMLU-Pro (500, 80k) |
82.2% (4,968 tok, 23 caps) |
80.0% (1,542 tok, T=2) / 83.2% (1,580 tok, T=3, +1.0 pp) |
-68.2% tok |
β |
MBPP+ Direct (378, greedy) |
77.5% (108 tok) |
79.6% (93 tok, T=2, +2.1 pp) |
-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) |
-0.6% tok (-54.8% vs Ink) |
82.9% (562 tok) |
HumanEval+ Think (164, greedy) |
81.7% (1,878 tok, 3 caps) |
82.3% (642 tok, T=2) / 82.9% (640 tok, T=3, +1.2 pp) |
-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) |
-64.1% tok |
81.2% (499 tok) |
GPQA Diamond (198, 80k) |
86.9% (18,655 tok, 18 caps) |
80.8% (5,473 tok T=2) / 82.3% (4,940 tok T=3) (v3.1: 15/24 vs 12/24 subset @ 8,259 tok) |
-70.7% tok |
86.6% (pub) (87.5% @ 63/72 live, 10,409 tok) |
HumanEvalFix (164, greedy) |
98.8% (2,289 tok) |
93.3% (268 tok, T=2) / 95.1% (254 tok, T=3) |
-88.3% tok |
β |
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.7 MB |
Prebuilt macOS arm64 mlx-serve plugin (v0.3.0, built against mlx-serve v26.11.4 kit) |
34395e04c2a430f4799facb1c581bb4001c67028b109e36292a3b6c4a548aaca |
export_mlx_serve_pack.py |
4 KB |
Zero-copy symlinked pack exporter for mlx-serve |
(script) |
Quickstart 1: Apple Silicon (mlx-serve Plugin)
# 1. Install the standalone LoopedQwen38 dylib plugin into stock mlx-serve (v26.11.4+)
mlx-serve plugin install liblooped_qwen38.dylib --yes
# (Ensure external plugins are enabled in ~/.mlx-serve/plugins.json: {"enabled": true})
# 2. Export a zero-copy symlinked pack over your local Qwen3.8-27B-8bit directory
python export_mlx_serve_pack.py \
--base-model /path/to/Qwen3.8-27B-8bit \
--checkpoint ckpt_final.safetensors \
--mtp model-mtp.safetensors \
--num-passes 2 \
--out ./looped_qwen38_pack
# 3. Serve at T=2 (or override num_passes to 1, 2, or 3 at launch)
mlx-serve --model "$PWD/looped_qwen38_pack" \
--host 127.0.0.1 --port 11234 --max-concurrent 24 --timeout 28800
Quickstart 2: NVIDIA CUDA GPUs (vLLM Plugin)
No fork of vLLM required β vllm-looped-qwen38 registers automatically via vllm.general_plugins:
pip install "git+https://github.com/jasontitus/loopedqwen.git#subdirectory=vllm_looped_qwen38"
VLLM_LOOPED_CKPT=/path/to/ckpt_final.safetensors \
VLLM_LOOPED_NUM_PASSES=2 \
vllm serve Qwen/Qwen3.8-27B \
--hf-overrides '{"architectures": ["LoopedQwen3_5ForCausalLM"]}' \
--dtype bfloat16 \
--max-model-len 81920 \
--port 8000
Full training code (including our checkpointed log-space WY GatedDeltaNet chunk scan), plugins, and raw per-item evaluation JSONLs: https://github.com/jasontitus/loopedqwen
Quantized
Model tree for sliderforthewin/Looped-Qwen3.8-27B
Base model
Qwen/Qwen3.8-27B


