github beamivalice/sushi v1.9.1
sushi v1.9.1 — Qwen4-35B-A3B

38 minutes ago

v1.9.1 — Qwen4-35B-A3B (2026-12-04)

Highlight: Day-1 Qwen4-35B-A3B Support & Qwen4 Kernel Optimizations

  • Ready-to-pull Qwen4-35B-A3B (qwen4_moe) packs & day-1 runtime (#438, #441, #444, #448, #462):
    • 32 GB+ Macs: sushi pull qwen4-35b-a3b:4bpw (default — beamster/Qwen4-35B-A3B-Sushi-STQ-4bpw)
    • 24 GB Macs: sushi pull qwen4-35b-a3b:3bpw (beamster/Qwen4-35B-A3B-Sushi-STQ-3bpw)
    • Native 128|256 QSA Metal kernels, GQA 8..16 NAX gather kernels, and direct BF16 n-gram safetensors shards.
    • Switched qwen3.8-flash-next catalog defaults to STQ and dropped legacy affine-EXL3 Qwen3.8 and MiMo from recommendations.
  • Resident BF16 with PLE on SSD (#452): Qwen4 BF16 checkpoints (qwen4_moe / Qwen4-35B-A3B and qwen4_exp) now load resident by default with the 38.1 GiB PLE n-gram table kept on SSD (and excluded from in-memory accounting), keeping vision, 32 Cooler rows, and MTP active.
  • Major Qwen4 & Qwen4-MoE kernel speedups across NAX (M5) and non-NAX (M1–M4):
    • Pure-SIMD gdn_pipelined & guarded verifySharedHardware(), fused Indexer Q (HD=128|256), fused batched KV quant append, and dynamic blocks_shape[2] in qsa_nax (+74% NAX budget=4096 prefill) (#430, #436).
    • 4q × gqa tiled block-union exact QSA prefill gather (+6.0–14.9% non-NAX prefill) and fused off-NAX sushi_qsa_score_simd block scorer (-35.9% indexer ms @ 32k, -192 MiB/slot @ 128k) (#447, #453).
    • Resident BF16 fused MoE decode/verify kernels (rows=1..16, 1.20–1.29× on qwen4_moe) and streamed rows=1 down+reduce (1.26–1.51×) (#455).
    • BF16 & 4D STQ 3-bit/gs64 coarse MTP draft rerank + exact top-32 rescore and calibrated STQ MTP cost priors (+11.6% NAX code 4k, +11.9% prose 16k, +5.0% off-NAX, 100% exact acceptance) (#456).
    • Pure-SIMD shared_trellis Part-B (exl3_fz_simd), BF16 .stored countedFits, register-lean ROWS_SMAT, and hwJoinedRowsMax 8 -> 16 off-NAX (+7.1–8.4% decode, +11.8% batched N=16 off-NAX) (#459).

Bug Fixes

  • Fixed streamed DeepSeek-V4.1 (STQ 2.7bpw) decode regression vs 1.8.1 by replacing mid-forward mlx_array_eval drains with Cooler waitWritten async readbacks, keeping solo copy rounds in the narrow verify arena, keeping single-request streamed DSv4.1 at one row (--max-concurrent 1), and adding working-set headroom to streamedRowsCap (#450, #457 — thanks @PominoBell).
  • Fixed --memory-budget-gb filling routed experts before reserving --max-concurrent slots (#418, #421 — thanks @nikolay-bratanov).
  • Fixed sushibar covering the clock on macOS 27 multi-display setups by falling back to NSStatusItem (#419, #426 — thanks @nikolay-bratanov).
  • Fixed Sushi Cooler refusing explicit --ctx-size above serve_defaults.context up to the model's window, e.g. 1048576 on DeepSeek-V4.1 (#420, #427 — thanks @nikolay-bratanov).
  • Fixed streamed Qwen3.8 looped reasoning (--loop-depth >= 2) crashing during warmup by guarding batched GDN decode (#424, #425 — thanks @theblackport and @seanryanjohnston).
  • Fixed GenerationOutOfMemory on long-context Sushi Cooler sessions by trimming Cooler pool.free across restore/reserve/write-through, borrowing QSA history zero-copy, and eagerly freeing slot GPU state (#428, #437 — thanks @balr0g).
  • Fixed sushi convert stq failing on tensors > 2 GiB on macOS by chunking source.preadAll at 1 GiB (#433, #434 — thanks @Cianidos).
  • Hardened the STQ encoder (hy4/step5 revision hashing, pre-flight input parity, Engram bounds, header validation, errdefer leaks, crash-durable publish, and capture loads opting out of Cooler) (#446, #451).
  • Gated Web UI / API loop availability on Sushi Cooler eligibility, clarified STQ-only loop/ packs in docs, and fixed Qwen4 tokenizer-compat/chat_template.jinja fallback (#429, #432, #439).

Other Enhancements

  • Standardized expert cache bias presets (off|low|medium|high|max) across CLI, engine, and Web UI, including BF16 qwen4_moe (#449, #460).
  • Added mixed-precision --k-rule/--recipe and 3D/sharded --hessians to sushi convert stq, plus vectorized STQ encoder Metal search/PAIR1 kernels (#422 — thanks @STRML; #431).
  • Included build-time git describe --tags --always --dirty in sushi --version and updated bug/performance issue templates (#461).

Don't miss a new sushi release

NewReleases is sending notifications on new releases.