Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

sushi

SUSHI

A local AI server for low-bit, very high quality Sushi quants, using custom Sushi Trellis Quant (STQ) or EXL3-Affine hybrid converter. It is a detached fork of ddalcu's mlx-serve. Sushi runs stand-alone and also as a guest engine inside mlx-serve, Apple Silicon M1+ and macOS 26.2 or later are required.

Model support list

Usage see recommended launch commands and coding agent usage. Which pack suits your Mac, and running a bigger one from the SSD: Choosing a pack and streaming.

Unsupported: MiMo-V2.6-Flash-Sushi-2.3bpw still loads, but from 1.5.1 releases do not test, benchmark or tune it. 1.5.0 is the last release that supports it.

Quality

DeepSeek-V4.1-Flash KLD by category, pack revision 1.0 to 2.0, against oQ2.5e

KLD vs size

  • DeepSeek-V4.1-Flash-1017-Sushi-STQ-1.75bpw, pack revision 2.0, scores KLD 0.1576 (top-1 agreement 89.13%) on the eight-category reading, down from 0.1843 in revision 1.0 and below oQ2.5e's 0.1717 at 2.96 bits per weight
  • MiMo-V2.6-Flash-Sushi-2.3bpw scores KLD 0.0860 (top-1 agreement 91.95%)
  • GLM-5.3-Flash-Sushi-2.4bpw scores KLD 0.0742 (top-1 agreement 90.33%)
  • GLM-5.3-Flash-Sushi-2bpw scores KLD 0.1037 (top-1 agreement 88.18%)
  • Hy4-Flash-Sushi-STQ-4bpw scores KLD 0.0194 (top-1 agreement 96.30%) on the eight-category reading, and Hy4-Flash-Sushi-STQ-2.25bpw 0.1022 (91.72%); per category: quality-kld

Install

brew install beamivalice/tap/sushi

Update with brew upgrade sushi.

sushibar puts the server in the menu bar: the generation speed in tok/s as its title, and a menu with a live status card, Start/Stop and Load/Unload buttons (Start brings the server up empty; Load brings back the last model), a port switcher, its pages, and Log, Update and Quit buttons (Log follows the server log live; hold ⌥ for Quit & Stop).

  • The server listens on 127.0.0.1:12345 (Settings has a Default port).
  • Support speculative decoding: MTP for Qwen and MiMo, DFlash2 for GLM, DSpark for DeepSeek, DFly2 for Hy4-Flash.
  • return_progress: true streams llama.cpp's prompt_progress (total, cache, processed, time_ms) on chat completions and completions while the prefill runs.
  • 8-bit KV cache are on by default.

Memory

GPU memory in GiB to serve one prompt that fills the whole context (8-bit KV, MTP on with --mtp-head-kv-quant; GLM with its DFlash2 assistant and vision tower). The prompt cache and the n-gram table stay on the SSD and are not counted. The Qwen rows are at the default f32 GatedDeltaNet state; --qwen-gdn 16 (bf16) takes about 0.2 GiB off each Qwen cell.

packweights only128k256k512k1M
Qwen3.8-Flash-Next-Sushi-2bpw35.240.343.248.258.4
Qwen3.8-Flash-Next-Sushi-STQ-2.75bpw44.950.052.857.968.1
Qwen3.8-Flash-Next-Sushi-4bpw63.969.071.976.987.1
GLM-5.3-Flash-Sushi-2bpw78.382.683.886.090.5
GLM-5.3-Flash-Sushi-2.4bpw89.894.195.297.5102.0
MiMo-V2.6-Flash-Sushi-2.3bpw89.793.795.899.9108.2
DeepSeek-V4.1-Flash-1017-Sushi-STQ-1.75bpw ‡108.0110.0110.3111.0112.5

A context fits when its number is below the GPU limit you set with sudo sysctl iogpu.wired_limit_mb=<N> vm.global_user_wire_limit=<N × 1048576> vm.user_wire_limit=<N × 1048576> (all three, always: why). Max context is the largest multiple of 8192 tokens that fits, at 8-bit / 4-bit KV, with 256 MiB spare and capped at 1M (GLM has no 4-bit KV):

pack48 GB † (43,000 MB)64 GB † (59,000 MB)96 GB (90,000 MB)128 GB (120,000 MB)
Qwen3.8-Flash-Next-Sushi-2bpw200k / 304k976k / 1M1M / 1M1M / 1M
Qwen3.8-Flash-Next-Sushi-STQ-2.75bpw—488k / 824k1M / 1M1M / 1M
Qwen3.8-Flash-Next-Sushi-4bpw——1M / 1M1M / 1M
GLM-5.3-Flash-Sushi-2bpw——696k / —1M / —
GLM-5.3-Flash-Sushi-2.4bpw———1M / —
MiMo-V2.6-Flash-Sushi-2.3bpw———1M / 1M
DeepSeek-V4.1-Flash-1017-Sushi-STQ-1.75bpw ‡——1M / —1M / —
Hy4-Flash-Sushi-STQ-2.25bpw §200k / —500k / —··
Hy4-Flash-Sushi-STQ-4bpw §——500k / —1M / —

