Repository navigation
Releases
v3.1.2 — Plugin 0.3.5 (Bonsai MTP 0% -> 78%), Safe Exporter, & vLLM Guards
Looped Qwen3.8-27B v3.1.2 (liblooped_qwen38 v0.3.5)
Highlights
- Plugin
v0.3.5— Fixed Bonsai1.76-bitMTP Speculative Decoding (0.0%→71.8%–79.3%acceptance,+41%faster<think>decode,~1.3 GBless RAM) (PR #3):- Synced
plugins/looped_qwen38with the officialCommunityServe/pluginscatalog (v0.3.5) while preservingthinking_default = .onandeffort_vocab = .qwen38. - Hands the host
Weight.side/.blockon Prism Bonsai Hadamard packs instead of building a separate8-bitunrotated head, saving ~1.3 GBRAM and restoring71.8%–79.3%MTP draft acceptance (1.06accepted tokens/round) on a24 GBM4 Pro Mac mini at just12.5 GBpeak Unified Memory with32kcontext. - Built against
mlx-serve-plugin-kit-26.11.4(Zig 0.17.0), passed Zig unit tests andmlx-serve plugin check(26.11.4).
- Synced
- Safe Pack Re-Exports & Regression Tests (PR #2):
scripts/export_mlx_serve_pack.pynow never overwrites base modelgeneration_config.jsonthrough stale symlinks (write_pack_file), refuses overlapping--outpaths (check_out_dir), and drops stale base links (remove_base_links) with8/8stdlib regression tests.
- Checkpoint Compatibility,
TP=1Enforcement, Atomic Hot-Swap, & Opt-In Loop Guards (PR #1):LoopConfig.from_metadata/FlashLoopConfig.from_metadatainscripts/run_mlx.py, strictTP=1validation ininstall_cuda.sh, CUDA-Graph-safecd_thinking_buf+ 1D packed batch isolation forLoopCD-Hidden, two-phase atomicreload_loop_adapters(),T_maxpass-slot clamping, and opt-inloop_guards.py/form_a_u1_quant.pymodules.
- MIT License: Added repository-wide MIT
LICENSE.
Quick Upgrade (~5 seconds, 0 GB re-downloaded)
curl -fsSL https://raw.githubusercontent.com/jasontitus/loopedqwen/main/install_mac.sh | bashv3.1.1 — mlx-serve Thinking/Sampler Defaults, 24 GB Mac 16k Context, 2.6x MTP Fix, & Bonsai Support
v3.1.1 — mlx-serve Reasoning/Sampler Defaults, 24 GB Mac 16k Context, 2.6x MTP Fix, & Bonsai Support
Upgrade in ~5 seconds on Apple Silicon (0 GB base weights re-downloaded):
curl -fsSL https://raw.githubusercontent.com/jasontitus/loopedqwen/main/install_mac.sh | bashWhat's Improved & Fixed (liblooped_qwen38 v0.3.4)
- Thinking Mode &
temp = 0.6Enabled by Default inmlx-serve: Fixedp.chat.thinking_default(.off->.on), addedp.chat.effort_vocab = .qwen38, and updated exportedgeneration_config.json(temperature: 1.0 -> 0.6) so browser chat and API calls engage<think>scratchpad reasoning out of the box. - Full
16,384-Token Context Window + Prefix Cache on24 GBMacs:export_mlx_serve_pack.pynow strips unusedvision_tower.*entries (~850 MBphantom weight billing saved), andinstall_mac.shauto-selects--ctx-size 16384 --kv-quant 8 --no-mtpon<32 GBMacs instead of clamping context to890tokens. - 2.6x Faster BF16 MTP Speculative Decoding on
32 GB+Macs: Fixed[Load::eval_gpu]by loading sidecar.safetensorson a CPU stream inmtp.zigandplugin.zig. - Installer Polish (
install_mac.sh): Fixed Homebrewmlx-serve 26.11.4detection (plugin --helpexit status) andplugin checkpath resolution; verified zero-copy reuse ofmxfp4,4-bit,6-bit, and8-bitlocal packs. - Native Prism Bonsai 2.5 27B (
1.76 bpwHadamard) + Mixed4/6/8-bitGauge Support: Added native signed Walsh-Hadamard support inliblooped_qwen38.dylib(v0.3.4), fixed6-bit_linear_dimsinlooped_qwen38.py, and addedscripts/build_loop_mixed_pack.py.
v3.1.0 — Easy Mac & GPU Setup for AI Users + LoopCD-Hidden + Resolved Build Issues
Looped Qwen3.8-27B v3.1.0 — Easy Mac & GPU Setup for Everyday AI Users + Resolved Build Issues
Looped Qwen3.8-27B upgrades Qwen 3.8 27B to think across internal recurrent passes before speaking — delivering higher coding & math accuracy in half the <think> tokens (~2–3.5× faster answers).
This release makes setup effortless for everyday AI users (Browser Chat, MLX-Serve Mac App, Claude Code, Cursor, Cline / Roo Code, ChatBox, OpenWebUI) as well as AI developers (mlx-serve, pure Python mlx-lm, vLLM, Docker, and source builds), and resolves every onboarding issue encountered by early testers.
- Plain-English User Guide:
docs/USER_GUIDE.md - HuggingFace Weights & MTP Sidecar:
sliderforthewin/Looped-Qwen3.8-27B
Start Here — For Everyday AI Users (No Coding Required)
1. Apple Silicon Mac (24 GB+ RAM)
(Already use MLX-Serve or brew install mlx-serve and already downloaded Qwen 3.8? The installer automatically reuses your existing Qwen 3.8 files with 0 GB re-downloaded!)
- Way A — Paste One Line in Terminal (Zero macOS Gatekeeper Popups):
Open Terminal (Cmd + Space→Terminal) and paste:curl -fsSL https://raw.githubusercontent.com/jasontitus/loopedqwen/main/install_mac.sh | bash - Way B — Download the Mac Disk Image (
.dmg):
DownloadLooped-Qwen3.8-Mac-Installer.dmgbelow, open it, and right-click → Open onInstall Looped Qwen3.8.command.
As soon as setup completes, your browser automatically opens http://127.0.0.1:11234 to a local ChatGPT-style chat console! Looped-Qwen3.8-27B also appears automatically inside MLX-Serve.app.
2. Connect Your Favorite AI Apps in 30 Seconds
- Claude Code / Codex / OpenCode / Aider (1 command on Mac):
mlx-serve launch claude # or: codex, opencode, aider - Cursor / Cline / Roo Code / Continue / ChatBox / OpenWebUI:
- OpenAI Base URL:
http://127.0.0.1:11234/v1(Mac) orhttp://<gpu-ip>:8000/v1(CUDA) - API Key:
local - Model:
Looped-Qwen3.8-27B(Mac) orQwen/Qwen3.8-27B(CUDA)
- OpenAI Base URL:
3. Linux PC or Cloud GPU (RunPod / Vast.ai / Lambda — 48 GB+ or 2×24 GB NVIDIA GPU)
Paste one line (auto-detects VRAM and GPU count — picks FP8 on 48 GB / 2×24 GB GPUs or BF16 on 80 GB+ GPUs):
curl -fsSL https://raw.githubusercontent.com/jasontitus/loopedqwen/main/install_cuda.sh | bashResolved Issues in v3.1.0
- Resolved: Zig plugin source builds failing on external Macs (
plugins/looped_qwen38/build.zig.zon) — Replaced a local scratch path with relativemlx-serve-plugin-kitand added./plugins/looped_qwen38/build_from_source.sh, which automatically fetchesmlx-serve-plugin-kit-26.11.4and its pinned Zig0.17.0compiler. - Resolved:
--adapterCLI flag error inscripts/export_mlx_serve_pack.py— Added--adapteras a first-class alias for--checkpointto match all documentation examples. - Resolved: Manual HuggingFace
<hash>cache path hunting & missing.jsonsidecar errors —export_mlx_serve_pack.pynow defaults to--base-model auto, auto-downloadsv3.1/ckpt_200.safetensors+model-mtp.safetensors, and falls back cleanly when a.jsonmetadata sidecar is omitted. - Resolved: Re-downloading 15–29 GB base models for existing
mlx-serve/ Homebrew users —install_mac.shandexport_mlx_serve_pack.pyautomatically detect/opt/homebrew/bin/mlx-serve/MLX-Serve.appand reuse anyQwen3.8-27Bpack already in~/.mlx-serve/models/or~/.cache/huggingface/hub/(0 GBbase download, zero Pythonpippackages). - Resolved: Uncalibrated
drafter/& stockmtp.*shard collisions onmlx-serveQwen3.8 packs —export_mlx_serve_pack.pynow excludes uncalibrated basedrafter/directories and strips stockmtp.*entries frommodel.safetensors.index.jsonwhen linking our calibratedmodel-mtp.safetensors. - Resolved:
mlx-servesubcommand mismatch & missingLoopCD-Hiddenon Mac — Standardizedmlx-serve --model/mlx-serve run Looped-Qwen3.8-27B, exported packs directly to~/.mlx-serve/models/Looped-Qwen3.8-27B, and added nativeLoopCD-Hidden(ω = 0.15forT >= 3) intoliblooped_qwen38.dylib(v0.3.1). - Resolved: Silent
T=1fallback on CUDAvLLMwhenVLLM_LOOPED_CKPTwas unset —vllm-looped-qwen38(v0.3.1) now auto-downloadsv3.1/ckpt_200.safetensorsfrom HuggingFace out of the box (pip install "git+https://github.com/jasontitus/loopedqwen.git#subdirectory=vllm_looped_qwen38"+vllm serve Qwen/Qwen3.8-27B --hf-overrides '{"architectures":["LoopedQwen3_5ForCausalLM"]}'). - Resolved: No standalone Python option for Mac users without
mlx-serve— Addedinstall_mac.sh --python,scripts/run_mlx.py, and rootrequirements.txt.
Headline Benchmark Lift (v3.1 + LoopCD-Hidden + Calibrated BF16 MTP)
- LiveCodeBench v6:
72.6% → 78.9%(175problems @80k,-52%tokens);73.3% → 85.0%(60stratified problems @64k,v3.1 T=2);56.7% → 80.0%(@ 24k,T=3 + LoopCD). - AIME 2024 & AIME 2025:
96.7%on AIME 2024 (-53%tokens,0caps) and90.0%on AIME 2025 (@ 24kwithv3.1 T=3 + LoopCDin half the tokens;93.3% @ 64k). - MMLU-Pro & HumanEvalFix:
86.0% → 89.3%on MMLU-Pro (-69%tokens) and97.0%(159/164) on HumanEvalFix (-90%tokens). - 99% Single-Stream
tok/sParity: Calibrated BF16 MTP sidecar (model-mtp.safetensors) achieves3.57accepted draft tokens/round (36.7 tok/satT=2vs.37.1 tok/sstockT=1on Apple M5 Max). - New Architecture Support: Includes MLX +
vLLMtraining and serving support for Looped Qwen3.8-Flash-Next (qwen4_exp) (docs/QWEN38_FLASH_LOOP_DESIGN.md).
Release Assets
| Asset | Description |
|---|---|
Looped-Qwen3.8-Mac-Installer.dmg |
Apple Silicon .dmg installer bundling Install Looped Qwen3.8.command, liblooped_qwen38.dylib (v0.3.1), install_mac.sh, export_mlx_serve_pack.py, and README.txt |
liblooped_qwen38.dylib |
Prebuilt macOS arm64 dynamic plugin (v0.3.1 with LoopCD-Hidden + BF16 MTP) for mlx-serve v26.11.4+ (SHA-256: de5cc74cd685f861e96d57d4593774fe3a301d0ec38ab4ac2bd8448b23acec8c) |
install_mac.sh |
One-command Apple Silicon installer (mlx-serve & --python mlx-lm modes, auto-opens Web UI) |
install_cuda.sh |
One-command NVIDIA CUDA (vLLM) installer & launcher |
export_mlx_serve_pack.py |
Zero-copy symlinked pack exporter for mlx-serve |
Gate 4 CoT-retention adapter, step 300
Recommended T=1–4 adapter for this experiment. Use with the sibling runs/gate4_cotret/ckpt_300.json in the repository and the locally quantized stock Qwen model described in HANDOFF.md. SHA-256: f7d526a7866c49c729057514247589716122210e27fbe439e511cc16cb02d987.