What LLMs Can I Run on a Mac (M4, 24 GB)?

24 GB of unified memory, of which about 16.1 GB is usable for a model. That runs 11 of the 20 models here , up to DeepSeek-R1 Distill Qwen 14B.

Largest model that fits: DeepSeek-R1 Distill Qwen 14B at Q6_K, needing 10.0 GB and leaving 6.1 GB spare. Its context can run to 40K tokens before memory runs out.

Every model, on this hardware

Which models run on a Mac (M4, 24 GB)
Model Size Needs Runs Max context
Llama 3.2 1B1.2B1.7 GBYes128K
Llama 3.2 3B3.2B3.4 GBYes124K
Llama 3.1 8B8.0B6.0 GBYes89K
Llama 3.3 70B70.5B40.3 GBNo—
Qwen2.5 3B3.1B2.7 GBYes32K
Qwen2.5 7B7.6B5.2 GBYes32K
Qwen2.5 14B14.8B10.0 GBYes32K
Qwen2.5 32B32.8B20.0 GBNo—
Qwen2.5 72B72.7B41.4 GBNo—
Qwen2.5 Coder 7B7.6B5.2 GBYes32K
Qwen2.5 Coder 32B32.8B20.0 GBNo—
Qwen3 32B32.8B20.0 GBNo—
Mistral 7B v0.37.3B5.6 GBYes32K
Gemma 2 9B9.2B8.3 GBYes8K
Gemma 2 27B27.2B17.9 GBNo3K
Phi-414.7B10.0 GBYes16K
Qwen3 30B-A3B30.5B17.5 GBNo—
Qwen3 235B-A22B235.1B125.4 GBNo—
Mixtral 8x7B46.7B26.3 GBNo—
DeepSeek-R1 Distill Qwen 14B14.8B10.0 GBYes40K

Q4_K_M at 8K context. "Max context" is the longest context that still fits once the weights are loaded.

Unified memory changes the arithmetic

A Mac shares one pool between the CPU and GPU, so a laptop with 24 GB can hold a model that no consumer graphics card can — the largest of those tops out at 32 GB. The trade is bandwidth: generation is slower than a discrete card of comparable capacity. For a model that would otherwise not run at all, slower is the better problem.

The other half is context. Weights are a fixed cost, but the key-value cache grows with every token, and on a long conversation it can outgrow the weights. That is why the table above gives a maximum context per model rather than a yes or no — plenty of models load fine on this hardware and then run out of room mid-conversation.

Frequently asked questions

What LLMs can a Mac (M4, 24 GB) run?
11 of the 20 models on this site, at Q4_K_M with a 8K context. The largest is DeepSeek-R1 Distill Qwen 14B at 14.8B parameters, needing 10.0 GB of the roughly 16.1 GB usable.
Why is usable memory less than the 24 GB on the box?
Because the memory is shared with everything else the machine is doing. macOS caps what it will hand to one process, so of the 24 GB here roughly 16.1 GB is available to a model. That is still the advantage of unified memory — a laptop holding a model no consumer graphics card can — but the headline figure is not all yours.
Does a bigger model at a rougher quantisation beat a smaller one?
Usually, yes. A 32B model at Q3_K_M generally outperforms a 7B at Q8_0, even though the smaller model is barely quantised at all. The practical rule is to fit the largest model you can and then step the quantisation down only as far as you must — which is what the "best format" column above is showing.
How accurate are these figures?
They count weights, the key-value cache at the chosen context, and a fixed runtime allowance. Real usage moves with the runtime, the batch size and whether flash attention is enabled. Treat anything within a gigabyte of capacity as "probably not" rather than "just fits" — which is why the table says "only just" rather than "yes" past 95% of usable memory.

Manufacturer specifications for VRAM and unified memory. Model config.json files published on Hugging Face.

An estimate of memory, not a benchmark. It counts model weights, the key-value cache at the context you choose, and a fixed runtime allowance. Actual usage moves with the runtime, the batch size, whether flash attention is on, and how much the operating system has already taken from a shared memory pool. Treat a result within a gigabyte of your card's capacity as 'probably not' rather than 'just fits'.

Data on this page last verified . How these figures are calculated

    ↑↓ to move ↵ to open