Skip to content

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

docs: front page is what, why and install; every model on the models page; gpt-oss page as a wiki page

1picassoai94e0d020df9d
diff --git a/README.md b/README.md
index 4ad8026..4ecc31b 100644
--- a/README.md
+++ b/README.md
@@ -7,104 +7,19 @@
# Coachwhip
-**Run mixture-of-experts models that are bigger than your memory.**
+**Run mixture-of-experts models that are bigger than your memory, on your own Mac.**
-**OpenAI's gpt-oss-120b on a 16 GB Mac, at about 10 tok/s.** Squeezed once on your own Mac from the official file. Qwen3.5-122B-A10B, the 80B and the 35B run too. Coachwhip never needs the whole model in memory, because a mixture-of-experts model never needs the whole model for one word.
+Coachwhip is one Rust binary. It takes a model file in GGUF format, keeps the part of the model every word needs on the GPU, and streams the rest from the SSD as each word asks for it. A 120-billion-parameter model runs on a 16 GB Mac. Which models, how fast, and how to set each one up: [docs/MODELS.md](docs/MODELS.md).
-gpt-oss-120b on a 16 GB Mac mini M4, writing a TypeScript task (about 4,000 words of thinking and code, temperature 0), scored on 20 hidden checks:
+<p align="center"><img src="docs/coachwhip-demo.gif" alt="A 122-billion-parameter model writing TypeScript in the Coachwhip chat on a 16 GB Mac mini, in real time" width="720"></p>
-| Mode | Speed | Score |
-|---|---|---|
-| Fast mode, `--stand-ins` | about 10 tok/s | 4.5 of 5, three runs (5.0, 3.8, 4.8) |
-| The model's own 4 experts | about 4.2 tok/s | 4.8 of 5 |
+## Why we built it
-How to set it up is in [gpt-oss-120b](#gpt-oss-120b).
+Two reasons, and both had to hold at once.
-Qwen3.5-122B-A10B, fast mode on the same Mac, bank 40:
+**The code stays on the machine.** A coding assistant reads your code. If that assistant runs on someone else's server, your code goes there with every question. Coachwhip runs the model on your Mac, listens only to programs on your Mac, and sends nothing anywhere. Unplug the network and it works the same.
-| Tokens | Speed | Coachwhip uses | Left for macOS and your apps |
-|---|---|---|---|
-| 6,000-token answer | 4.2 tok/s | 11.2 GB | 2.3 GB at its tightest |
-| 12,000-token prompt | 4.3 tok/s | 12.8 GB | 1.5 GB at its tightest |
-
-One Rust binary. Everything on the GPU. Nothing leaves your machine.
-
-**New in 0.5.0** ([release notes](docs/releases/0.5.0.md)): **gpt-oss-120b**, OpenAI's open model, thinking included, at about 10 tok/s in fast mode; set up in [gpt-oss-120b](#gpt-oss-120b).
-
-**New in 0.4.1** ([release notes](docs/releases/0.4.1.md)): **install in under a minute.** The installer downloads a ready-built Coachwhip; nothing to compile.
-
-**New in 0.4.0** ([release notes](docs/releases/0.4.0.md)): **Qwen3.5-122B-A10B on a 16 GB Mac**, squeezed once on your own Mac from the publisher's file; how to set it up is in [The 122B](#the-122b). Coachwhip now keeps itself inside your Mac's memory: it picks the bank that fits and warns you when macOS is short. Every model's numbers, how they were measured and a quality check per file: [docs/MODELS.md](docs/MODELS.md).
-
-**Tried it? Tell us how it ran**, good or bad, especially if it was slow, the fan worked hard, or it ran hot. [Open an issue](https://github.com/1picassoai/coachwhip/issues) with your Mac (chip and memory), macOS version, the model file, the `--bank` you used, and the speed line the chat page shows under each answer. Questions and ideas are welcome there too.
-
-<p align="center"><img src="docs/coachwhip-demo.gif" alt="Qwen3.5-122B-A10B writing TypeScript in the Coachwhip chat on a 16 GB Mac mini, in real time" width="720"></p>
-
-## Why it works
-
-A mixture-of-experts (MoE) model is made of many small experts, and a router picks only a few of them for each word. Qwen3-Coder-Next has 80 billion parameters, but each word wakes up only about 3 billion of them.
-
-Coachwhip is built around that fact:
-
-- **Streams experts, not files.** The small, always-used part of the model lives on the GPU. The experts stay on the SSD, and for each word Coachwhip reads exactly the experts the router picked.
-- **An expert bank on the GPU.** Recently used experts stay in a bank in the GPU's memory and are reused, so the SSD is only touched for experts the bank does not hold.
-- **The early guess.** While the GPU works on one layer, Coachwhip runs the router of a layer four steps ahead on the same input, so it already knows most of the experts that layer will want, and reads them in while the GPU is busy. A guess that would land too late is dropped rather than evicting an expert still in use. The last few layers, which have no later router, use the routes the model has taken before, and every chat teaches that table more.
-- **One GPU dispatch per layer.** All the experts a layer picked run together in a single fused kernel.
-- **Reads while it computes.** When a prompt needs more experts than the bank holds, the GPU starts on each expert the moment its bytes land, while the rest are still being read.
-- **Unified memory, used properly.** On Apple silicon the CPU and GPU share one memory, so an expert read from the SSD lands straight where the GPU reads it. No copies.
-
-## Numbers
-
-Mac mini M4, 16 GB, both models at Q4_K_M.
-
-| | Qwen3-Coder-30B-A3B | Qwen3-Coder-Next (80B) |
-|---|---|---|
-| Model file | 18.6 GB | 48.4 GB |
-| Follow-up in a chat | reads only your new words | reads only your new words |
-
-While it reads your prompt, the page shows the layer it is on, from the first second.
-
-## What it does to your Mac
-
-Honest numbers, so you can decide.
-
-| | 30B on 16 GB (bank 44) | 80B on 16 GB (bank 56) |
-|---|---|---|
-| Held by Coachwhip while the model is hot | about 11 GB | about 7.5 GB |
-| Left for everything else | about 3 GB | about 7 GB |
-
-The 30B's experts are bigger than the 80B's, so it holds more. If memory runs short, macOS squeezes your other apps, not Coachwhip. If the GPU runs out of room, Coachwhip says so on the page and stops; close some apps, or start it again with a smaller `--bank`.
-
-With 24 GB or more the 80B runs with room to spare. `--bank` trades GPU memory for speed in either direction; on 16 GB, 56 is the most the 80B should use.
-
-## Models
-
-Coachwhip is an engine for MoE models, in GGUF format.
-
-| Model | Architecture | Status |
-|---|---|---|
-| [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) | gpt-oss | Tested, after `prepare` (see gpt-oss-120b). Thinks before it answers. |
-| [Qwen3.5-122B-A10B](https://huggingface.co/Qwen/Qwen3.5-122B-A10B) | qwen35moe | Tested, after `prepare` (see The 122B). |
-| [Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) | qwen3moe | Tested. |
-| [Qwen3-Coder-Next](https://huggingface.co/Qwen/Qwen3-Coder-Next) (80B) | qwen3next | Tested. See below for the file to use. |
-| [Qwen3-Next-80B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Next-80B-A3B-Instruct) | qwen3next | Tested. |
-| [Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) | qwen35moe | Tested. Thinks when asked to. |
-| Qwen3-30B-A3B, other Qwen3 MoE | qwen3moe | Supported. |
-| Qwen3.5 MoE, Qwen3.6-14B-A3B (community) | qwen35moe | Supported. The 14B fits in 16 GB on its own; Coachwhip does not make it faster. |
-
-Speed and a quality check for each model file, measured on a 16 GB Mac: [docs/MODELS.md](docs/MODELS.md).
-
-Try 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). gpt-oss ships in MXFP4, which `prepare` reads and squeezes. Some newer Qwen 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
-
-| | gpt-oss-120b | 122B | 80B | 30B |
-|---|---|---|---|---|
-| Mac | Apple silicon, M4 or later recommended; M1 to M3 run it slower. Tested on a Mac mini M4. | the same | the same | the same |
-| Memory | 16 GB | 16 GB | 16 GB; 24 GB has room to spare | 16 GB |
-| Disk | 106 GB free while squeezing, 43 GB once you delete the download; 15 MB for Coachwhip | 105 GB free while squeezing, 46 GB once you delete the download; 15 MB for Coachwhip | 39 GB (Q3_K_M) or 49 GB (Q4_K_M) for the model, 15 MB for Coachwhip | 19 GB for the model, 15 MB for Coachwhip |
-| macOS | Tested on macOS 26 | the same | the same | the same |
+**It had to be fast enough to use.** A model big enough to be worth asking does not fit in a laptop's memory, and the usual answer, a smaller model, is a worse assistant. Coachwhip's answer is to stop loading the whole model. A mixture-of-experts model is made of many small experts, and a router picks only a few of them for each word. Coachwhip reads exactly those, keeps the ones it has used lately on the GPU, and guesses the next layer's picks while the GPU is busy on this one. The big model stays big; only its working set is in memory.
## Install
@@ -118,95 +33,11 @@ It checks your Mac and downloads the ready-built Coachwhip into `~/coachwhip`, i
To build from source instead, run it with `COACHWHIP_FROM_SOURCE=1` in front of `bash`: it installs Apple's command line tools and Rust if they are missing, and the build takes about 10 minutes.
-## Bring a model
-
-Coachwhip is the engine; the model is yours. Any GGUF of a supported model works (see Models).
-
-**gpt-oss-120b:** download the official MXFP4 file and squeeze it once on your Mac, as in [gpt-oss-120b](#gpt-oss-120b).
-
-**Qwen3.5-122B-A10B:** download the publisher's file and squeeze it once on your Mac, as in [The 122B](#the-122b).
-
-**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.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 |
-|---|---|---|---|
-| gpt-oss-120b, after `prepare` | [ggml-org MXFP4](https://huggingface.co/ggml-org/gpt-oss-120b-GGUF) | [tokenizer.json](https://huggingface.co/openai/gpt-oss-120b) | 25 |
-| Qwen3.5-122B-A10B, after `prepare` | [mradermacher Q3_K_M](https://huggingface.co/mradermacher/Qwen3.5-122B-A10B-GGUF) | [tokenizer.json](https://huggingface.co/Qwen/Qwen3.5-122B-A10B) | 40 |
-| Qwen3-Coder-Next (80B) | [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 |
-
-## gpt-oss-120b
-
-OpenAI's gpt-oss-120b: 117 billion parameters, 4 of its 128 experts for each word in each of its 36 layers. It thinks before it answers, and the chat page shows the thinking.
+**What you need:** a Mac with Apple silicon (M4 or later recommended; M1 to M3 run it slower), 16 GB of memory, macOS 26 (tested), and disk for the model file. Coachwhip itself is 15 MB. Each model's disk and memory needs are on the [models page](docs/MODELS.md).
-1. Download the official [MXFP4 GGUF](https://huggingface.co/ggml-org/gpt-oss-120b-GGUF) (63.4 GB) and the model's [tokenizer.json](https://huggingface.co/openai/gpt-oss-120b).
-2. Squeeze it. About 13 minutes on an M4. You need about **106 GB free** while it runs: the 63 GB download and the 43 GB squeezed file sit side by side.
-
-```sh
-~/coachwhip/target/release/coachwhip-prepare ~/Downloads/gpt-oss-120b-MXFP4.gguf ~/Downloads/gpt-oss-120b.Q2A.gguf
-```
-
- The squeeze takes every expert matrix to Q2_K; everything else in the file is copied as it is. Nothing is downloaded from us.
-
-3. Delete the download. Coachwhip only uses the squeezed file:
-
-```sh
-rm ~/Downloads/gpt-oss-120b-MXFP4.gguf
-```
-
-4. Start it in one of two modes. Coachwhip picks the bank that fits your Mac (25 on 16 GB):
-
-```sh
-# the model's own 4 experts per word, every one read for real
-~/coachwhip/coachwhip.sh ~/Downloads/gpt-oss-120b.Q2A.gguf ~/Downloads/tokenizer.json 25 8090 --parallel --flash-reads --max-tokens 8000
-
-# fast: stand-ins for the light picks that are not in the bank
-~/coachwhip/coachwhip.sh ~/Downloads/gpt-oss-120b.Q2A.gguf ~/Downloads/tokenizer.json 25 8090 --parallel --flash-reads --stand-ins --max-tokens 8000
-```
-
-**Fast mode changes the answers.** A word's first expert is always read for real, and so is its second whenever the router gives it at least 0.3 of the weight. A lighter pick that is not already in the bank is replaced by the best expert that is, by the router's own scores, instead of being read from the SSD, and only when that expert's score is close to the real pick's; otherwise the real one is read. Measured on one coding task over three runs, it wrote about 2.4 times as fast and scored 5.0, 3.8 and 4.8 of 5, against the full model's 4.8. It is a choice, never the default. `--max-tokens 8000` gives its thinking room; the default of 4,000 can cut a long answer short.
-
-Every setup we measured, what makes it fast and how the scores were taken: [docs/GPT-OSS.md](docs/GPT-OSS.md).
-
-## The 122B
-
-Qwen3.5-122B-A10B is the biggest model Coachwhip runs on 16 GB, and it needs one extra step: its experts are too big to stream fast as they come, so Coachwhip squeezes the file once, on your Mac.
-
-1. Download the publisher's [Q3_K_M GGUF](https://huggingface.co/mradermacher/Qwen3.5-122B-A10B-GGUF) (59 GB) and the model's [tokenizer.json](https://huggingface.co/Qwen/Qwen3.5-122B-A10B).
-2. Squeeze it. About 5 to 9 minutes on an M4. You need about **105 GB free** while it runs: the 59 GB download and the 46 GB squeezed file sit side by side.
-
-```sh
-~/coachwhip/target/release/coachwhip-prepare ~/Downloads/Qwen3.5-122B-A10B.Q3_K_M.gguf ~/Downloads/Qwen3.5-122B-A10B.Q2X.gguf
-```
-
- The squeeze takes each expert's gate and up matrices to Q2_K on the GPU and its down matrix to Q3_K; everything else in the file is copied as it is. Nothing is downloaded from us.
-
-3. Delete the download. Coachwhip only uses the squeezed file, and keeping both takes about 105 GB:
-
-```sh
-rm ~/Downloads/Qwen3.5-122B-A10B.Q3_K_M.gguf
-```
-
-4. Start it in one of two modes, bank 40. If your Mac cannot hold a long chat at that size, Coachwhip says so and uses less:
-
-```sh
-# exact: the model's own 8 experts per word
-~/coachwhip/coachwhip.sh ~/Downloads/Qwen3.5-122B-A10B.Q2X.gguf ~/Downloads/tokenizer.json 40
-
-# fast: the router's top 4 experts per word, and the GPU runs ahead of the CPU
-~/coachwhip/coachwhip.sh ~/Downloads/Qwen3.5-122B-A10B.Q2X.gguf ~/Downloads/tokenizer.json 40 8090 --experts 4 --parallel
-```
-
-**Fast mode changes the answers.** The model was trained to use 8 experts for every word; asking for 4 makes it write about twice as fast, and its answers can differ from what the full model would say. It is a choice, never the default. Both modes' speed and quality on our checks are in [docs/MODELS.md](docs/MODELS.md).
+## Bring a model
-Its speed and memory are in the table at the top.
+Coachwhip is the engine; the model is yours. Download a supported model's GGUF file and its `tokenizer.json` from the publisher's page, then start Coachwhip with both. Some models are squeezed once on your Mac before first use; the models page has the steps and the exact start line for each one.
## Use
@@ -216,9 +47,9 @@ Its speed and memory are in the table at the top.
~/coachwhip/coachwhip.sh /path/to/model.gguf /path/to/tokenizer.json 56
```
-The last number is the bank (44 if you leave it out). The chat opens in your browser. Type, press Send, and the answer streams as it is written. Follow-up questions read only your new words; press **New chat** to start again. Stop Coachwhip with Ctrl+C.
+The last number is the bank, the expert slots kept on the GPU per layer (44 if you leave it out; each model's number is on the models page). The chat opens in your browser. Type, press Send, and the answer streams as it is written. Follow-up questions read only your new words; press **New chat** to start again. Stop Coachwhip with Ctrl+C.
-**Thinking.** gpt-oss always thinks first; the page shows its thinking in a box above the answer, and the API returns only the answer. A model with a thinking mode (Qwen3.6) shows a **let it think first** box on the page. Off, the model answers straight away; on, it reasons first and you watch it. Either way Coachwhip only puts the model's own template text at the start of its turn, nothing else changes, and each word comes at the same speed; thinking makes the reply longer, not slower per word. In the terminal it is `--think`; through the API it is always off, so coding tools get the answer. The 80B coder has no thinking mode, and the box is not shown for it.
+**Thinking.** A model that thinks before it answers shows its thinking in a box above the answer. A model with an optional thinking mode shows a **let it think first** box on the page. Either way Coachwhip only puts the model's own template text at the start of its turn; each word comes at the same speed, and thinking makes the reply longer, not slower per word. In the terminal it is `--think`; through the API it is always off, so coding tools get the answer.
**From your coding tools:** while Coachwhip runs, it also speaks the OpenAI chat API, so any tool that takes an OpenAI base URL can use the model.
@@ -228,7 +59,7 @@ The last number is the bank (44 if you leave it out). The chat opens in your bro
| API key | anything; it is ignored |
| Model | the model's file name, as listed at `/v1/models` |
-A conversation holds up to 16K tokens: the history, the question and the answer together. That limit is sized to fit a 16 GB Mac; the models themselves support longer. The 122B is tested to a 12,000-token prompt; longer is untested.
+A conversation holds up to 16K tokens: the history, the question and the answer together. That limit is sized to fit a 16 GB Mac; the models themselves support longer.
Only programs on this Mac can reach it. Follow-ups that resend the whole conversation read only the new part. The chat page and your tools share one model, one request at a time; when a tool has used it, the page's next question starts a new chat.
@@ -236,10 +67,10 @@ Tested with the official `openai` Python client and with [Aider](https://aider.c
```sh
aider --openai-api-base http://127.0.0.1:8090/v1 --openai-api-key anything \
- --model openai/Qwen3-Coder-Next-Q4_K_M --map-tokens 0 src/queue.ts
+ --model openai/<model file name> --map-tokens 0 src/queue.ts
```
-<p align="center"><img src="docs/coachwhip-aider.png" alt="Aider using Qwen3-Coder-Next (80B) through Coachwhip on a 16 GB Mac: it finds a sort-order bug and rewrites the file" width="720"></p>
+<p align="center"><img src="docs/coachwhip-aider.png" alt="Aider using an 80-billion-parameter coder through Coachwhip on a 16 GB Mac: it finds a sort-order bug and rewrites the file" width="720"></p>
<p align="center"><sub>Aider on a Windows laptop, reaching the Mac through an SSH tunnel, so the requests arrive as a local program.</sub></p>
@@ -257,18 +88,35 @@ cd ~/coachwhip
| Option | What it does |
|---|---|
| `--chat 8090` | Serve the chat page on that port, on this machine only |
-| `--max-tokens 4000` | Longest answer |
+| `--max-tokens 4000` | Longest answer, thinking included |
| `--temperature 0` | Always pick the likeliest word (same answer every time) |
-| `--bank 44` | Expert slots kept on the GPU per layer (56 for the 80B, 70 for its Q3_K_M file, 44 for Qwen3.6-35B) |
+| `--bank 44` | Expert slots kept on the GPU per layer |
| `--prefetch 10` | Experts guessed and read in ahead, per layer; 0 turns the guess off |
| `--ahead 4` | How many layers ahead the guess looks |
| `--think` | Let a thinking model reason before it answers (`--prompt` runs) |
| `--parallel` | The GPU waits on a shared event for its experts; faster on big models, same answers |
| `--flash-reads` | Read experts straight from the SSD, past the page cache; same answers |
-| `--stand-ins` | gpt-oss fast mode: stand-ins for the light picks not in the bank; the answers change |
+| `--experts 4` | Use fewer experts per word than the model was trained with; faster, the answers change |
+| `--stand-ins` | Fast mode for models that support it: stand-ins for the light picks not in the bank; the answers change |
| `--profile` | Print where the time went after each answer |
| `--help` | Everything else |
+## How it works
+
+- **Streams experts, not files.** The small, always-used part of the model lives on the GPU. The experts stay on the SSD, and for each word Coachwhip reads exactly the experts the router picked.
+- **An expert bank on the GPU.** Recently used experts stay in a bank in the GPU's memory and are reused, so the SSD is only touched for experts the bank does not hold.
+- **The early guess.** While the GPU works on one layer, Coachwhip runs the router of a layer ahead on the same input, so it already knows most of the experts that layer will want, and reads them in while the GPU is busy. A guess that would land too late is dropped rather than evicting an expert still in use. The last few layers, which have no later router, use the routes the model has taken before, and every chat teaches that table more.
+- **One GPU dispatch per layer.** All the experts a layer picked run together in a single fused kernel.
+- **Reads while it computes.** When a prompt needs more experts than the bank holds, the GPU starts on each expert the moment its bytes land, while the rest are still being read.
+- **Unified memory, used properly.** On Apple silicon the CPU and GPU share one memory, so an expert read from the SSD lands straight where the GPU reads it. No copies.
+- **Stays inside your Mac.** Coachwhip picks the bank that fits, warns you when macOS is short, and if the GPU runs out of room it says so on the page and stops; close some apps, or start it again with a smaller `--bank`.
+
+## Tell us how it ran
+
+Good or bad, especially if it was slow, the fan worked hard, or it ran hot. [Open an issue](https://github.com/1picassoai/coachwhip/issues) with your Mac (chip and memory), macOS version, the model file, the `--bank` you used, and the speed line the chat page shows under each answer. Questions and ideas are welcome there too.
+
+Release notes, every version: [docs/releases](docs/releases).
+
## Roadmap
- More MoE families: Mixtral, Qwen2-MoE, OLMoE, DeepSeek, GLM, Qwen3.8.
diff --git a/docs/GPT-OSS.md b/docs/GPT-OSS.md
index 1effdf3..54a0af9 100644
--- a/docs/GPT-OSS.md
+++ b/docs/GPT-OSS.md
@@ -1,59 +1,96 @@
# gpt-oss-120b on a 16 GB Mac
-OpenAI's gpt-oss-120b has 117 billion parameters and 128 experts in each of its 36 layers, of which it uses 4 for each word. On a Mac mini M4 with 16 GB, Coachwhip runs it at about 4.2 tok/s with every expert read for real, and at about 10 tok/s in fast mode.
+OpenAI's gpt-oss-120b has 117 billion parameters: 36 layers, 128 experts in each, 4 of them used for every word. It thinks before it answers.
-All numbers here: Mac mini M4, 16 GB, macOS 26, the squeezed file (`prepare`, every expert matrix at Q2_K), `--parallel --flash-reads`, temperature 0. The task is one prompt, a generic cancellable async task pool in TypeScript with dependency resolution; the model thinks, then writes the code, about 4,000 words in all. The code is run against 20 hidden checks (ordering, the concurrency limit, failure cascades, cancellation, a task that ignores its abort signal, an empty list, and others), 4 checks to a point. A second version of the task, the same job worded as a build-pipeline runner, checks that a score is not a fluke.
+On a Mac mini M4 with 16 GB, Coachwhip runs it two ways:
-## Speed and score, setup by setup
+| Mode | Speed | What you get |
+|---|---|---|
+| Exact (`--parallel --flash-reads`) | 4.2 tok/s | every expert the model asks for is read |
+| Fast (`--stand-ins` added) | 9.6 to 10.5 tok/s | light experts not in memory are stood in for by ones that are |
-| Setup | Speed | Score | Second version |
+Setup is on the models page under [gpt-oss-120b](MODELS.md#gpt-oss-120b): download the official MXFP4 file, squeeze it once with `coachwhip-prepare`, start the chat.
+
+## What to expect
+
+**It thinks first.** The chat page shows the thinking in a box above the answer. On everyday coding tasks the thinking is 50 to 300 words. On hard tasks, a job queue with cancellation and retries, a combinatorics proof, it thinks for 3,000 to 5,000 words before the first line of the answer. At 10 tok/s that is five to eight minutes of thinking.
+
+**The word cap counts the thinking.** `--max-tokens` is the total for thinking and answer together. The README starts the chat at 8,000, which covered every task on this page. A lower cap on a hard task can end the run inside the thinking, with no answer.
+
+**Everyday code in fast mode.** Working code at 8 to 10 tok/s. One example, measured on the release build: an arithmetic expression parser, asked for with a tokenizer, precedence climbing, right-associative `^`, unary minus, error positions and no `eval`, came back as 2,744 words at 8.3 tok/s. Run against 11 cases from its own requirements it passed 10. The one it missed, `-2^2` giving 4 instead of -4, the original file with every expert read missed in exactly the same way. On harder tasks it can get a detail like that wrong, in either mode. Read what it writes, and run it.
+
+**The squeeze and fast mode, checked.** The same prompt in four configurations: original file exact, 3.5 of 5 by reading; squeezed file fast mode on the release build, 10 of 11 cases; the task pool, 5.0 original against 4.8 squeezed exact and 4.5 fast. Neither the squeeze nor fast mode has turned working code into broken code in any measured run of the release build.
+
+**Hard tasks.** A rate-limiter specification with asynchronous waiting scored 1.5 of 5 in fast mode and 1.1 with every expert read. The loss there is the model's reasoning on the problem, not the mode.
+
+## A hard problem, and how it thinks
+
+Running a model this close is also a way of measuring the model. The numbers above say how fast it writes; this section says what it does with a problem it cannot do in one pass. Two cases, both in fast mode at 8 to 10 tok/s.
+
+**A counting problem.** Count the lines through at least three points of a 20 by 20 grid, and the sum over those lines of the number of ways to choose three of their points. The second sum is the number of collinear triples, and the exact answers are 6,778 lines and 104,676.
+
+At its default reasoning level the model thought for 4,000 words and was still thinking when the run was capped. The thinking was on the right road: inside the first 300 words it saw that the second sum counts collinear triples, then set up the count by primitive direction vectors, and by the end had the right formula for the triples in one direction, (b minus 1) times (20 minus b dx) times (20 minus b dy) summed over the step b. It never got to add the directions up. The cap, not the method, ended it.
+
+At the lowest reasoning level it stopped thinking early and wrote an answer within the same cap. The answer explained the method correctly for the first part, printed a garbled box where the number should have been, and gave a wrong formula for the second part. Less thinking got an answer out in four minutes, and the answer was wrong.
+
+**A job queue with cancellation.** A TypeScript class with a concurrency limit, three priority levels, cancellation before and during a job through `AbortSignal`, retries with backoff that must not hold a slot, and a drain that resolves when idle. The model thought for 3,500 words and was capped before writing code. The plan it had written was complete and sound: three queues, a flag to settle the race between a job finishing and its signal aborting, the slot released before the backoff timer starts. On the same task at a cap of 7,000 words the code would follow the plan; at 10 tok/s that is twelve minutes.
+
+What this says about the model: on a problem with several interacting rules it plans in full before it writes, and the plan is usually right. The cost is time, thousands of words of it, and a word cap that ends the run inside the plan leaves nothing. Give it the cap and the minutes, and it does the work. Take the thinking away, and it writes something that looks like an answer.
+
+## Speed and score on the task-pool prompt
+
+The task is one prompt: a generic cancellable asynchronous task pool in TypeScript with dependency resolution. The model thinks, then writes the code, about 4,000 words in all. The code is run against 20 hidden checks, 4 checks to a point. A second wording of the same job, a build-pipeline runner, checks that a score is not a fluke.
+
+All rows: Mac mini M4, 16 GB, macOS 26, the squeezed file (every expert matrix at Q2_K), `--parallel --flash-reads`, temperature 0.
+
+| Setup | Speed | Score | Second wording |
|---|---|---|---|
-| 4 experts, all read for real | 4.2 tok/s | 4.8 | |
-| 3 experts, all read for real | 5.6 tok/s | 4.5 | |
-| 4 experts, the first 2 real, stand-ins for the rest | 7.8 tok/s | 4.5 | 3.5 (7.9 tok/s) |
-| 4 experts, stand-ins by weight, no gap | 9.8 tok/s | 4.0 | 4.0 (10.0 tok/s) |
-| **4 experts, stand-ins by weight with the gap (`--stand-ins` as shipped), three runs** | **9.8, 10.5, 9.6 tok/s** | **5.0, 3.8, 4.8** | not run |
-| 4 experts, only the first real | 9.6 tok/s | 4.5 | 0.8 (10.2 tok/s) |
-| 2 experts | 7.1 tok/s | 0 (the code does not compile) | |
+| 4 experts, all read | 4.2 tok/s | 4.8 | |
+| 3 experts, all read | 5.6 tok/s | 4.5 | |
+| 4 experts, the first 2 read, stand-ins for the rest | 7.8 tok/s | 4.5 | 3.5 at 7.9 tok/s |
+| 4 experts, stand-ins by weight, no gap | 9.8 tok/s | 4.0 | 4.0 at 10.0 tok/s |
+| **4 experts, stand-ins by weight with the gap (`--stand-ins` as shipped), three runs** | **9.8, 10.5, 9.6 tok/s** | **5.0, 3.8, 4.8** | |
+| 4 experts, only the first read | 9.6 tok/s | 4.5 | 0.8 at 10.2 tok/s |
+| 2 experts | 7.1 tok/s | 0, the code does not compile | |
-`--stand-ins` as shipped is the only setup near 10 tok/s whose every run compiled and scored above 3.8. Without the gap, one run in three broke its file on a one-character slip (a run scored 0.8 before the gap was added). Reading fewer experts (3 or 2) costs more than standing in for the light ones: the model was trained to use 4.
+`--stand-ins` as shipped is the setup near 10 tok/s whose every run compiled and scored 3.8 or more. Without the gap, one run in three broke its file on a one-character slip. Reading fewer experts costs more than standing in for the light ones: the model was trained to use 4.
## What makes it fast
-Speed on a 16 GB Mac is set by one thing: how many bytes each word reads from the SSD. Everything below cuts those bytes or hides them.
+On a 16 GB Mac the speed is set by one number: how many bytes each word reads from the SSD. Everything here cuts those bytes or hides them.
-- **The squeeze.** `prepare` takes each expert from 13.2 MB (MXFP4) to 8.7 MB (Q2_K, rows padded to whole 256-weight blocks), so the bank on the GPU holds 25 experts a layer instead of 15. On this task the squeezed file scores the same as the original download.
-- **The expert bank.** Recently used experts stay on the GPU and are reused; with every expert read for real, about 4 picks in 5 are already there.
-- **The early guess.** While the GPU works on one layer, Coachwhip runs the router of a later layer on the same input and reads the experts it will want; for gpt-oss, 2 guesses a layer, 2 layers ahead; with `--stand-ins` 1 guess a layer, since most picks are already in the bank and extra guesses only queue reads in front of the ones a word needs (1,000-word answers: 8.4 to 10.9 tok/s).
-- **Flash reads (`--flash-reads`).** Experts are read straight from the SSD, past macOS's page cache.
-- **Stand-ins (`--stand-ins`).** A word's first pick is always read for real, and so is the second whenever the router gives it at least 0.3 of the weight. A lighter pick that is not in the bank is replaced by the best expert that is, by the router's own scores, and the weights are recomputed over the experts actually used. The substitute is used only when its router score is within 1.0 of the real pick's (logits); a pick that far ahead of every expert in the bank is read for real. Bank hits go from about 78% to about 97%, and the bytes read per word fall by about seven-eighths.
+- **The squeeze.** `coachwhip-prepare` takes each expert from 13.2 MB (MXFP4) to 8.7 MB (Q2_K, rows padded to whole 256-weight blocks), so the expert bank on the GPU holds 25 experts a layer instead of 15. On the task-pool prompt the squeezed file scores 4.8 against 5.0 for the original download, which runs at 2.2 tok/s.
+- **The expert bank.** Recently used experts stay on the GPU and are reused. With every expert read, about 4 picks in 5 are already there.
+- **The early guess.** While the GPU works on one layer, Coachwhip runs the router of a later layer on the same input and reads the experts it will want. For gpt-oss: 2 guesses a layer, 2 layers ahead; with `--stand-ins`, 1 guess a layer, since most picks are already in the bank.
+- **Flash reads (`--flash-reads`).** Experts are read straight from the SSD, past the page cache.
+- **Stand-ins (`--stand-ins`).** A word's first pick is always read, and so is the second whenever the router gives it at least 0.3 of the weight. A lighter pick that is not in the bank is replaced by the best expert that is, by the router's own scores, and the weights are recomputed over the experts used. The substitute is used only when its router score is within 1.0 of the real pick's; a pick further ahead than that is read. Bank hits go from about 78% to about 97%, and the bytes read per word fall by about seven-eighths.
- **Lean attention.** gpt-oss looks back only 128 words on every other layer; those layers keep only that window, and the shared keys are never copied out per head.
-## The task, and what it wrote
+## The task-pool prompt, and what it wrote
-This is the prompt every score on this page comes from. It asks for a piece of production code with several things that have to be right at once: a dependency graph with cycle checks, a concurrency limit, cancellation through `AbortSignal`, and failures that cascade without running the dependants.
+This is the prompt every score in the table above comes from. It asks for production code with several things that have to be right at once: a dependency graph with cycle checks, a concurrency limit, cancellation through `AbortSignal`, and failures that cascade without running the dependants.
> Implement a generic, cancellable asynchronous task execution pool in TypeScript with dependency resolution.
->
+>
> ### Requirements:
->
+>
> 1. **Task Definition & Dependencies:**
> - Each task has an `id: string`, optional `dependencies: string[]` (task IDs that must successfully complete first), and an `execute: (signal: AbortSignal) => Promise<T>`.
> - Before running any task, validate the dependency graph. Throw an `Error` if circular dependencies or references to non-existent tasks exist.
->
+>
> 2. **Concurrency & Execution:**
> - Accept a `concurrency: number` limit. At no point should more than `concurrency` tasks run in parallel.
> - Tasks must run as soon as a concurrency slot is available and all their dependencies have completed with `fulfilled` status.
->
+>
> 3. **Cancellation & Cascade Failures:**
> - Provide a `cancel(reason?: string)` method that aborts all actively executing tasks via their `AbortSignal` and cancels all pending tasks.
> - If any task fails (`rejected`) or is aborted (`cancelled`), any downstream dependent tasks must automatically be marked as `cancelled` without calling their `execute` function.
->
+>
> 4. **Return Value:**
> - `run()` must resolve to a `Map<string, TaskResult<unknown>>`, where:
> ```typescript
> type TaskStatus = 'fulfilled' | 'rejected' | 'cancelled';
->
+>
> interface TaskResult<T unknown> {
> id: string;
> status: TaskStatus;
@@ -62,9 +99,9 @@ This is the prompt every score on this page comes from. It asks for a piece of p
> }
> ```
-**What gpt-oss-120b wrote in fast mode, at 9.8 tok/s:** [gpt-oss-task-pool.ts](gpt-oss-task-pool.ts), 338 lines, taken from one of the three runs. The whole answer was 7,319 words, thinking included, and took 747 s on the Mac mini. That answer passed all 20 hidden checks; the other two runs passed 15 and 19.
+**What gpt-oss-120b wrote in fast mode at 9.8 tok/s:** [gpt-oss-task-pool.ts](gpt-oss-task-pool.ts), 338 lines, from one of the three runs. The whole answer was 7,319 words, thinking included, and took 747 s. It passed all 20 hidden checks; the other two runs passed 15 and 19.
-The 20 checks the code is run against (4 to a point), none of which the model sees:
+The 20 checks, none of which the model sees:
1. missing dependency throws
2. cycle throws
@@ -89,9 +126,9 @@ The 20 checks the code is run against (4 to a point), none of which the model se
## Its chat format
-gpt-oss speaks OpenAI's harmony format, with an analysis channel for its thinking and a final channel for the answer. The chat page shows the thinking in a box above the answer; the OpenAI-compatible API returns only the final answer.
+gpt-oss speaks OpenAI's harmony format: an analysis channel for its thinking, a final channel for the answer. The chat page shows both. The OpenAI-compatible API returns the final answer only.
## Not tested
-- Fast mode on tasks other than the one above.
-- Chats past 16K tokens, and Macs other than an M4 with 16 GB.
+- Chats past 16K tokens.
+- Macs other than an M4 with 16 GB.
diff --git a/docs/MODELS.md b/docs/MODELS.md
index 5cca6e3..eae7246 100644
--- a/docs/MODELS.md
+++ b/docs/MODELS.md
@@ -1,59 +1,175 @@
# Models
-What each model file does on a 16 GB Mac, measured the same way every time. These are measurements, not promises: your Mac, your prompt and your other apps will move them. Run the same checks yourself (below) and post what you get in an [issue](https://github.com/1picassoai/coachwhip/issues).
+Every model Coachwhip runs: which file to download, how to start it, what it needs from your Mac, and what it does on a 16 GB Mac, measured the same way every time. These are measurements, not promises: your Mac, your prompt and your other apps will move them. Run the same checks yourself (at the end) and post what you get in an [issue](https://github.com/1picassoai/coachwhip/issues).
+
+## Supported models
+
+Coachwhip is an engine for mixture-of-experts models in GGUF format.
+
+| Model | Architecture | Status |
+|---|---|---|
+| [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) | gpt-oss | Tested, after `prepare` (see [gpt-oss-120b](#gpt-oss-120b)). Thinks before it answers. |
+| [Qwen3.5-122B-A10B](https://huggingface.co/Qwen/Qwen3.5-122B-A10B) | qwen35moe | Tested, after `prepare` (see [Qwen3.5-122B-A10B](#qwen35-122b-a10b)). |
+| [Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) | qwen3moe | Tested. |
+| [Qwen3-Coder-Next](https://huggingface.co/Qwen/Qwen3-Coder-Next) (80B) | qwen3next | Tested. See [Qwen3-Coder-Next](#qwen3-coder-next-80b) for the file to use. |
+| [Qwen3-Next-80B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Next-80B-A3B-Instruct) | qwen3next | Tested. |
+| [Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) | qwen35moe | Tested. Thinks when asked to. |
+| Qwen3-30B-A3B, other Qwen3 MoE | qwen3moe | Supported. |
+| Qwen3.5 MoE, Qwen3.6-14B-A3B (community) | qwen35moe | Supported. The 14B fits in 16 GB on its own; Coachwhip does not make it faster. |
+
+Try 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). gpt-oss ships in MXFP4, which `prepare` reads and squeezes. Some newer Qwen 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.
+
+## Files and start lines
+
+| Model | GGUF file | Tokenizer | Bank on 16 GB |
+|---|---|---|---|
+| gpt-oss-120b, after `prepare` | [ggml-org MXFP4](https://huggingface.co/ggml-org/gpt-oss-120b-GGUF) | [tokenizer.json](https://huggingface.co/openai/gpt-oss-120b) | 25 |
+| Qwen3.5-122B-A10B, after `prepare` | [mradermacher Q3_K_M](https://huggingface.co/mradermacher/Qwen3.5-122B-A10B-GGUF) | [tokenizer.json](https://huggingface.co/Qwen/Qwen3.5-122B-A10B) | 40 |
+| Qwen3-Coder-Next (80B) | [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.6-35B-A3B | [unsloth UD-Q4_K_M](https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF) | [tokenizer.json](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) | 44 |
+| 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 |
+
+Any model that needs no squeeze starts with one line, the bank last:
+
+```sh
+~/coachwhip/coachwhip.sh ~/Downloads/Qwen3-Coder-Next.Q3_K_M.gguf ~/Downloads/tokenizer.json 70
+```
+
+## What each model needs
+
+| | gpt-oss-120b | 122B | 80B | 30B |
+|---|---|---|---|---|
+| Mac | Apple silicon, M4 or later recommended; M1 to M3 run it slower. Tested on a Mac mini M4. | the same | the same | the same |
+| Memory | 16 GB | 16 GB | 16 GB; 24 GB has room to spare | 16 GB |
+| Disk | 106 GB free while squeezing, 43 GB once you delete the download | 105 GB free while squeezing, 46 GB once you delete the download | 39 GB (Q3_K_M) or 49 GB (Q4_K_M) | 19 GB |
+| macOS | Tested on macOS 26 | the same | the same | the same |
+
+**What it does to your Mac.** While a model is hot, Coachwhip holds its bank and the model's always-used part on the GPU; the rest of the memory is yours.
+
+| | 30B on 16 GB (bank 44) | 80B on 16 GB (bank 56) | 122B on 16 GB (bank 40) |
+|---|---|---|---|
+| Held by Coachwhip while the model is hot | about 11 GB | about 7.5 GB | 11.2 to 12.8 GB |
+| Left for everything else | about 3 GB | about 7 GB | 1.5 to 2.3 GB at its tightest |
+
+The 30B's experts are bigger than the 80B's, so it holds more. If memory runs short, macOS squeezes your other apps, not Coachwhip. If the GPU runs out of room, Coachwhip says so on the page and stops; close some apps, or start it again with a smaller `--bank`. With 24 GB or more the 80B runs with room to spare. `--bank` trades GPU memory for speed in either direction; on 16 GB, 56 is the most the 80B should use.
## How we measure
- **Machine:** Mac mini M4, 16 GB, macOS 26.
-- **Engine:** the version named in each section, with its default settings, temperature 0. The 80B and the 35B were measured on 0.3.0 (`--prefetch 10 --ahead 4`); the 122B on 0.4.0 (`--prefetch 6 --ahead 2`, its own default).
+- **Engine:** the version named in each section, with its default settings, temperature 0. The 80B and the 35B were measured on 0.3.0 (`--prefetch 10 --ahead 4`); the 122B on 0.4.0 (`--prefetch 6 --ahead 2`, its own default); gpt-oss-120b on 0.5.0.
- **Speed:** the five coding prompts in [`bench/speed/prompts.json`](../bench/speed/prompts.json), each a fresh conversation capped at 300 tokens, run by [`bench/speed/run.py`](../bench/speed/run.py). "Writing" is answer tokens per second from the first token to the last, the same thing the chat shows under each answer; the table gives the mean over the five prompts, with the slowest and fastest in brackets.
-- **Quality:** 8 small coding tasks in [`bench/quality/tasks.json`](../bench/quality/tasks.json). Each answer's code is run against tests the model never sees ([`bench/quality/tests.py`](../bench/quality/tests.py)); a task passes only if every test does. Quality depends on the model file, not on Coachwhip's settings: the bank and the prefetch change how fast an answer comes, never what it says.
+- **Quality:** 8 small coding tasks in [`bench/quality/tasks.json`](../bench/quality/tasks.json). Each answer's code is run against tests the model never sees ([`bench/quality/tests.py`](../bench/quality/tests.py)); a task passes only if every test does. Quality depends on the model file, not on Coachwhip's settings: the bank and the prefetch change how fast an answer comes, never what it says. Fast modes (`--experts`, `--stand-ins`) are the exception and are measured separately.
## gpt-oss-120b
-OpenAI's open model (architecture `gpt-oss`): 36 layers, 128 experts of which 4 are used per word; it thinks before it answers. It runs from a **squeezed file** that `coachwhip-prepare` makes on your Mac from the official [MXFP4 GGUF](https://huggingface.co/ggml-org/gpt-oss-120b-GGUF) (63.4 GB): every expert matrix to Q2_K, rows padded to whole 256-weight blocks, the rest untouched; 42.6 GB written in about 13 minutes on an M4, about 106 GB free needed while both files exist. See the README, gpt-oss-120b.
+OpenAI's open model (architecture `gpt-oss`): 117 billion parameters, 36 layers, 128 experts of which 4 are used per word. It thinks before it answers, and the chat page shows the thinking.
-Mac mini M4, 16 GB, `--parallel --flash-reads`, bank 25 (the Wrangler's pick), temperature 0. Measured on one coding task, a cancellable async task pool in TypeScript (about 4,000 words of thinking and code), against 20 hidden checks:
+**Set up.** It runs from a squeezed file that `coachwhip-prepare` makes on your Mac from the official file.
-| Mode | Writing | Score of 5 | Second version of the task |
-|---|---|---|---|
-| Fast, `--stand-ins` | 9.6 to 10.5 tok/s, three runs | 5.0, 3.8, 4.8 (mean 4.5) | not run with the shipped setting |
-| The model's own 4 experts | 4.2 tok/s | 4.8 | |
+1. Download the official [MXFP4 GGUF](https://huggingface.co/ggml-org/gpt-oss-120b-GGUF) (63.4 GB) and the model's [tokenizer.json](https://huggingface.co/openai/gpt-oss-120b).
+2. Squeeze it. About 13 minutes on an M4. You need about **106 GB free** while it runs: the 63 GB download and the 43 GB squeezed file sit side by side.
+
+```sh
+~/coachwhip/target/release/coachwhip-prepare ~/Downloads/gpt-oss-120b-MXFP4.gguf ~/Downloads/gpt-oss-120b.Q2A.gguf
+```
+
+ The squeeze takes every expert matrix to Q2_K, rows padded to whole 256-weight blocks; everything else in the file is copied as it is. Nothing is downloaded from us.
+
+3. Delete the download. Coachwhip only uses the squeezed file:
+
+```sh
+rm ~/Downloads/gpt-oss-120b-MXFP4.gguf
+```
+
+4. Start it in one of two modes. Coachwhip picks the bank that fits your Mac (25 on 16 GB):
-This model is measured on its own task, not the five-prompt speed set above: its thinking makes 300-token answers mostly thinking. Every setup we measured, and what makes it fast: [GPT-OSS.md](GPT-OSS.md).
+```sh
+# exact: the model's own 4 experts per word, every one read
+~/coachwhip/coachwhip.sh ~/Downloads/gpt-oss-120b.Q2A.gguf ~/Downloads/tokenizer.json 25 8090 --parallel --flash-reads --max-tokens 8000
+
+# fast: stand-ins for the light picks that are not in the bank
+~/coachwhip/coachwhip.sh ~/Downloads/gpt-oss-120b.Q2A.gguf ~/Downloads/tokenizer.json 25 8090 --parallel --flash-reads --stand-ins --max-tokens 8000
+```
+
+`--max-tokens 8000` gives its thinking room: the cap counts thinking and answer together, and the default of 4,000 can end a hard task inside the thinking.
+
+**Measured.** Mac mini M4, 16 GB, `--parallel --flash-reads`, bank 25, temperature 0, on one coding task, a cancellable async task pool in TypeScript (about 4,000 words of thinking and code), against 20 hidden checks:
+
+| Mode | Writing | Score of 5 |
+|---|---|---|
+| Fast, `--stand-ins` | 9.6 to 10.5 tok/s, three runs | 5.0, 3.8, 4.8 (mean 4.5) |
+| Exact, the model's own 4 experts | 4.2 tok/s | 4.8 |
+
+This model is measured on its own task, not the five-prompt speed set: its thinking makes 300-token answers mostly thinking. Every setup measured, what fast mode does, how it behaves on everyday and on hard tasks: [GPT-OSS.md](GPT-OSS.md).
-- **Why the squeeze:** at MXFP4's 13.2 MB per expert the bank holds 15 experts a layer; at Q2_K's 8.7 MB it holds 25. On the task above the squeezed file scores the same as the original download.
-- **Why fast mode changes answers:** a light pick that is not in the bank is replaced by the best expert that is. The first pick is always read for real, and the second whenever it carries at least 0.3 of the weight; a substitute is used only when its router score is close to the real pick's.
+- **Why the squeeze:** at MXFP4's 13.2 MB per expert the bank holds 15 experts a layer; at Q2_K's 8.7 MB it holds 25. On the task above the squeezed file scores 4.8 against the original download's 5.0, which runs at 2.2 tok/s.
+- **Fast mode changes the answers.** A word's first expert is always read, and so is its second whenever the router gives it at least 0.3 of the weight. A lighter pick that is not already in the bank is replaced by the best expert that is, by the router's own scores, and only when that expert's score is close to the real pick's; otherwise the real one is read. It is a choice, never the default.
- Tokenizer: [tokenizer.json](https://huggingface.co/openai/gpt-oss-120b) from the model's own page.
## Qwen3.5-122B-A10B
-The biggest model Coachwhip runs on 16 GB (architecture `qwen35moe`): 48 layers, 256 experts of which 8 are used per word. It runs from a **squeezed file** that `coachwhip-prepare` makes on your Mac from the publisher's Q3_K_M (59 GB): each expert's gate and up matrices to Q2_K on the GPU, its down matrix to Q3_K, the rest untouched; 45 GB written in 5 to 9 minutes on an M4, and about 105 GB free needed while both files exist. See the README, The 122B.
+The biggest model Coachwhip runs on 16 GB (architecture `qwen35moe`): 48 layers, 256 experts of which 8 are used per word. Its experts are too big to stream fast as they come, so Coachwhip squeezes the file once, on your Mac.
+
+**Set up.**
+
+1. Download the publisher's [Q3_K_M GGUF](https://huggingface.co/mradermacher/Qwen3.5-122B-A10B-GGUF) (59 GB) and the model's [tokenizer.json](https://huggingface.co/Qwen/Qwen3.5-122B-A10B).
+2. Squeeze it. About 5 to 9 minutes on an M4. You need about **105 GB free** while it runs: the 59 GB download and the 46 GB squeezed file sit side by side.
+
+```sh
+~/coachwhip/target/release/coachwhip-prepare ~/Downloads/Qwen3.5-122B-A10B.Q3_K_M.gguf ~/Downloads/Qwen3.5-122B-A10B.Q2X.gguf
+```
+
+ The squeeze takes each expert's gate and up matrices to Q2_K on the GPU and its down matrix to Q3_K; everything else in the file is copied as it is. Nothing is downloaded from us.
+
+3. Delete the download. Coachwhip only uses the squeezed file, and keeping both takes about 105 GB:
-Fast mode (`--experts 4 --parallel`), Mac mini M4, 16 GB, bank 40:
+```sh
+rm ~/Downloads/Qwen3.5-122B-A10B.Q3_K_M.gguf
+```
+
+4. Start it in one of two modes, bank 40. If your Mac cannot hold a long chat at that size, Coachwhip says so and uses less:
+
+```sh
+# exact: the model's own 8 experts per word
+~/coachwhip/coachwhip.sh ~/Downloads/Qwen3.5-122B-A10B.Q2X.gguf ~/Downloads/tokenizer.json 40
+
+# fast: the router's top 4 experts per word, and the GPU runs ahead of the CPU
+~/coachwhip/coachwhip.sh ~/Downloads/Qwen3.5-122B-A10B.Q2X.gguf ~/Downloads/tokenizer.json 40 8090 --experts 4 --parallel
+```
+
+**Measured.** Fast mode (`--experts 4 --parallel`), Mac mini M4, 16 GB, bank 40:
| Tokens | Speed | Coachwhip uses | Left for macOS and your apps |
|---|---|---|---|
| 6,000-token answer | 4.2 tok/s | 11.2 GB | 2.3 GB at its tightest |
| 12,000-token prompt | 4.3 tok/s | 12.8 GB | 1.5 GB at its tightest |
-Measured 9 Oct 2026 on Coachwhip 0.4.0 by the tester, greedy. Exact mode (the model's own 8 experts, no `--experts`) wrote at 2.2 tok/s after the same 12,000-token prompt. Agent tasks through Aider, six of them in Python, TypeScript and Rust with hidden tests: fast mode passed 5 of 6, and exact mode passed the sixth.
+Measured 9 Oct 2026 on Coachwhip 0.4.0 by the tester, greedy. Exact mode (the model's own 8 experts, no `--experts`) wrote at 2.2 tok/s after the same 12,000-token prompt. Agent tasks through Aider, six of them in Python, TypeScript and Rust with hidden tests: fast mode passed 5 of 6, and exact mode passed the sixth. The 122B is tested to a 12,000-token prompt; longer is untested.
- **Why the squeeze:** at the file's own 4.9 MB per expert, 8 experts a word, the SSD cannot feed a 16 GB Mac faster than about 2 tok/s. At 3.4 MB per expert the same bank holds more and each read lands sooner.
-- **Why fast mode changes answers:** the model was trained to combine 8 experts per word; asking for 4 drops the four lightest. The one agent task fast mode failed had a built-in contradiction: it argued with itself until it ran out of room, where exact mode solved it in one go.
+- **Fast mode changes the answers:** the model was trained to combine 8 experts per word; asking for 4 drops the four lightest, and its answers can differ from what the full model would say. The one agent task fast mode failed had a built-in contradiction: it argued with itself until it ran out of room, where exact mode solved it in one go. It is a choice, never the default.
- Tokenizer: [tokenizer.json](https://huggingface.co/Qwen/Qwen3.5-122B-A10B) from the model's own page.
## Qwen3-Coder-Next (80B)
+The 80B coder has no thinking mode. Download the file below and its [tokenizer.json](https://huggingface.co/Qwen/Qwen3-Coder-Next), then start it with a bank of 70 for the Q3_K_M file or 56 for the Q4_K_M:
+
+```sh
+~/coachwhip/coachwhip.sh ~/Downloads/Qwen3-Coder-Next.Q3_K_M.gguf ~/Downloads/tokenizer.json 70
+```
+
| 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.4 to 5.7 tok/s** over three runs (prompts from 5.0 to 5.9) | 4.5 tok/s | 7 / 8 |
+| [MaziyarPanahi Q3_K_M](https://huggingface.co/MaziyarPanahi/Qwen3-Coder-Next-GGUF) | 38.2 GB | 70 | 5.5 GB | **5.4 to 5.7 tok/s** over three runs (prompts from 5.0 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**, one run (prompts from 3.9 to 4.4) | 3.4 tok/s | 7 / 8 |
0.3.0 speed measured 5 and 6 Oct 2026 over the five prompts; two of them finish before the 300-token cap, so their speed is measured over a shorter answer. The Q3_K_M figure is three runs by two people on the same Mac: 5.66 on an otherwise idle machine, 5.38 and 5.39 with a background load of about 2. Expect a few percent less when your Mac is doing other things. 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.
+- **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. The two files scored the same on the quality check.
- **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).
- **On 0.4.0:** the Q3_K_M file was run again on the release build at bank 70 and answered correctly; the full speed and quality checks above were not repeated.
@@ -64,7 +180,7 @@ Qwen's newest MoE generation (architecture `qwen35moe`): 40 layers, 256 experts
| GGUF file | Size | `--bank` on 16 GB | Bank memory | Writing, 0.3.0 | Quality |
|---|---|---|---|---|---|
-| [unsloth UD-Q4_K_M](https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF), recommended | 22.1 GB | 44 | 3.3 GB | **6.2 tok/s**, one run (prompts from 5.8 to 6.5) | 8 / 8 |
+| [unsloth UD-Q4_K_M](https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF) | 22.1 GB | 44 | 3.3 GB | **6.2 tok/s**, one run (prompts from 5.8 to 6.5) | 8 / 8 |
| the same file | 22.1 GB | 56 | 4.3 GB | 6.0 tok/s, one run (prompts from 5.8 to 6.5) | 8 / 8 |
Measured 6 Oct 2026: one person, one run per bank, on the same Mac with a background load of about 1.8, so these are a first measurement, not a settled range like the 80B's. Expect a few percent less when your Mac is doing other things, and tell us what you get. The first word came after 2.5 to 3.9 seconds on each prompt.
@@ -74,9 +190,13 @@ 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.
+## Qwen3-Coder-30B-A3B
+
+The 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.
+
## Not measured yet
-Qwen3-Coder-30B-A3B and Qwen3-Next-80B-A3B-Instruct run on Coachwhip (see the README) but have not been through these checks yet.
+Qwen3-Coder-30B-A3B and Qwen3-Next-80B-A3B-Instruct run on Coachwhip but have not been through the speed and quality checks yet.
## Run it yourself
diff --git a/docs/releases/0.5.0.md b/docs/releases/0.5.0.md
index 5d9bddc..0fd0771 100644
--- a/docs/releases/0.5.0.md
+++ b/docs/releases/0.5.0.md
@@ -9,6 +9,13 @@ Mac mini M4, 16 GB, measured; your Mac and your prompt will move the numbers.
- **Two modes.** The model's own 4 experts per word, every one read for real: about 4.2 tok/s. Fast mode, `--stand-ins`: about 10 tok/s. Both measured on the same coding task (a cancellable async task pool in TypeScript, about 4,000 words of thinking and code, temperature 0): the first scored 4.8 of 5 on our 20 hidden checks, fast mode 5.0, 3.8 and 4.8 over three runs.
- **Its own chat format.** gpt-oss speaks OpenAI's harmony format; the chat page and the API speak it to the model, and the API returns only the final answer.
+## What to expect from it
+
+- **Everyday code, fast mode:** working code at 8 to 10 tok/s. An arithmetic expression parser with a tokenizer, precedence climbing and error positions, asked for with traps in the requirements, came back at 8.3 tok/s and passed 10 of its 11 cases when run; the one it missed, unary minus binding tighter than `^`, the original file with every expert read missed in the same way. On harder tasks it can get a detail like that wrong, in either mode. Read what it writes, and run it.
+- **Hard tasks are slow and weak.** On a specification with several interacting rules it thinks for 3,000 to 5,000 words before writing, five to eight minutes at 10 tok/s, and a rate-limiter with asynchronous waiting scored 1.5 of 5 in fast mode and 1.1 with every expert read.
+- **`--max-tokens` counts the thinking.** Start it with 8,000 as the setup shows; a lower cap can end a hard task inside the thinking, with no answer.
+- **The other models are unchanged:** the 122B, the 80B and the 35B run from the same files with the same numbers as 0.4.1.
+
## Faster
- **Stand-ins, `--stand-ins`.** When a light pick is not in the bank, Coachwhip uses the best expert that is, by the router's own scores, instead of reading one from the SSD. The first pick is always read for real, and the second whenever the router gives it at least 0.3 of the weight, and a substitute is used only when its router score is close to the real pick's. Fewer reads per word; the answers change, so check them for your use.
@@ -21,6 +28,6 @@ Mac mini M4, 16 GB, measured; your Mac and your prompt will move the numbers.
## Not tested
-- gpt-oss beyond the chat's 16K tokens, and fast mode on tasks other than the one above.
+- gpt-oss beyond the chat's 16K tokens.
- Macs other than an M4 with 16 GB on macOS 26.
- `--stand-ins` on the Qwen models; it is meant for gpt-oss.