24GB VRAM

Mac M4 24G — what LLMs can it run?

67 of 112 indexed models fit comfortably in 24GB at 4K context, each at the highest-quality quant that still leaves headroom.

The short answer for Mac M4 24G

24 GB, 120 GB/s. 67 of 112 models in this index fit comfortably at 4K context; 75 load at all.

Biggest that fits
Qwen3-VL 30B-A3B Instruct — 15.8 GB at Q3_K_M — 2.2 GB spare at 4K, so longer context comes out of a thin margin.
Room to grow
DeepSeek-Coder-V2-Lite Instruct — 10.1 GB at Q4_K_M — under 60% of the card, which leaves 7.9 GB for a long context window or a second process.
Speed ceiling
Llama 3.1 8B Instruct at Q4_K_M reads 4.6 GB of weights per token, so 120 GB/s puts a hard ceiling near 26 tok/s. That is arithmetic on two published numbers, not a benchmark — real throughput lands below it. No run on this card has been measured here, so there is nothing to compare the ceiling against.
The wall you will hit
The GPU's share of unified memory, not the 24 GB on the box. macOS reserves part of the pool for the system and caps what a single process may wire down, so the practical budget is meaningfully below nameplate — the limit is adjustable (`iogpu.wired_limit_mb`) but it is not absent. Bandwidth is 120 GB/s, which is the number that decides tok/s once a model fits.
Best local LLM for Apple silicon

32B · 9

Mac M4 24G — what LLMs can it run? — 32B
ModelQuantEst. VRAMHeadroomtok/s
Qwen3-VL 30B-A3B Instruct30B-A3BQ3_K_M15.83 GB+2.2 GB≤87Ceiling
North Mini Code 1.0 30B-A3B30B-A3BQ3_K_M15.27 GB+2.7 GB≤90Ceiling
Gemma 3 27B IT27BQ3_K_M14.86 GB+3.1 GB7–9Derived
LFM2.5 24B-A2B24B-A2BQ4_K_M15.27 GB+2.7 GB≤85Ceiling
Devstral Small 1.1 24B24BQ4_K_M15.64 GB+2.4 GB6–8Derived
Magistral Small 1.2 24B24BQ4_K_M15.64 GB+2.4 GB6–8Derived
Codestral 22B22BQ4_K_M15.03 GB+3 GB7–9Derived
ERNIE 4.5 21B-A3B21B-A3BQ4_K_M14.05 GB+3.9 GB≤69Ceiling
GPT-OSS 20B21B MoEMXFP412.76 GB+5.2 GB≤61Ceiling

14B · 19

Mac M4 24G — what LLMs can it run? — 14B
ModelQuantEst. VRAMHeadroomtok/s
InternLM2 20B Chat20BQ5_K_M15.59 GB+2.4 GB6–9Derived
DeepSeek-Coder-V2-Lite Instruct16B-A2.4BQ4_K_M10.08 GB+7.9 GB≤87Ceiling
DeepSeek-V2-Lite Chat16B-A2.4BQ4_K_M10.08 GB+7.9 GB≤87Ceiling
StarCoder2 15B15BQ4_K_M10.19 GB+7.8 GB10–13Derived
Qwen3 14B Instruct14BQ5_K_M11.65 GB+6.4 GB9–12Derived
Qwen2.5 14B Instruct14BQ5_K_M11.73 GB+6.3 GB9–12Derived
DeepSeek-R1-Distill-Qwen-14B14BQ4_K_M10.14 GB+7.9 GB10–14Derived
Phi-4 14B14BQ5_K_M11.77 GB+6.2 GB9–12Derived
Phi-3 Medium 14B Instruct14BQ6_K12.86 GB+5.1 GB8–11Derived
Mistral Nemo 12B Instruct12BQ6_K11.14 GB+6.9 GB9–12Derived
Gemma 3 12B IT12BQ5_K_M9.84 GB+8.2 GB11–14Derived
Mellum2.1 12B-A2.5B Thinking12B-A2.5BQ8_013.6 GB+4.4 GB≤48Ceiling
Stable LM 2 12B Chat12BQ4_K_M8.35 GB+9.7 GB12–16Derived
Gemma 4 12B IT12BQ8_013.82 GB+4.2 GB7–10Derived
Llama 3.2 11B Vision Instruct11BQ8_012.9 GB+5.1 GB8–10Derived
Solar 10.7B Instruct11BQ4_K_M7.6 GB+10.4 GB14–19Derived
Falcon 3 10B Instruct10BQ4_K_M7.28 GB+10.7 GB14–19Derived
Gemma 2 9B Instruct9BQ8_011.7 GB+6.3 GB9–12Derived
Qwen3.5 9B9BQ8_010.37 GB+7.6 GB9–12Derived

