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.3.0: measured on five prompts; Q3_K_M at bank 70 is the recommended file
1picassoai05b2fd5e4453
diff --git a/Cargo.lock b/Cargo.lockindex 940cf29..164d596 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -291,7 +291,7 @@ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"[[package]]name = "coachwhip"-version = "0.2.1"+version = "0.3.0"dependencies = ["anyhow","candle-core",@@ -304,7 +304,7 @@ dependencies = [[[package]]name = "coachwhip-engine"-version = "0.2.1"+version = "0.3.0"dependencies = ["candle-core","candle-metal-kernels",@@ -316,7 +316,7 @@ dependencies = [[[package]]name = "coachwhip-server"-version = "0.2.1"+version = "0.3.0"dependencies = ["anyhow","candle-core",diff --git a/README.md b/README.mdindex 7bdf21a..6b7b692 100644--- a/README.md+++ b/README.md@@ -65,7 +65,7 @@ Speed and a quality check for each model file, measured on a 16 GB Mac: [docs/MOTry other MoE models and tell us what happens. If a model's architecture is not supported yet, Coachwhip says so, and an issue is the fastest way to move it up the list.-**Which GGUF file.** Coachwhip reads the standard GGUF quantisations (Q3_K, Q4_K, Q5_K, Q6_K, Q8_0, F16). Some newer conversions store a few tensors in MXFP4 or fuse the attention weights into one tensor; Coachwhip does not read those yet. For Qwen3-Coder-Next, [MaziyarPanahi's Q4_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) loads as is.+**Which GGUF file.** Coachwhip reads the standard GGUF quantisations (Q3_K, Q4_K, Q5_K, Q6_K, Q8_0, F16). Some newer conversions store a few tensors in MXFP4 or fuse the attention weights into one tensor; Coachwhip does not read those yet. For Qwen3-Coder-Next, [MaziyarPanahi's Q3_K_M and Q4_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) load as is.## What you need@@ -73,7 +73,7 @@ Try other MoE models and tell us what happens. If a model's architecture is not|---|---|---|| Mac | Apple silicon (M1 or later). Tested on a Mac mini M4. | the same || Memory | 16 GB | 16 GB; 24 GB has room to spare |-| Disk | 19 GB for the model, 3 GB for the build | 49 GB for the model, 3 GB for the build |+| Disk | 19 GB for the model, 3 GB for the build | 39 GB (Q3_K_M) or 49 GB (Q4_K_M) for the model, 3 GB for the build || macOS | Tested on macOS 26 | the same |## Install@@ -92,15 +92,18 @@ If a window asks to install Apple's command line tools, finish it and run the liCoachwhip is the engine; the model is yours. Any GGUF of a supported model works (see Models).-**Recommended: Qwen3-Coder-Next, the 80B coder.** Download its [Q4_K_M GGUF](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) (48 GB) and its [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-Next), then start it with a bank of 56:+**Recommended: Qwen3-Coder-Next, the 80B coder, in its Q3_K_M file.** Download the [Q3_K_M GGUF](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) (38 GB) and its [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-Next), then start it with a bank of 70:```sh-~/coachwhip/coachwhip.sh ~/Downloads/Qwen3-Coder-Next.Q4_K_M.gguf ~/Downloads/tokenizer.json 56+~/coachwhip/coachwhip.sh ~/Downloads/Qwen3-Coder-Next.Q3_K_M.gguf ~/Downloads/tokenizer.json 70```+The Q3_K_M file writes faster than Q4_K_M on a 16 GB Mac, and the two scored the same on our quality check; the measurements are in [docs/MODELS.md](docs/MODELS.md).+| Model | GGUF file | Tokenizer | Bank on 16 GB ||---|---|---|---|-| Qwen3-Coder-Next (80B), recommended | [MaziyarPanahi Q4_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) | [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-Next) | 56 |+| Qwen3-Coder-Next (80B), recommended | [MaziyarPanahi Q3_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) | [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-Next) | 70 |+| Qwen3-Coder-Next (80B), the 4-bit file | [MaziyarPanahi Q4_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) | [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-Next) | 56 || Qwen3-Coder-30B-A3B, a smaller download | [unsloth Q4_K_M](https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF) | [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) | 44 |## Usediff --git a/docs/MODELS.md b/docs/MODELS.mdindex 779893d..4c12a01 100644--- a/docs/MODELS.md+++ b/docs/MODELS.md@@ -11,13 +11,14 @@ What each model file does on a 16 GB Mac, measured the same way every time. Thes## Qwen3-Coder-Next (80B)-| GGUF file | Size | `--bank` on 16 GB | Bank memory | Writing | Quality |-|---|---|---|---|---|---|-| [MaziyarPanahi Q4_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) | 48.4 GB | 56 | 5.5 GB | 3.4 tok/s | 7 / 8 |-| [MaziyarPanahi Q3_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) | 38.2 GB | 70 | 5.5 GB | 4.5 tok/s | 7 / 8 |+| GGUF file | Size | `--bank` on 16 GB | Bank memory | Writing, 0.3.0 | Writing, 0.2.0 | Quality |+|---|---|---|---|---|---|---|+| [MaziyarPanahi Q3_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF), recommended | 38.2 GB | 70 | 5.5 GB | **5.7 tok/s** (5.5 to 5.9) | 4.5 tok/s | 7 / 8 |+| [MaziyarPanahi Q4_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) | 48.4 GB | 56 | 5.5 GB | **4.1 tok/s** (3.9 to 4.4) | 3.4 tok/s | 7 / 8 |-Speed measured 3 Oct 2026; quality measured 4 Oct 2026. At bank 56, Q3_K_M wrote 4.4 tok/s.+0.3.0 speed measured 5 Oct 2026 over the five prompts; 0.2.0 speed measured 3 Oct 2026 on the first prompt only. Quality measured 4 and 5 Oct 2026, the same result both times.+- **Why 0.3.0 is faster:** it guesses each layer's experts four layers early with the model's own routers and reads them in while the GPU is busy, so fewer reads happen with the GPU waiting.- **Why Q3_K_M is faster:** its experts are 1.6 MB instead of 2.0 MB, so each one read from the SSD arrives sooner, and the same bank memory holds 70 of them per layer instead of 56.- **Quality:** both files failed one task, a different one each. Q4_K_M's word wrap counted a space before the first word of each line; Q3_K_M's duration parser accepted a repeated unit (`1h1h`). Eight tasks is a small sample: treat it as "no difference found", not "no difference".- Both use the same [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-Next).