github beamivalice/sushi v1.9.0-dev3
sushi v1.9.0-dev3

pre-release2 hours ago

v1.9.0-dev3 — Cooler-Native Looped Reasoning, 32-Row NAX Decode, STQ Tensor Quantizer & 5x Faster Test Suite (2026-12-03)

  • Cooler-native Looped Reasoning on DeepSeek-V4.1 & Qwen3.8-Flash-Next: adds test-time recurrent depth across CLI, Web UI, and baked loop/ pack weights with fused precompiled Metal kernels, LoopCD-Hidden contrastive decoding, prefix-cache key salting, DSpark/MTP speculative verify rollback, bit-exact T=1 parity with Stock, and 0 late PSO / 0 PlanEscape across all 10 verified M5 Ultra A/B arms.

  • Architecture-agnostic sushi convert stq tensor quantizer: converts safetensors weights to pair-major STQ packs using configurable codebooks and --hessians calibration without model-specific wiring (docs/usage-stq.md).

  • Native Gemini API surface & sushi launch agy: serves native Gemini generateContent/streaming endpoints alongside OpenAI and Anthropic routes and launches Antigravity (agy) against local Sushi servers.

  • Architecture/scheduler cleanup, Engram quarantine, and security/reliability hardening: completes Track G scheduler/model extractions and removes 83 production anytype parameters (#303), adds Engram read-timeout worker quarantine (preserving EngramReadTimeout through Hy4 disk gather), and ships multi-wave HTTP/streaming/memory hardening.

  • 5x faster test & build suite and v1.9.0-dev3 6-pack baselines: introduces -Dtest-profile=80g|200g, POSIX flock 3-lane concurrency throttling, LPT wave balancing, -Dstrip=true ReleaseFast DWARF stripping, auto-scoped arch test domains, and 3-way test-host splitting (122s warm 200G / 148s warm 80G / 340s cold 80G full 73-step suite on M5 Ultra; docs/process-test-optimization.md), alongside 6-pack M5 Ultra context ladders (4k–128k) and the 10-arm looped-reasoning A/B (docs/bench/v1.9.0-dev3/summary.md).

  • 32-row joined decode on Hy4-Flash (NAX_ROWS_MAX = 32): grouped DFly2 on M5 Macs now verifies and drafts up to 32 total rows per tick (up to 4 rows/slot across 8 concurrent requests or 2 rows/slot across 16) by routing 17–32-row dense EXL3 trunk and lm_head projections through precompiled sushi_exl3_dense_row32_i8 (projectRowsI8) with zero new sushi.metallib functions, zero late pipeline compilations, 2×16 hy4_row chunking for bit-exact f32 router/indexer/Engram linears, and per-request logits_fixed / hy4_ledger storage decoupled at max_concurrent_slots = 16.

  • 32-row joined decode and verify on Qwen3.8-Flash-Next (Sushi Cooler, M5 NAX): resident Qwen3.8 Cooler loads now join up to 32 concurrent decode rows and up to 32 total grouped-verify rows on M5 Macs (legacy MLX --qwen-mlx-engine stays capped at 16, SIMD/M1 at 8), routing 17–32-row unstacked EXL3 STQ projections (fa.o, la.out, mw.shared_down, lm_head) through precompiled sushi_exl3_dense_row32_i8 (projectRowsI8) and keeping stacked STQ banks (projectRowsSegmented) and Affine trunks (mtp_qmv, sushi_hc_read_*) at +0 B sushi.metallib delta and 0 late pipelines while decoupling MTP/verify-only fixed rings (max_mtp_joined_slots = 16).

  • Per-model SSD and RAM prefix-cache controls and Hy4-Flash RAM-only reuse: each model can now configure prefix_cache_disk_gb (whole GiB, 0 = off) and prefix_cache_mem_gb (0–512 GiB, up to 1 decimal place, 0 = off) in model-settings.json and the WebUI alongside server defaults (server.prefix_cache_disk_gb, server.prefix_cache_mem_gb) with 4-tier precedence (flag > model > server > default), live per-model SSD tier resizing, zero cross-talk between co-loaded models, sushi memory-bill --prefix-cache-disk/--prefix-cache-mem support, and seat-backed RAM prefix reuse on Hy4-Flash even when the SSD tier is off.

  • 32-row joined decode on DeepSeek-V4.1 (NAX_ROWS_MAX = 32): grouped DSpark on M5 Macs now verifies and drafts up to 32 total rows per tick (up to 4 rows/slot across 8 concurrent requests) by routing 17–32-row dense EXL3 projections through precompiled sushi_exl3_dense_row32_i8 (projectRowsI8) with zero new sushi.metallib functions, zero late pipeline compilations, decoupled 16-slot PassFixed / per-request logits_fixed storage, and Hy4-Flash / Qwen4 / Step-5 kept capped at 16 rows.

  • Experimental Step-5 (step5_vl) architecture support (no published pack yet): adds Sushi Cooler-only runtime, compiled Metal 4.0 kernels (sliding-window and DSA sparse attention with E4M3fn block-8 summaries, FP32 residual stream, post-SiLU clamped SwiGLU in sushi_exl3), native MTP-3 speculative and grouped decoding, perception_encoder vision with Step3p7ImageProcessor crop+overview parity, static memory bill (step5_bill.zig), SSD-first prefix cache (step5-state-v1), layer-major calibration capture (MLX_ENABLE_TF32=0), and sushi convert exl3 / convert vision-affine8 encoder support (pair_major STQ + bf16_split streaming). Verified on tiny BF16 and STQ fixtures; no full-scale STQ pack has been published yet.

  • Faster four-node DeepSeek-V4.1 tensor-parallel decode (+11.6% at 4k, +12.5% at 32k on 4x M5 Ultra): four-rank hidden-row sums and gathers now run in one direct Thunderbolt 5 RDMA exchange without readiness-credit round-trips alongside byte-identical Sushi Cooler decode kernel optimizations, while exact/joined decode keeps the one-row shared-expert sum order and grouped verify validates locally before broadcasting to followers.

  • A long cold DeepSeek-V4.1 prompt no longer fails with WideFull: the wide prefill region now holds a chunk at every aligned start, and its large blocks keep one offset whatever the chunk start, where it used to be sized from three sampled starts and could fall short at a chunk start in between.

  • Faster INT8 NAX prefill with fused producer kernels on M5 Macs: Affine, MXFP8, and STQ packs prefill faster on M5 GPUs with lower peak activation memory, combining fused norm/activation-to-INT8 Metal kernels across DeepSeek-V4.1, Qwen3.8, GLM-5.3, and Hy4-Flash with double-buffered dense STQ INT8 NAX and precompiled sushi.metallib coverage so warm and cold prefills compile nothing late.

  • Offline memory breakdown and multi-model load preview: sushi memory-bill <pack> prints a pack's memory breakdown without waking the GPU or loading weights (text and --json), and /v1/models/load-preview plus the WebUI Models view preview how a new load fits beside already-resident models before loading it.

  • More cached experts per layer on Hy4-Flash: Hy4-Flash now fills expert slabs in place and sizes its vision encode arena in closed form, freeing multi-gigabyte staging memory for additional cached expert slots per layer on streamed loads.

  • Stronger runtime, admission, and HTTP/WebSocket hardening: fixes admission free-memory saturation checks, Cooler pool lifetime and alias teardown safety, MTP/streaming lifecycle handling, HTTP/WebSocket timeout and framing limits, EXL3 host-side stream scoping, and removes legacy dead code while splitting the core scheduler, billing, model-load, HTTP ingress, EXL3, and architecture modules behind acyclic layering lints.

  • Correct prefill and decode speeds for JSON-schema and forced tool-call requests: on Sushi Cooler, the time a grammar-constrained or forced-tool-call request spent reading the end of its prompt is no longer counted as decode time, so its logged and reported prompt speed is no longer inflated and its decode speed no longer deflated.

  • Reading a long conversation back from SSD no longer holds up other replies: a Hy4-Flash or DeepSeek-V4.1 conversation restored from the SSD cache is read in a few large reads in the order it lies on the disk instead of one small read per block, and the requests already streaming keep streaming between its parts; every model's cache files load with fewer reads.

  • DeepSeek-V4.1 with several requests drafting at once: grouped DSpark rounds now run on the model's fixed memory plan like single-request rounds, and their GPU kernels are built at load, so the first such round no longer compiles inside a request; a rebuilt sushi.metallib always invalidates the saved pipeline cache.

  • A conversation's next turn reuses the whole last reply more often, and the SSD cache keeps more of it: a prompt whose history the tokenizer spells differently from the tokens the model generated is now matched to the cached reply by its text, so the turn restores at the reply's end instead of prefilling the reply again and storing a second copy; the SSD budget counts bytes on the disk (shared rows once) and evicts the conversation that frees room, after dropping restore points no later turn can use; a DeepSeek-V4.1 or Hy4-Flash prefill writes restore points only on the 8192-token grid; Qwen keeps two restore points in memory for each request it serves at once; and reasoning_tokens counts the tokens the model generated.

  • Rewound turns and cached speculative replies keep only what they use: a Hy4-Flash turn that rewinds its conversation (an edit, a regenerate) after a reply that reserved more room than it used reuses its live state again, and a Qwen3.8-Flash-Next reply cached with speculative decoding no longer holds the memory its max_tokens reserved.

  • Concurrent Qwen requests speculate again and keep their reply's cache point: Qwen3.8-Flash-Next requests decoding at once no longer lose speculative decoding for the rest of the server's run after another request's prefill; a turn that ends while it decodes beside others leaves its restore point at the end of its reply, so the next turn re-reads none of it; and on Sushi Cooler a turn that ended on a speculative round resumes its MTP head there.

  • Cleaner tool-call, stop-sequence and multi-thought handling: a <tool_call|> closer a model quotes no longer hides a later tool call, client stop sequences match across structural tags in both streamed and whole replies, stored history, continued thoughts, reasoning budgets and reasoning token counts carry no internal markers or split UTF-8 bytes, a stray closer before <|channel> or <think no longer routes visible text into reasoning, and streamed replies match whole replies across multi-thought turns and unfinished tool calls inside closed thoughts.

  • Logs and metrics that add up under concurrent requests: the log file stamps each line with the time since the server started, and every line about a request ends with its req=N; /v1/responses logs its prompt and reply lines like chat; /metrics separates waiting, prefilling and decoding requests, counts held-restore-point hits apart, and its histograms reach 300 s and 1M tokens; /props reports the model's max_concurrent as total_slots, the ledger's own memory peak, and the drafter that really drafts; timings.prompt_ms no longer includes the prefix-cache restore.

  • A conversation's next turn starts without reading its cache back: a DeepSeek-V4.1 load that batches requests and a Hy4-Flash load now keep each conversation's state in memory between turns, one for each request the load runs at once and given back oldest first when a request needs the room, and with --prefix-cache-mem set the RAM tier keeps one conversation per concurrent request the same way, protecting entries held live by active requests and asking concurrent callers to wait and retry instead of refusing them as too large while those entries stay pinned.

  • Requests no longer queue behind a long prompt: while one request reads a long prompt, a request that arrives starts between two chunks of it where memory and the model's request limit allow, a short one answers first, and a reply that finishes frees its slot immediately instead of waiting for the other prompt to be read.

  • Think penalty and logit bias removed: --think-penalty, per-model think_penalty / logit_bias_file, the Shorter thinking WebUI control, and vocab logit biasing are removed; saved model-settings.json files holding those keys load with a warning, non-zero think_penalty or non-empty logit_bias request fields return 400, and tool_choice: "none" ends the turn at the call opener across all models.

  • Long image conversations keep their cache: a DeepSeek-V4.1 conversation with many images no longer fails its prefill over the memory cap after restoring from the SSD, and a follow-up turn that adds an image reuses the cached rows past the earlier images instead of prefilling half the context again, and Hy4-Flash reuses them the same way (thanks @InfernalDread for the report and @lin16303 for the log, #135).

  • Faster model loads with no kernel compiles: every Sushi Cooler kernel ships precompiled in sushi.metallib, and a repeat load of a pack makes its GPU pipelines from a cache on disk instead of compiling them, so Hy4-Flash STQ 2.25bpw is ready in 53 s on a first load (84 s before) and a repeat load compiles nothing; a repeat Hy4-Flash load also reads back its memory plans instead of recording them, so it is ready in seconds. The download grows by about 84 MB.

  • The models folder picker says why a folder will not open: a folder on an external drive that macOS privacy settings keep from sushi is no longer called "Not a folder"; the picker names the permission and where to allow it in System Settings, and a saved folder it cannot read is no longer swapped for a parent folder.

  • DeepSeek-V4.1-Flash STQ 2.7bpw on 64 GB Macs: sushi pull and sushi list count it as fitting from 64 GB, where its experts stream with --expert-cache-bias as Samuel Reed's guide shows; it is still recommended from 256 GB, where every expert stays resident.

Don't miss a new sushi release

NewReleases is sending notifications on new releases.