Read this first
Everything else in these benchmarks was measured on one Mac Studio with 64 GB. This page is different. It was measured on an M4 Pro Mac mini with 24 GB, the kind of Mac far more people own.
We first ran these tests during a working day, mostly once each. We then ran all of them again overnight with nothing else running. The tables below are the overnight figures. Where the first day gave a different answer, we say so, because the difference turned out to be a finding.
These are speeds and memory. We have not checked the answers on this Mac, and nothing here joins the run log.
The short version
- A 37.7 GB model ran on a 24 GB Mac without touching swap, at about 8 tokens a second.
- Keeping part of the model on the SSD costs more than half the speed, even when almost nothing is read from it.
- There is a useful middle. Flint wrote at 34 tokens a second with memory to spare. Held whole it wrote at 79, and then crashed on its second prompt.
- A long prompt on a small Mac comes from giving the model less memory, not from squeezing the conversation.
- How long the session runs changes the answer. Near the memory limit, a setting that worked for nine requests failed or halved its speed by fifteen.
What was tested
Some models are a mixture of experts: each token uses only a few of many small sub-networks. Basalt is a server for Apple Silicon that can leave those experts on the SSD and read them in as they are picked, keeping only a fixed amount of them in memory. That fixed amount is the expert cache.
We used Basalt 0.11.0 on macOS 27.2.1, and three models:
- Gemma 4 26B-A4B, 4-bit, 15 GB.
- Qwen3.6-35B-A3B, 8-bit, 37.7 GB. Bigger than the Mac's memory.
- Flint, 3-bit, 18.5 GB. It fits in memory, with under 2 GB to spare.
Speeds are tokens a second. "Write" is counted after the first token. "Read" is the prompt's tokens over the time to the first token. Prompts were made-up maintenance notes, different every run so nothing could be reused. Each figure is the middle of its runs. One server ran at a time, with a minute's rest between them.
1. Does it do what it says?
Basalt publishes speeds for this class of Mac. On the first morning we ran the same three cases its way: one short prompt, repeated four times.
| Model | How it was held | We measured | Basalt says | Memory on the GPU |
|---|---|---|---|---|
| Gemma 4 26B-A4B | all in memory | 72.8 to 73.2 | 68.9 | 16.0 GB |
| Gemma 4 26B-A4B | 4 GB expert cache | 13.1 to 13.5 | 13.4 | 7.3 GB |
| Qwen3.6-35B-A3B, 37.7 GB | 8 GB expert cache, the size Basalt chose | 8.69 to 8.74 | 8.77 | 12.9 GB |
The published figures held. The Qwen run is the one that matters: a file half as big again as the Mac's memory, running with no growth in swap. With a new prompt every time, as in the rest of this page, it wrote at 8.1.
2. The same file on three runtimes
Gemma, held entirely in memory, on Basalt, mlx_lm 0.32.2 and oMLX 0.4.4. The same folder of weights for all three. Five runs at each length.
| Prompt length | Basalt | mlx_lm, tuned | mlx_lm, defaults | oMLX | |
|---|---|---|---|---|---|
| 170 tokens | read | 385 | 496 | 482 | 280 |
| write | 73.3 | 65.1 | 64.9 | 75.9 | |
| 760 tokens | read | 611 | 638 | 676 | 326 |
| write | 69.5 | 63.3 | 62.9 | 73.0 | |
| 3,170 tokens | read | 598 | 648 | 663 | 254 |
| write | 55.5 | 60.8 | 60.1 | 68.8 | |
| runs completed | 5 of 5 | 5 of 5 | 3 of 5, then crashed | 1 of 5, then refused | |
| 13,130 tokens | read | 537 | 549 | did not run | refused |
| write | 37.0 | 54.5 |
"Tuned" is mlx_lm with a prompt-reading step of 512 and a prompt cache of one entry.
- On short prompts oMLX and Basalt wrote fastest. mlx_lm was about 12% behind.
- Only Basalt and tuned mlx_lm got through everything.
- mlx_lm with its default settings ran out of GPU memory on its fourth 3,170-token prompt, and its server stopped answering.
- oMLX's memory guard refused all but the first 3,170-token prompt.
- On the first day both of those only failed at 13,140 tokens. That session had three runs at each length, not five. We think memory builds up over a session and haven't confirmed it. oMLX also ran last, a minute after mlx_lm stopped.
- Basalt slowed the most as the prompt grew, from 73 to 37. Tuned mlx_lm went from 65 to 54.5. We don't know why yet.
An earlier finding of ours says runtimes on identical weights decode within 6% of each other (runtime-does-not-affect-throughput). That was a dense model on the Mac Studio. On this model and this Mac the gap was wider, and widest on long prompts.
3. How much of the model has to be in memory?
Each model on Basalt, with the expert cache at each size. Five runs for each case. The prompt for reading was about 2,600 tokens for Flint and 3,170 for the other two.
| Model | Expert cache | Write, short prompt | Read | Cache hits | Memory on the GPU |
|---|---|---|---|---|---|
| Flint | 4 GB | 12.0 | 27 | 27.7% | 7.4 GB |
| 8 GB | 21.2 | 31 | 43.8% | 11.6 GB | |
| 10 GB | 26.8 | 66 | 73.6% | 13.7 GB | |
| 12 GB | 34.3 | 204 | 93.8% | 15.8 GB | |
| 14 GB | 35.2 | 285 | 97.9% | 17.9 GB | |
| all in memory | 79.2, then crashed | ||||
| Gemma 4 26B-A4B | 4 GB | 14.1 | 120 | 72.0% | 10.3 GB |
| 6 GB | 26.1 | 94 | 78.5% | 12.5 GB | |
| 8 GB | 29.7 | 135 | 82.9% | 14.6 GB | |
| 10 GB | 14.4 | 311 | 95.7% | 16.7 GB | |
| 12 GB | 13.3 | 437 | 99.5% | 18.3 GB | |
| all in memory | 73.3 | 598 | 16.0 GB | ||
| Qwen3.6-35B-A3B | 4 GB | 5.3 | 49 | 44.5% | 10.1 GB |
| 6 GB | 6.7 | 53 | 50.6% | 12.2 GB | |
| 8 GB | 8.1 | 53 | 56.4% | 14.0 GB |
Gemma's in-memory row is from section 2.
- Streaming costs more than half the speed, however big the cache. Flint at 97.9% cache hits wrote at 35 against 79 in memory. Gemma's best was 30 against 73. So the loss is not mainly the SSD. Something in how the experts are fetched costs more than the reading itself. We haven't found what.
- Writing speed stops improving before the cache is full. For Flint, 14 GB was barely faster than 12 GB.
- Reading a prompt is what the cache changes most. Flint at 8 GB waited about 85 seconds for the first word of a 2,600-token prompt.
- Flint held whole doesn't work on this Mac. It wrote one short reply at 79, then ran out of GPU memory on a 620-token prompt. It fits, with no room for a conversation.
- For Flint, 12 GB is the useful middle: 34 tokens a second with about a fifth of the Mac's memory free.
- For Gemma it is 8 GB, and a bigger cache is worse. At 10 and 12 GB Gemma used more memory than Gemma held whole, and its writing speed halved.
- Gemma at 10 GB wrote at 31 in a shorter session. With nine requests it peaked at 15.1 GB and ran well. With fifteen it peaked at 16.7 GB and wrote at 14. Memory use came out 1 to 1.5 GB higher at every cache size in the longer session. We haven't confirmed where it goes.
- Qwen never held enough of itself to get fast. At 8 GB, the largest cache we tried and the one Basalt picks itself, barely half of what it asked for was already in memory. There may be room for 10 GB. We didn't try it.
4. How long a prompt fits?
Flint, three runs in each cell that was run.
| Setting | 32,700 tokens | 49,600 tokens | 66,500 tokens | Memory on the GPU |
|---|---|---|---|---|
| 12 GB cache | read 205, write 24.4 | read 189, write 22.7 | crashed part-way through its answer | 17.7 GB |
| 12 GB cache, conversation at 4-bit | read 207, write 21.2 | read 190, write 18.1 | refused | 16.4 GB |
| 12 GB cache, conversation at 8-bit | read 206, write 20.3 | refused | refused | 15.9 GB |
| 10 GB cache | not run | not run | read 74, write 18.7 | 16.4 GB |
| 10 GB cache, conversation at 4-bit | not run | not run | read 73, write 14.7 | 14.9 GB |
The crash and the refusals are from the first day, one attempt each. Memory is the highest seen in that setting's session.
- 66,500 tokens ran six times out of six with a 10 GB cache. Each took about 15 minutes to read the prompt.
- Squeezing the conversation helped less than expected. At 4-bit it saved 1.3 to 1.5 GB and cost up to a fifth of the writing speed. Most of Flint's layers only look back a short way, and Basalt leaves those alone.
- We hid one code in the middle of each long prompt and asked for it back. It came back in all 21 runs, at full precision, 4-bit and 8-bit. That is one case a run: it shows nothing broke, not that nothing changed.
- The 8-bit setting refused prompts that the default and 4-bit both accepted. A setting that uses less memory shouldn't be the stricter one. We think this is a fault in Basalt's estimate for Flint. It did not happen on Gemma, which ran 33,000 and 53,000 tokens at 8-bit without complaint. We haven't reported it.
- The refusals depend on the memory left, not on the length alone. 4-bit was refused at 66,500 tokens with a 12 GB cache and ran with 10 GB.
- One run we can't explain: the second 32,700-token run at full precision wrote at 11.7, against 25.8 and 24.4 either side of it.
What we don't know
- Whether the answers are as good. Same weights should mean the same answers, but we haven't run our test suites on this Mac.
- Why streaming costs so much when the cache nearly always hits.
- Where the extra memory goes over a longer session, on Basalt, mlx_lm and oMLX alike.
- Why Basalt's writing speed falls so steeply on long prompts in memory.
- Whether the 8-bit refusal on Flint is a fault. It didn't repeat on Gemma.
- llama.cpp and Ollama. Both need a different file of the same model, so that comparison is the runtime and the format together.
If you have a 24 GB Mac
- A model that fits with room to spare is far faster than one that doesn't. Streaming is for the model you otherwise couldn't run, or for keeping memory free for other work.
- A model that only just fits is a trap. It will answer a short prompt quickly and fall over on a longer one. Stream it with a large cache instead.
- Give the expert cache as much as you can spare, but stop well short of the model's own size. For Flint that was 12 GB. For Gemma it was 8 GB.
- For a long prompt, lower the cache before you compress the conversation.
- Expect a long wait before the first word on anything over a few thousand tokens.
- Test for as long as you'll use it. A few requests can pass where a longer session doesn't.