Skip to content

Releases

v3.1.2 — Plugin 0.3.5 (Bonsai MTP 0% -> 78%), Safe Exporter, & vLLM Guards

Choose a tag to compare

@jasontitus jasontitus released this 29 Nov 04:36

Looped Qwen3.8-27B v3.1.2 (liblooped_qwen38 v0.3.5)

Highlights

  1. Plugin v0.3.5 — Fixed Bonsai 1.76-bit MTP Speculative Decoding (0.0% → 71.8%–79.3% acceptance, +41% faster <think> decode, ~1.3 GB less RAM) (PR #3):
    • Synced plugins/looped_qwen38 with the official CommunityServe/plugins catalog (v0.3.5) while preserving thinking_default = .on and effort_vocab = .qwen38.
    • Hands the host Weight.side/.block on Prism Bonsai Hadamard packs instead of building a separate 8-bit unrotated head, saving ~1.3 GB RAM and restoring 71.8%–79.3% MTP draft acceptance (1.06 accepted tokens/round) on a 24 GB M4 Pro Mac mini at just 12.5 GB peak Unified Memory with 32k context.
    • Built against mlx-serve-plugin-kit-26.11.4 (Zig 0.17.0), passed Zig unit tests and mlx-serve plugin check (26.11.4).
  2. Safe Pack Re-Exports & Regression Tests (PR #2):
    • scripts/export_mlx_serve_pack.py now never overwrites base model generation_config.json through stale symlinks (write_pack_file), refuses overlapping --out paths (check_out_dir), and drops stale base links (remove_base_links) with 8/8 stdlib regression tests.
  3. Checkpoint Compatibility, TP=1 Enforcement, Atomic Hot-Swap, & Opt-In Loop Guards (PR #1):
    • LoopConfig.from_metadata / FlashLoopConfig.from_metadata in scripts/run_mlx.py, strict TP=1 validation in install_cuda.sh, CUDA-Graph-safe cd_thinking_buf + 1D packed batch isolation for LoopCD-Hidden, two-phase atomic reload_loop_adapters(), T_max pass-slot clamping, and opt-in loop_guards.py / form_a_u1_quant.py modules.
  4. 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 | bash

v3.1.1 — mlx-serve Thinking/Sampler Defaults, 24 GB Mac 16k Context, 2.6x MTP Fix, & Bonsai Support

Choose a tag to compare

@jasontitus jasontitus released this 29 Nov 00:33

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 | bash

What's Improved & Fixed (liblooped_qwen38 v0.3.4)

  1. Thinking Mode & temp = 0.6 Enabled by Default in mlx-serve: Fixed p.chat.thinking_default (.off -> .on), added p.chat.effort_vocab = .qwen38, and updated exported generation_config.json (temperature: 1.0 -> 0.6) so browser chat and API calls engage <think> scratchpad reasoning out of the box.
  2. Full 16,384-Token Context Window + Prefix Cache on 24 GB Macs: export_mlx_serve_pack.py now strips unused vision_tower.* entries (~850 MB phantom weight billing saved), and install_mac.sh auto-selects --ctx-size 16384 --kv-quant 8 --no-mtp on <32 GB Macs instead of clamping context to 890 tokens.
  3. 2.6x Faster BF16 MTP Speculative Decoding on 32 GB+ Macs: Fixed [Load::eval_gpu] by loading sidecar .safetensors on a CPU stream in mtp.zig and plugin.zig.
  4. Installer Polish (install_mac.sh): Fixed Homebrew mlx-serve 26.11.4 detection (plugin --help exit status) and plugin check path resolution; verified zero-copy reuse of mxfp4, 4-bit, 6-bit, and 8-bit local packs.
  5. Native Prism Bonsai 2.5 27B (1.76 bpw Hadamard) + Mixed 4/6/8-bit Gauge Support: Added native signed Walsh-Hadamard support in liblooped_qwen38.dylib (v0.3.4), fixed 6-bit _linear_dims in looped_qwen38.py, and added scripts/build_loop_mixed_pack.py.

v3.1.0 — Easy Mac & GPU Setup for AI Users + LoopCD-Hidden + Resolved Build Issues

Choose a tag to compare

@jasontitus jasontitus released this 28 Nov 21:01

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.


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):
    Download Looped-Qwen3.8-Mac-Installer.dmg below, open it, and right-click → Open on Install 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) or http://<gpu-ip>:8000/v1 (CUDA)
    • API Key: local
    • Model: Looped-Qwen3.8-27B (Mac) or Qwen/Qwen3.8-27B (CUDA)

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 | bash

Resolved Issues in v3.1.0

  1. Resolved: Zig plugin source builds failing on external Macs (plugins/looped_qwen38/build.zig.zon) — Replaced a local scratch path with relative mlx-serve-plugin-kit and added ./plugins/looped_qwen38/build_from_source.sh, which automatically fetches mlx-serve-plugin-kit-26.11.4 and its pinned Zig 0.17.0 compiler.
  2. Resolved: --adapter CLI flag error in scripts/export_mlx_serve_pack.py — Added --adapter as a first-class alias for --checkpoint to match all documentation examples.
  3. Resolved: Manual HuggingFace <hash> cache path hunting & missing .json sidecar errors — export_mlx_serve_pack.py now defaults to --base-model auto, auto-downloads v3.1/ckpt_200.safetensors + model-mtp.safetensors, and falls back cleanly when a .json metadata sidecar is omitted.
  4. Resolved: Re-downloading 15–29 GB base models for existing mlx-serve / Homebrew users — install_mac.sh and export_mlx_serve_pack.py automatically detect /opt/homebrew/bin/mlx-serve / MLX-Serve.app and reuse any Qwen3.8-27B pack already in ~/.mlx-serve/models/ or ~/.cache/huggingface/hub/ (0 GB base download, zero Python pip packages).
  5. Resolved: Uncalibrated drafter/ & stock mtp.* shard collisions on mlx-serve Qwen3.8 packs — export_mlx_serve_pack.py now excludes uncalibrated base drafter/ directories and strips stock mtp.* entries from model.safetensors.index.json when linking our calibrated model-mtp.safetensors.
  6. Resolved: mlx-serve subcommand mismatch & missing LoopCD-Hidden on Mac — Standardized mlx-serve --model / mlx-serve run Looped-Qwen3.8-27B, exported packs directly to ~/.mlx-serve/models/Looped-Qwen3.8-27B, and added native LoopCD-Hidden (ω = 0.15 for T >= 3) into liblooped_qwen38.dylib (v0.3.1).
  7. Resolved: Silent T=1 fallback on CUDA vLLM when VLLM_LOOPED_CKPT was unset — vllm-looped-qwen38 (v0.3.1) now auto-downloads v3.1/ckpt_200.safetensors from 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"]}').
  8. Resolved: No standalone Python option for Mac users without mlx-serve — Added install_mac.sh --python, scripts/run_mlx.py, and root requirements.txt.

Headline Benchmark Lift (v3.1 + LoopCD-Hidden + Calibrated BF16 MTP)

  • LiveCodeBench v6: 72.6% → 78.9% (175 problems @ 80k, -52% tokens); 73.3% → 85.0% (60 stratified 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, 0 caps) and 90.0% on AIME 2025 (@ 24k with v3.1 T=3 + LoopCD in half the tokens; 93.3% @ 64k).
  • MMLU-Pro & HumanEvalFix: 86.0% → 89.3% on MMLU-Pro (-69% tokens) and 97.0% (159/164) on HumanEvalFix (-90% tokens).
  • 99% Single-Stream tok/s Parity: Calibrated BF16 MTP sidecar (model-mtp.safetensors) achieves 3.57 accepted draft tokens/round (36.7 tok/s at T=2 vs. 37.1 tok/s stock T=1 on Apple M5 Max).
  • New Architecture Support: Includes MLX + vLLM training 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

Choose a tag to compare

@jasontitus jasontitus released this 24 Nov 19:56

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.