FreshContext A context lab · Fife , home
Drawing
02 · Benchmarks
Sheet
2 of 3
Rev
A · 2026-10-01

← Lab Notes

Models bigger than your memory.

What reading a model's experts from the SSD costs on a 24 GB Mac, measured with Basalt

Status
Measured 19 and 20 November 2026 on a quiet Mac, five runs for each short case and three for each long prompt. Speed and memory only. Not part of our run log
Date
2026-11-19
Lab note

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.

ModelHow it was heldWe measuredBasalt saysMemory on the GPU
Gemma 4 26B-A4Ball in memory72.8 to 73.268.916.0 GB
Gemma 4 26B-A4B4 GB expert cache13.1 to 13.513.47.3 GB
Qwen3.6-35B-A3B, 37.7 GB8 GB expert cache, the size Basalt chose8.69 to 8.748.7712.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 lengthBasaltmlx_lm, tunedmlx_lm, defaultsoMLX
170 tokensread385496482280
write73.365.164.975.9
760 tokensread611638676326
write69.563.362.973.0
3,170 tokensread598648663254
write55.560.860.168.8
runs completed5 of 55 of 53 of 5, then crashed1 of 5, then refused
13,130 tokensread537549did not runrefused
write37.054.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.

ModelExpert cacheWrite, short promptReadCache hitsMemory on the GPU
Flint4 GB12.02727.7%7.4 GB
8 GB21.23143.8%11.6 GB
10 GB26.86673.6%13.7 GB
12 GB34.320493.8%15.8 GB
14 GB35.228597.9%17.9 GB
all in memory79.2, then crashed
Gemma 4 26B-A4B4 GB14.112072.0%10.3 GB
6 GB26.19478.5%12.5 GB
8 GB29.713582.9%14.6 GB
10 GB14.431195.7%16.7 GB
12 GB13.343799.5%18.3 GB
all in memory73.359816.0 GB
Qwen3.6-35B-A3B4 GB5.34944.5%10.1 GB
6 GB6.75350.6%12.2 GB
8 GB8.15356.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.

Setting32,700 tokens49,600 tokens66,500 tokensMemory on the GPU
12 GB cacheread 205, write 24.4read 189, write 22.7crashed part-way through its answer17.7 GB
12 GB cache, conversation at 4-bitread 207, write 21.2read 190, write 18.1refused16.4 GB
12 GB cache, conversation at 8-bitread 206, write 20.3refusedrefused15.9 GB
10 GB cachenot runnot runread 74, write 18.716.4 GB
10 GB cache, conversation at 4-bitnot runnot runread 73, write 14.714.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.