The 80B Qwen3-Coder-Next on a 16 GB Mac, about 13 tok/s, fully offline. A mixture-of-experts inference engine for Apple silicon.
Rust
0.5.1 release notes, the models page row for the resident 35B, install.sh pinned to v0.5.1
Picassoai3a59f4ca9d7a
diff --git a/docs/MODELS.md b/docs/MODELS.mdindex eae7246..e39fe4a 100644--- a/docs/MODELS.md+++ b/docs/MODELS.md@@ -190,6 +190,8 @@ Measured 6 Oct 2026: one person, one run per bank, on the same Mac with a backgr- Tokenizer: [tokenizer.json](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) from the model's own page.- **On 0.4.0:** not re-measured. Its code path is unchanged, but nobody has run it on the release build.+**On 0.5.1, every expert on the GPU.** With unsloth's [UD-IQ2_M file](https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF) (11.5 GB) all 256 experts of all 40 layers stay in GPU memory and nothing streams from the SSD. Measured 15 Oct 2026 on the same Mac: **writing 38 tok/s** (300 tokens after a 1,500-token prompt, four runs between 37.9 and 38.3); **reading about 300 tok/s** on that prompt (289 to 304); single prompts of 7,500, 9,300 and 16,800 tokens read at 242, 227 and 202 tok/s on one running engine. Chosen by itself when the file fits with 1 GB to spare; the start line is the same as any model, and no bank number is needed. Quality on a four-agent CrewAI coding job (8 behaviour checks, temperature 0.7): 5, 3 and 5 of 8 over three runs. The Q4 file above still runs the streaming way.+## Qwen3-Coder-30B-A3BThe smaller download (architecture `qwen3moe`), 18.6 GB at Q4_K_M. Bank 44 on 16 GB. Its experts are bigger than the 80B's, so it holds about 11 GB while hot and leaves about 3 GB for everything else.diff --git a/docs/releases/0.5.1.md b/docs/releases/0.5.1.mdnew file mode 100644index 0000000..329d784--- /dev/null+++ b/docs/releases/0.5.1.md@@ -0,0 +1,23 @@+# Coachwhip 0.5.1++Mac mini M4, 16 GB, measured; your Mac and your prompt will move the numbers.++## Qwen3.6-35B-A3B with every expert on the GPU++- **A 35B that fits.** With unsloth's [UD-IQ2_M file](https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF) (11.5 GB), Coachwhip keeps all 256 experts of all 40 layers in GPU memory; nothing streams from the SSD while it runs. **Writing about 38 tok/s; reading a 1,500-token prompt about 300 tok/s.** The 22 GB Q4 file still runs the streaming way, at the 0.3.0 numbers.+- **Chosen by itself.** When a Qwen3.5/3.6 MoE file fits in GPU memory with 1 GB to spare, the resident mode is used; otherwise the streaming path as before. The start line is the same; no bank number is needed for a file that fits.+- **Long prompts and chats.** The conversation space is fixed at 8,192 tokens and rolls when full (the first 256 words and the newest are kept) instead of refusing. Single prompts of 7,500, 9,300 and 16,800 tokens were read on one running engine at 242, 227 and 202 tok/s.+- **The API uses your sampling.** Each request's `temperature`, `top_p`, `top_k`, `min_p` and `repeat_penalty` are honoured; a request that sends none gets Qwen's own 0.7 / 0.8 / 20 / 0, with no repeat penalty. In 0.5.0 the API used the engine's defaults whatever the request said; that is fixed. Temperature 0 gives the same text on every run.+- **Quality, measured once.** A four-agent CrewAI job (analyst, architect, developer, tester) writing an event-sourced order service in TypeScript, judged by 8 behaviour checks at temperature 0.7: 5, 3 and 5 of 8 over three runs. Read what it writes, and run it.++## Structure++- `crates/engine/src/arena.rs`: the engine's own GPU scratch for its kernels, allocated once and reused, so a prompt piece costs one layer's memory rather than one per layer.+- `crates/engine/src/attn_kernel.rs`: the linear-attention piece kernel does the conv, the activation and the norms once per piece in parallel passes; the sequential walk only updates each head's memory. The text is byte-identical to the word-by-word path.+- `crates/server/src/chat.rs`: the sampler chain (top-k on the GPU, then top-p, min-p, temperature) and the rolling conversation space.++## Not tested++- Prompts above 17K tokens on this build.+- Macs other than an M4 with 16 GB on macOS 26.+- gpt-oss-120b and the 80B and 122B were not re-measured on this build; their streaming path is unchanged.diff --git a/install.sh b/install.shindex af99f30..9672037 100755--- a/install.sh+++ b/install.sh@@ -13,7 +13,7 @@ set -euo pipefailmain() {DIR="${COACHWHIP_DIR:-$HOME/coachwhip}"REPO="${COACHWHIP_REPO:-https://github.com/1picassoai/coachwhip}"-VERSION="${COACHWHIP_VERSION:-v0.5.0}"+VERSION="${COACHWHIP_VERSION:-v0.5.1}"ASSET="coachwhip-$VERSION-macos-arm64.tar.gz"DIST="${COACHWHIP_DIST:-$REPO/releases/download/$VERSION}"