The best LLMs for a 24 GB Mac.

35 of 92 open models run well in 24 GB. The GPU can use about 18 GB of it by default. Speed depends on the chip: from 100 GB/s on the M3 to 307 GB/s on the M5 Pro.

Updated

Smartest that runs wellMiniCPM5 2B8-bit · 2.7 GB · 17–91 tok/sBiggest that runs wellRaon-1 mini Preview4-bit · 16.2 GB · 19–102 tok/sFor codeDevstral Small 2 (24B)4-bit · 13.5 GB · 3–18 tok/s

Macs with 24 GB

7 chips from M2 to M6 come with 24 GB. Open one for its own list and speeds.

Runs well 49

Fits with room for context, at 10 or more tokens a second on the M5 Pro.

ModelVersionMemoryM3M5 Pro
MiniCPM5 2B2.52B · Intelligence 12.58-bit2.7 GB17–3051–91
Qwen3.5 9B9B · Intelligence 11.28-bit9.6 GB5–814–26
Granite 4.2 8B8B · Intelligence 11.18-bit8.5 GB10–1816–29
Granite 4.2 3B3B · Intelligence 9.18-bit3.2 GB14–2543–77
gpt-oss-20b21B · 3.6B active · Intelligence 9native 4.25-bit13.8 GB24–4273–129
Gemma 4 E4B8B · Intelligence 8.98-bit8.5 GB12–2229–51
Ministral 3 8B8.9B · Intelligence 5.58-bit9.5 GB5–815–26
Nemotron 3 Nano 4B3.97B · Intelligence 4.88-bit4.2 GB11–1933–58
Raon-1 mini Preview28.8B · 4.3B active4-bit16.2 GB19–3358–102
Gemma 4 26B A4B25.2B · 3.8B active4-bit14.2 GB21–3866–117
Devstral Small 2 (24B)24B4-bit13.5 GB3–610–18
Magistral Small 1.2 (2509)24B4-bit13.5 GB3–610–18
Mistral Small 3.2 (24B)24B4-bit13.5 GB3–610–18
LFM2.5 24B A2B24B · 2B active4-bit13.5 GB41–73126–223
Phi-4 Reasoning Vision 15B15B6-bit12.2 GB3–511–20
Phi-4 (14B)14B6-bit11.4 GB3–512–22
Gemma 4 12B Unified12B8-bit12.7 GB4–611–19
TwIL 8B8.79B8-bit9.3 GB5–915–26
Qwen3 8B8.2B8-bit8.7 GB10–1716–28
Llama 3.1 8B Instruct8B8-bit8.5 GB10–1816–29
Gemma 4 E2B5.1B8-bit5.4 GB19–3358–102
Nanbeige4.2 3B4.17B8-bit4.4 GB11–2018–31
Spark-X2.6 4B4.11B8-bit4.4 GB10–1831–56
Qwen3.5 4B4B8-bit4.3 GB10–1932–57
Nemotron-Labs Dory 1.0 4B3.98B8-bit4.2 GB10–1722–40
Phi-4 mini instruct3.8B8-bit4 GB11–2035–61
Llama 3.2 3B Instruct3.21B8-bit3.4 GB13–2441–72
SmolLM3 3B3B8-bit3.2 GB14–2543–77
LFM2.5 2.6B2.69B8-bit2.9 GB16–2848–85
Qwen3.5 2B2B8-bit2.1 GB21–3866–117
LFM3 VL 2B1.92B8-bit2 GB25–4477–136
LFM3 1.7B1.73B8-bit1.8 GB25–4477–136
Llama 3.2 1B Instruct1.23B8-bit1.3 GB35–62106–189
Qwen3.5 0.8B0.8B8-bit0.9 GB50–89154–273
Qwen3 0.6B0.6B8-bit0.6 GB75–133230–409
Qwen3.6 35B A3B35B · 3B active · Intelligence 18.23-bit lower quality15.3 GB35–62106–189
Muse Glimmer 30B29.6B · Intelligence 17.53-bit lower quality13 GB3–611–19
Gemma 4 31B30.7B · Intelligence 14.73-bit lower quality13.4 GB3–610–18
Nemotron 3.5 Lightning 30B A3B30B · 3B active · Intelligence 12.93-bit lower quality13.1 GB35–62106–189
Granite 4.2 30B30B · Intelligence 12.73-bit lower quality13.1 GB3–611–19
Nemotron 3 Nano 30B A3B30B · 3.5B active · Intelligence 8.93-bit lower quality13.1 GB30–5392–164
Recursive Flint39.8B · 2.5B active2-bit lower quality12.4 GB56–100173–307
Sage-A1.535B · 2.95B active3-bit lower quality15.3 GB35–62106–189
Clover 35B A3B Preview35B · 3B active3-bit lower quality15.3 GB35–62106–189
Nanbeige4.3 33B33.1B3-bit lower quality14.5 GB3–610–17
Qwen3 Coder 30B A3B Instruct30.5B · 3.3B active3-bit lower quality13.3 GB32–5799–175
Hy-Memory-30B-A3B30.1B · 3.2B active3-bit lower quality13.2 GB32–5799–175
GLM-4.7 Flash30B · 3B active3-bit lower quality13.1 GB35–62106–189
Ternary Bonsai 2 27B27.4Bnative 2.25-bit lower quality7.7 GB6–1118–32

Runs, but slowly 2

Fits, but under 10 tokens a second: fine for batch work, slow for chat.

ModelVersionMemoryM3M5 Pro
Qwen3.8 27B27B · Intelligence 33.74-bit15.2 GB3–59–16
Qwen3.6 27B27B4-bit15.2 GB3–59–16

Too big 41

Needs more memory than 24 GB, even at 2 bits.

Questions

What is the best LLM for a Mac with 24 GB?
Of the models with a published Intelligence Index, MiniCPM5 2B scores highest among those that run well in 24 GB (8-bit). The biggest that runs well is Raon-1 mini Preview. For code: Devstral Small 2 (24B).
Is 24 GB enough for local AI on a Mac?
35 of the 92 open models here run well in it at 4 bits or better. macOS lets the GPU use about 18 GB of it by default; the model and its context have to fit in that.
Can a 24 GB Mac run gpt-oss-20b?
Yes, native 4.25-bit, at about 24–42 tokens a second on an M3 and 73–129 on an M5 Pro.

Other sizes: 8 GB · 16 GB · 18 GB · 24 GB · 32 GB · 36 GB · 48 GB · 64 GB · 96 GB · 128 GB · 192 GB · 256 GB · 512 GB

Run them with Apple’s mlx-lm in Terminal: step by step.

How much RAM an LLM needs · The best local LLM for coding

How it’s worked out

Memory: the model’s parameters at 8, 6, 4, 3 or 2 bits per weight plus MLX’s group scales (half a bit per weight), or its native format, with room for the context on top. By default macOS lets the GPU use about 75% of unified memory. Speed: memory bandwidth divided by the bytes read per token is the ceiling for one conversation; in llama.cpp’s public Apple Silicon benchmarks real runs reach about 45% to 80% of it, which is the range shown. These are estimates, not measurements: measure your own Mac on MLX Bench. Model figures from each official model card, chip figures from Apple’s Tech Specs. Checked 2026-10-19. Same data as mlx.app/compare.

Open data: mlx.app/data (JSON, CSV)