Best local LLMs for a 24GB Mac
On a 24GB Mac (Apple M6, 170 GB/s), the largest model in our dataset that fits fully at 16k context is LFM2.5 24B-A2B Q4_K_M (14.9 GB, ~57 tok/s (estimated)). The fastest that fits is LFM3 1.7B Q8_0 at ~60 tok/s (estimated). Unified memory is shared with the system, so about 16.3 GB is usable for the model and KV cache. Speeds are labelled measured, scaled or estimated.
The short answer
On a 24GB Mac (Apple M6, 170 GB/s), the largest model in our dataset that fits fully at 16k context is LFM2.5 24B-A2B Q4_K_M (14.9 GB, ~57 tok/s (estimated)). The fastest that fits is LFM3 1.7B Q8_0 at ~60 tok/s (estimated).
Some 24GB Macs are much faster than the base Apple M6: Mac mini — M5 Pro (16-core GPU) at 307 GB/s; MacBook Pro 14 — M5 Pro (16-core GPU) at 307 GB/s; MacBook Pro 14/16 — M5 Pro (20-core GPU) at 307 GB/s. The table uses the common base chip so the numbers stay conservative.
Macs with 24 GB of unified memory
- Mac mini — M5 Pro (16-core GPU) 24GB · 307 GB/s Amazon
- MacBook Pro 14 — M5 Pro (16-core GPU) 24GB · 307 GB/s Amazon
- MacBook Pro 14/16 — M5 Pro (20-core GPU) 24GB · 307 GB/s Amazon
- Mac mini (2024) — M4 Pro 24GB · 273 GB/s Amazon
- MacBook Pro 14/16 (2024) — M4 Pro 24GB · 273 GB/s Amazon
- iMac 24 — M6 24GB · 170 GB/s Amazon (table below)
- Mac mini — M6 24GB · 170 GB/s Amazon
- MacBook Pro 14 — M6 (12-core GPU) 24GB · 170 GB/s Amazon
- MacBook Air 13 — M5 24GB · 153 GB/s Amazon
- MacBook Air 15 — M5 (10-core GPU) 24GB · 153 GB/s Amazon
- MacBook Pro 14 — M5 (10-core GPU) 24GB · 153 GB/s Amazon
- iMac 24 — M4 24GB · 120 GB/s Amazon
- Mac mini (2024) — M4 24GB · 120 GB/s Amazon
Bandwidth can change with the memory size (for example M6 is 153 GB/s at 16GB and 170 GB/s at 24/32GB). Amazon links are search results, not a price. As an Amazon Associate I earn from qualifying purchases.
Models that fit a 24GB Apple M6, largest first
16k context, f16 KV cache, 170 GB/s. Other chips at this size: Apple M5 Pro (307 GB/s), Apple M4 Pro (273 GB/s), Apple M5 (153 GB/s), Apple M4 (120 GB/s).
| Model | Params | Quant | Fit | Memory | Tok/s | Speed source |
|---|---|---|---|---|---|---|
| LFM2.5 24B-A2B | 23.97B MoE | Q4_K_M | fits fully | 14.9 GB | 57 | estimated |
| gpt-oss 20B | 20.91B MoE | Q8_0 | fits fully | 12.5 GB | 40 | estimated |
| Mellum2.1 12B-A2.5B Instruct | 12.15B MoE | Q8_0 | fits fully | 13.2 GB | 32 | estimated |
| Gemma 4 12B | 11.96B | Q4_K_M | fits fully | 7.7 GB | 17 | scaled from measured |
| Qwen3.5 9B | 9.65B | Q6_K | fits fully | 8.0 GB | 16 | scaled from measured |
| Ornith 1.5 9B | 9.65B | Q6_K | fits fully | 8.3 GB | 16 | scaled from measured |
| Qwen3-VL 8B | 8.77B | Q6_K | fits fully | 9.1 GB | 18 | scaled from measured |
| Gemma 4 E4B | 8B | Q6_K | fits fully | 7.4 GB | 17 | scaled from measured |
| DeepSeek R1 Distill Qwen 7B | 7.62B | Q8_0 | fits fully | 9.0 GB | 15 | scaled from measured |
| Qwen3.5 4B | 4.66B | Q8_0 | fits fully | 5.1 GB | 27 | scaled from measured |
| Nemotron 3 Nano 4B | 3.97B | Q8_0 | fits fully | 4.6 GB | 29 | scaled from measured |
| LFM3 1.7B | 1.73B | Q8_0 | fits fully | 2.1 GB | 60 | estimated |
MLX on this Mac
MLX is Apple's machine-learning framework for Apple Silicon. Where a verified MLX conversion exists (mlx-community or the model's own publisher), the commands above include an MLX block next to llama.cpp and ollama.
- File size. MLX's default quantization is affine with a group size of 64, and every group stores a scale and a bias (MLX docs). With 16-bit scales and biases that works out to about 4.5 bits per weight at 4-bit and 8.5 at 8-bit. llama.cpp lists Q4_K_M at about 4.89 and Q8_0 at about 8.50 bits per weight (llama.cpp quantize README). So an MLX 4-bit repo is usually a little smaller than Q4_K_M and MLX 8-bit is about the same size as Q8_0. Real repos differ because some layers (embeddings, vision towers, MoE experts in MXFP4 for gpt-oss) are stored differently, so we show each repo's actual size.
- Quality. They are different schemes. MLX 4-bit applies one bit width with per-group scale and bias, while Q4_K_M is a K-quant mix that keeps some tensors at higher precision (llama.cpp k-quants PR). We have not found a rigorous like-for-like quality comparison, so we only pair them by bit class: MLX 4-bit with Q4-class GGUF and MLX 8-bit with Q8_0.
- Speed. MLX speeds are not shown on this site yet. Published comparisons often find MLX faster than llama.cpp on Macs: an M2 Ultra study measured about 230 tok/s for MLX against about 150 for llama.cpp (short context) on Qwen-2.5 models (arXiv 2511.05502), and an M4 Max table shows mlx-lm ahead of llama.cpp on most 4-bit text models but behind on Gemma 3 4B (arXiv 2601.19139). So MLX may well run faster than the llama.cpp numbers shown here, but not for every model, and we do not estimate by how much.
- Which package. Text-only conversions run with mlx-lm. Many recent mlx-community repos (Gemma 4, Qwen3.5/3.6/3.8, Qwen3-VL) were converted with mlx-vlm and their model cards say to run them with it, so the command we show follows each repo's card.
Repos are checked against the Hugging Face API (how).
FAQ
What is the best local LLM for a 24GB Mac?
On a 24GB Mac (Apple M6, 170 GB/s), the largest model in our dataset that fits fully at 16k context is LFM2.5 24B-A2B Q4_K_M (14.9 GB, ~57 tok/s (estimated)). The fastest that fits is LFM3 1.7B Q8_0 at ~60 tok/s (estimated).
Does a 24GB Mac share memory with the OS?
Yes. We treat about 16.3 GB of the 24 GB as usable for the model and KV cache, which is why a model whose file is close to 24 GB may not fit at 16k context.
Are these speeds measured on a Mac?
Most Mac speeds on this page are estimated from memory bandwidth, or scaled from a measured run on similar hardware. They are labelled so you can tell them apart. MLX may be faster than the llama.cpp figures; we do not estimate by how much.
Which 24GB Mac is fastest for local LLMs?
At this memory size, higher bandwidth wins: Mac mini — M5 Pro (16-core GPU) is listed at 307 GB/s, versus 170 GB/s for the base Apple M6.
Also see: 16GB Mac · 32GB Mac · all guides · 24GB VRAM (GPUs) · interactive advisor.