M4 generation

Local LLMs on the M4

The M4 moves 120 GB/s and takes up to 32 GB of unified memory. That combination runs everything up to Qwen 2.5 32B at Q4, at roughly 5.4 tokens/sec. Bandwidth sets the speed, memory sets the ceiling, and the tables below give both for every model.

Worth knowing. The one row on this page we have measured directly. See /benchmarks.

Memory bandwidth

120 GB/s

Unified memory

16, 24, 32 GB

8B model at Q4

~20.8 tok/s

Found in: MacBook Air, 14-inch MacBook Pro, Mac mini, iMac (2024-2025). Specifications verified 2026-09-11against Apple’s published figures.

What the M4 runs, at Q4_K_M

Memory figures include a 3 GB reserve for macOS and an 8K context. Speeds come from a model fitted to our own measured benchmarks; the method and its error bars are on the calculator page.

ModelNeeds16 GB24 GB32 GB
Llama 3.2 3B8 GB46.4 tok/s46.4 tok/s46.4 tok/s
Mistral 7B16 GB22.9 tok/s22.9 tok/s22.9 tok/s
Qwen 2.5 7B16 GB21.8 tok/s21.8 tok/s21.8 tok/s
Llama 3.1 8B16 GB20.8 tok/s20.8 tok/s20.8 tok/s
DeepSeek R1 Distill 8B16 GB20.8 tok/s20.8 tok/s20.8 tok/s
Qwen 2.5 14B16 GB11.7 tok/s11.7 tok/s11.7 tok/s
Qwen 2.5 32B32 GBtight5.4 tok/s
Llama 3.3 70B56 GB
Qwen 2.5 72B56 GB
Mistral Large 296 GB
Llama 3.1 405B288 GB
DeepSeek V3480 GB

What it cannot run

Even at 32 GB, these need more unified memory than the M4 can address at Q4: Llama 3.3 70B, Qwen 2.5 72B, Mistral Large 2, Llama 3.1 405B, DeepSeek V3. Dropping the quantization buys a little room but not a generation of it, so the real options are a chip with a higher ceiling or several machines with pooled memory.

M4 against the M3

Bandwidth went from 100 GB/s to 120 GB/s, which is 1.2x, and that ratio carries almost directly into generation speed at the same model and quantization. The memory ceiling went from 24 GB to 32 GB, which is the part that decides whether a model runs at all rather than how fast. That extra headroom is the stronger reason to upgrade, because speed you can wait out and memory you cannot.

Common questions

What is the largest model an M4 can run?

At Q4_K_M with 32 GB of unified memory, Qwen 2.5 32B is the largest of the major open models that fits, needing about 32 GB once macOS is accounted for. Anything larger has to drop to a smaller quantization, run across clustered machines, or move to a chip with a higher memory ceiling.

How fast is the M4 for local inference?

It has 120 GB/s of memory bandwidth, and generation speed on Apple Silicon is set almost entirely by bandwidth divided by the size of the weights. In practice that works out to roughly 20.8 tokens/sec on an 8B model at Q4 and 5.4 on a 32B, assuming they fit. That is about 1.2x the M3 at the same model size.

How much memory should I order with an M4?

Memory decides which models you can run at all, and it cannot be upgraded later, so it is the one specification worth overbuying. M4 ships in 16, 24, 32 GB. The 16 GB configuration caps you at the small end; 32 GB is what opens up the larger models in the table on this page.

Rent an M4 instead of buying one

We run this exact chip as a dedicated machine, from $99/mo, with Ollama installed and an OpenAI compatible endpoint already exposed. Same silicon and the same numbers as this page, without the hosting, the static IP, or being your own on call.

Other Apple Silicon