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
Coachwhip 0.5.0
Mac mini M4, 16 GB, measured; your Mac and your prompt will move the numbers.
New model: gpt-oss-120b
- OpenAI's gpt-oss-120b on a 16 GB Mac (
gpt-oss): 117 billion parameters, 4 of its 128 experts per word in each of 36 layers. It thinks before it answers, and the chat page shows the thinking. - Squeezed once on your own Mac from the official MXFP4 file:
coachwhip-preparetakes every expert matrix to Q2_K, rows padded to whole 256-weight blocks; everything else is copied as it is. 63.4 GB in, 42.6 GB out, in about 13 minutes on an M4; about 106 GB free is needed while both exist. Nothing is downloaded from us. - 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-tokenscounts 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. - Flash reads,
--flash-reads. Experts are read straight from the SSD, past macOS's page cache, which has nothing to give back on a 16 GB Mac. The answers do not change.
Structure
crates/engine/src/model_gptoss.rs: the gpt-oss family (attention sinks, a 128-word sliding window on every other layer, its clamped expert activation with biases). The expert maths is now a small hook per family, so the Qwen families are unchanged.- Vendored
candle-corewith an MXFP4 kernel for Metal; its tests are left out.
Not tested
- gpt-oss beyond the chat's 16K tokens.
--stand-inson the Qwen models; it is meant for gpt-oss.