7B · 25

Mac M4 24G — what LLMs can it run? — 7B
ModelQuantEst. VRAMHeadroomtok/s
GLM-4-9B-Chat9BQ8_010.16 GB+7.8 GB10–13Derived
Qwen3-VL 8B Instruct8BQ8_010.39 GB+7.6 GB10–13Derived
Granite 4.2 8B8BQ8_010.45 GB+7.6 GB10–13Derived
Ministral 3 8B Instruct8BQ8_010.02 GB+8 GB10–13Derived
Qwen2-VL 7B Instruct7BQ4_K_M5.49 GB+12.5 GB18–24Derived
Granite 3.1 8B Instruct8BQ4_K_M5.88 GB+12.1 GB18–24Derived
Qwen3 8B Instruct8BQ6_K7.64 GB+10.4 GB14–18Derived
Llama 3.1 8B Instruct8BQ8_09.47 GB+8.5 GB11–14Derived
Nous Hermes 3 Llama 3.1 8B8BQ4_K_M5.64 GB+12.4 GB19–25Derived
Aya 23 8B8BQ4_K_M5.64 GB+12.4 GB19–25Derived
OpenChat 3.6 8B8BQ4_K_M5.64 GB+12.4 GB19–25Derived
DeepSeek-R1-Distill-Llama-8B8BQ5_K_M6.51 GB+11.5 GB16–21Derived
InternLM2 7B Chat7BQ4_K_M5.45 GB+12.6 GB19–26Derived
Qwen2.5 7B Instruct7BQ6_K6.77 GB+11.2 GB15–19Derived
Qwen2.5-Coder 7B Instruct7BQ4_K_M5.07 GB+12.9 GB20–26Derived
DeepSeek-R1-Distill-Qwen-7B7BQ4_K_M5.07 GB+12.9 GB20–26Derived
Gemma 4 E4B ITE4BQ8_08.46 GB+9.5 GB11–15Derived
OLMo 2 7B Instruct7BQ8_010.3 GB+7.7 GB12–16Derived
OLMo 3 7B Instruct7BQ8_010.3 GB+7.7 GB12–16Derived
WizardLM-2 7B7BQ4_K_M5.14 GB+12.9 GB21–28Derived
Mistral 7B Instruct v0.37BQ6_K6.75 GB+11.3 GB15–20Derived
Zephyr 7B Beta7BQ6_K6.75 GB+11.3 GB15–20Derived
Gemma 4 E2B ITE2BQ8_05.2 GB+12.8 GB≤26Ceiling
Qwen3.5 4B4BQ8_04.97 GB+13 GB≤27Ceiling
Gemma 3 4B IT4BQ8_05.05 GB+13 GB≤28Ceiling

≤3B · 14