† At --qwen-gdn 16 (bf16 GatedDeltaNet state), which the 32, 48 and 64 GB launch lines use. The f32 default gives less: 192k / 288k at 48 GB, and 968k / 1M (Sushi-2bpw) and 480k / 800k (Sushi-STQ-2.75bpw) at 64 GB.

‡ DeepSeek-V4.1-Flash streams its routed experts from the SSD on 96 and 128 GB Macs. It runs 1M at --ssd-budget-gb 108 on a 128 GB Mac with sudo sysctl iogpu.wired_limit_mb=125000 vm.global_user_wire_limit=131072000000 vm.user_wire_limit=131072000000 and at 80 on a 96 GB Mac with sudo sysctl iogpu.wired_limit_mb=93000 vm.global_user_wire_limit=97517568000 vm.user_wire_limit=97517568000 (usage). Always raise the two user-wire limits with the GPU limit: without them the system slows down and can become unresponsive.

On 64 GB and 96 GB Macs, DeepSeek-V4.1-Flash STQ 2.7bpw streams with --expert-cache-bias: see Running DeepSeek-V4.1-Flash on 64 GB and 96 GB Macs, a guide by Samuel Reed (@STRML), who also contributed the DeepSeek prefetch fixes in PR #128.

§ Hy4-Flash's cells are its recommended launches (usage), at 8-bit KV, not a computed maximum; · is not measured. On a 64 GB Mac the 2.25bpw pack loads resident with no budget flag when about 46 GB is free and otherwise streams its experts at the largest budget that fits (41 GB on an idle Mac with 45 GB free); on a 48 GB Mac it streams within 34 GB. Its Engram tables stay on the SSD.

Streaming

A pack bigger than your Mac's GPU memory can still run: --ssd-budget-gb N keeps N GiB of the model on the GPU and reads the rest from the SSD as it runs, with the same answers and lower speed. Which pack to pick for your Mac, what the GPU limit is, how to size the budget and when streaming is worth it, with measured examples: Choosing a pack and streaming.

Serve on your network

export SUSHI_KEY=<pick a secret>
sushi serve --model <pack> --host 0.0.0.0 --api-key-env SUSHI_KEY

Other computers then reach http://<your-mac-ip>:12345/v1 (ipconfig getifaddr en0 prints the IP) and send the key as Authorization: Bearer <key>. If SUSHI_KEY is unset or empty, the server runs with no key.

Benchmarks

Sushi bench (Speed)

Sushi 🍣 1.4.0M5 Max 128 GB4k8k16k32k64k128k
Qwen 3.8 Flash-Next-STQ-2.75bpwPrefill1,1221,9932,0491,9761,9061,877
Decode168.6151.1146.1146.8151.0138.2
Qwen 3.8 Flash-Next-4bpwPrefill2,0792,3792,3262,2312,1472,120
Decode146.2150.1136.2149.8153.5122.0
GLM 5.3 Flash-2.4bpwPrefill928775814805688573
Decode71.569.467.365.871.863.8
DeepSeek 4.1 Flash-STQ-1.75bpw (--ssd-budget-gb 108)Prefill7071,024998993950829
Decode76.684.276.285.378.163.7
Sushi 🍣 1.8.0M5 Ultra 256 GB4k8k16k32k64k128k
Hy4 Flash-STQ-4bpwPrefill1,9291,9391,9041,8371,7131,510
Decode143.2115.0116.3102.374.596.2
Hy4 Flash-STQ-2.25bpwPrefill1,9541,9411,9191,8461,7241,515
Decode147.6126.786.3103.668.5106.2

Code arm, shipping defaults (8-bit KV, DFly2). Hy4-Flash's decode moves with DFly2's draft acceptance at each rung. The release ladders: v1.8.0.

Tool-eval-bench 3.0 (Agentic)

PackThinkingScorePointsRatingMax weights in RAM
Qwen STQ 2.75bpwmedium94182/1945★48 GB
DeepSeek STQ 1.75bpwhigh92178/1945★129 GB (108 stream)
Qwen 4bpwmedium90174/1945★68 GB
GLM 2.4bpwhigh90175/1945★98 GB
MiMo 2.3bpwon89172/1944★103 GB
Qwen 2bpwmedium88170/1943★38 GB

License

MIT, for sushi and the mlx-serve code it forks (LICENSE); ported kernels and vendored code are listed in NOTICE. The Qwen packs follow the Qwen Community License, the Hy4-Flash packs Tencent's Hy license and the MiMo pack Xiaomi's MIT license, stated on each Hugging Face page.

关于 About

Sushi engine runs very high quality quant model in Apple Silicon, using both STQ and EXL3 format with special tuning technology to achieve frontier sub 4 bits compression.

语言 Languages

Zig90.5%
Shell3.5%
Python1.8%
JavaScript1.4%
HTML1.3%
C++1.0%
Metal0.4%
Jinja0.1%
Ruby0.0%
Objective-C0.0%
C0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
3283
Total Commits
峰值: 498次/周
Less
More

核心贡献者 Contributors