Mac M4 24G — what LLMs can it run? — ≤3B
ModelQuantEst. VRAMHeadroomtok/s
Qwen3 4B Instruct4BQ6_K4.05 GB+14 GB≤38Ceiling
Phi-4 Mini Instruct3.8BQ8_04.81 GB+13.2 GB≤31Ceiling
Phi-3.5 Mini Instruct3.8BQ8_05.89 GB+12.1 GB≤31Ceiling
Granite 4.2 3B3BQ8_04.41 GB+13.6 GB≤33Ceiling
Llama 3.2 3B Instruct3BQ8_04.05 GB+14 GB≤37Ceiling
Qwen2.5 3B Instruct3BQ8_03.59 GB+14.4 GB≤38Ceiling
SmolLM3 3B3BQ8_03.73 GB+14.3 GB≤39Ceiling
Gemma 2 2B Instruct2BQ8_03.34 GB+14.7 GB≤46Ceiling
Qwen3.5 2B2BQ8_02.23 GB+15.8 GB≤61Ceiling
Qwen3 1.7B Instruct1.7BQ8_02.39 GB+15.6 GB≤69Ceiling
Qwen2.5 1.5B Instruct1.5BQ8_01.83 GB+16.2 GB≤77Ceiling
Llama 3.2 1B Instruct1BQ8_01.51 GB+16.5 GB≤96Ceiling
Qwen3.5 0.8B0.8BQ8_00.94 GB+17.1 GB≤148Ceiling
Qwen2.5 0.5B Instruct0.5BQ8_00.6 GB+17.4 GB≤245Ceiling

How this list is built

Each row is the lowest-perplexity-loss quant of that model whose estimated total — weights plus KV cache at 4K context plus activation buffer — uses at most 88% of the card. That is the calculator's "green" threshold, so every row here has real headroom rather than only just fitting. Raise the context length and the list shortens; the calculator lets you check any combination directly. The speed column is this card: a measured run, a range scaled from this card's own Llama 2 7B benchmark, or a bandwidth ceiling. A figure that only exists for the RTX 4090 is labelled as that card.

A further 8 models load but with no headroom to spare (up to 105% of VRAM) — the Quant Hub’s GPU chips count those too, which is why its number is higher.

Measured on this card

No benchmark runs in this index were recorded on a Mac M4 24G. Every figure on this page is calculated from the model architecture and the quant level — treat them as estimates, not measurements.

Cards with the same budget

What fits is decided by memory, so every 24GB card of this type returns the same list. These pages are not different answers — they differ in throughput, which this index does not measure per card.

Same list, different speed — play one sentence on both cards: Mac M4 24G vs Mac M4 Pro 24G (Gemma 3 27B IT)

Setup guides for this card

Step-by-step guides written for the Mac M4 24G's runtime or memory size, with the commands and the checks that prove the model is running on the card.

Stepping up

A Mac M5 32G (32GB) fits 16 more of the indexed models than this card. Mac M5 32G →

Common questions

What is the best local LLM for a Mac M4 24G?

For everyday use, DeepSeek-Coder-V2-Lite Instruct at Q4_K_M — about 10.1 GB of the card's 24 GB at 4K context, leaving 7.9 GB for a longer window. If you want the largest thing that will load, that is Qwen3-VL 30B-A3B Instruct at Q3_K_M (15.8 GB, 2.2 GB spare). "Best" here means best fit for the memory budget — this index does not run task benchmarks, so it cannot tell you which model is smarter.

Can a Mac M4 24G run Gemma 4 31B IT?

No. Its smallest build here, Q4_K_M, needs about 21.1 GB and this card has 18.0 GB usable — short by 3.1 GB before any context beyond 4K. The largest model this card does clear is Qwen3-VL 30B-A3B Instruct.

How many tokens per second does a Mac M4 24G do on an 8B model at Q4?

This index has no measured run on this card, so it does not publish a figure. What can be stated from specifications: generating a token requires reading every weight once, Llama 3.1 8B Instruct at Q4_K_M is 4.6 GB of weights, and this card moves 120 GB/s — a ceiling near 26 tok/s. Batch size, context length, the runtime and how much of the model sits in cache all take you below it.

Mac M4 24G or RTX 4090 for local LLMs?

They do not hold the same set: Mac M4 24G fits 67 and RTX 4090 86 of 112 at 4K — macOS keeps part of the Mac M4 24G's unified memory from the GPU, leaving about 18 GB usable. Speed is the other difference — 120 GB/s against 1,008 GB/s, a 8.4× gap in how fast the weights can be read, which is what token generation is bound by. The RTX 4090 generates faster on any model both can hold.

67 of 112 indexed models fit comfortably in 24GB at 4K context, each at the highest-quality quant that still leaves headroom.

This page's figures change when the model or the runtime does.Last updated 2026-10-20 RSS → /feed.xml