Apple · M4 · Desktop
Best AI Models for iMac 24" M4 (24 GB)
Runs 9B models well and fits 35B MoE; 14B and 27–31B fit but are slow (12 and 7 tok/s), and 70B doesn't fit in 20.5 GB.
| # | Model | Speed | llmrun Score | Quant · Memory |
|---|---|---|---|---|
| 1 | Q4_K_M · 16.5 GB · 31.5 t/s | 31.5 tok/s | Q4_K_M · 16.5 GB | |
| 2 | Qwen3.5 9BAlibaba Q4_K_M · 6.6 GB · 17.0 t/s | 17.0 tok/s | Q4_K_M · 6.6 GB | |
| 3 | Qwen3.5 4BAlibaba Q4_K_M · 3.4 GB · 31.3 t/s | 31.3 tok/s | Q4_K_M · 3.4 GB | |
| 4 | GPT OSS 20BOpenAI Q4_K_M · 13.1 GB · 33.9 t/s | 33.9 tok/s | Q4_K_M · 13.1 GB | |
| 5 | LFM2.5 24B A2BLiquid AI Q4_K_M · 15.0 GB · 44.5 t/s | 44.5 tok/s | Q4_K_M · 15.0 GB |
| # | Model | Speed | Coding Score | Quant · Memory |
|---|---|---|---|---|
| 1 | Q4_K_M · 16.5 GB · 31.5 t/s | 31.5 tok/s | Q4_K_M · 16.5 GB | |
| 2 | GPT OSS 20BOpenAI Q4_K_M · 13.1 GB · 33.9 t/s | 33.9 tok/s | Q4_K_M · 13.1 GB | |
| 3 | Q4_K_M · 7.9 GB · 20.1 t/s | 20.1 tok/s | Q4_K_M · 7.9 GB | |
| 4 | Qwen3.5 9BAlibaba Q4_K_M · 6.6 GB · 17.0 t/s | 17.0 tok/s | overall | Q4_K_M · 6.6 GB |
| 5 | LFM2.5 24B A2BLiquid AI Q4_K_M · 15.0 GB · 44.5 t/s | 44.5 tok/s | Q4_K_M · 15.0 GB |
| # | Model | Speed | Reasoning Score | Quant · Memory |
|---|---|---|---|---|
| 1 | Q4_K_M · 16.5 GB · 31.5 t/s | 31.5 tok/s | Q4_K_M · 16.5 GB | |
| 2 | Qwen3.5 9BAlibaba Q4_K_M · 6.6 GB · 17.0 t/s | 17.0 tok/s | Q4_K_M · 6.6 GB | |
| 3 | GPT OSS 20BOpenAI Q4_K_M · 13.1 GB · 33.9 t/s | 33.9 tok/s | Q4_K_M · 13.1 GB | |
| 4 | Qwen3 8BAlibaba Q4_K_M · 7.6 GB · 19.4 t/s | 19.4 tok/s | Q4_K_M · 7.6 GB | |
| 5 | LFM2.5 24B A2BLiquid AI Q4_K_M · 15.0 GB · 44.5 t/s | 44.5 tok/s | Q4_K_M · 15.0 GB |
| # | Model | Speed | Long context Score | Quant · Memory |
|---|---|---|---|---|
| 1 | Qwen3.5 9BAlibabaHow to run → Q4_K_M · 6.6 GB · 17.0 t/s | 17.0 tok/s | Q4_K_M · 6.6 GB | |
| 2 | Qwen3.5 4BAlibaba Q4_K_M · 3.4 GB · 31.3 t/s | 31.3 tok/s | Q4_K_M · 3.4 GB | |
| 3 | GPT OSS 20BOpenAI Q4_K_M · 13.1 GB · 33.9 t/s | 33.9 tok/s | Q4_K_M · 13.1 GB | |
| 4 | Q4_K_M · 7.9 GB · 20.1 t/s | 20.1 tok/s | Q4_K_M · 7.9 GB | |
| 5 | LFM2.5 24B A2BLiquid AI Q4_K_M · 15.0 GB · 44.5 t/s | 44.5 tok/s | Q4_K_M · 15.0 GB |
| # | Model | Speed ↓ | llmrun Score | Quant · Memory |
|---|---|---|---|---|
| 1 | GPT OSS 20BOpenAIHow to run → Q4_K_M · 13.1 GB · 33.9 t/s | 33.9 tok/s | Q4_K_M · 13.1 GB | |
| 2 | LFM2.5 24B A2BLiquid AI Q4_K_M · 15.0 GB · 44.5 t/s | 44.5 tok/s | Q4_K_M · 15.0 GB | |
| 3 | Gemma 4 26B A4B ITGoogle Q4_K_M · 16.5 GB · 31.5 t/s | 31.5 tok/s | Q4_K_M · 16.5 GB | |
| 4 | Qwen3.5 4BAlibaba Q4_K_M · 3.4 GB · 31.3 t/s | 31.3 tok/s | Q4_K_M · 3.4 GB | |
| 5 | Qwen3.5 9BAlibaba Q4_K_M · 6.6 GB · 17.0 t/s | 17.0 tok/s | Q4_K_M · 6.6 GB |
The iMac 24" M4 is a 24 GB desktop with more memory than speed: it runs 9B models well and fits 35B MoE. macOS keeps about 3.5 GB, leaving 20.5 GB for models. Prompt reading is its weak spot: a 4K-token prompt waits 21 s before the first word on Gemma 4 26B A4B IT. M4 generation, released 2024; the newer M5 writes 26% faster with 1.9× the compute.
iMac 24" M4 strengths and weaknesses
Strengths
- Runs 35B MoE models: Qwen3.6 35B A3B at 31.4 tok/s in 19.8 GB
Weaknesses
- 70B models don't fit: Llama 3.3 70B Instruct needs 51.3 GB at Q4 vs 20.5 GB usable here
- Slow on large dense models: Qwen3.8 27B at 6.5 tok/s
- Slow prompt reading: A 32K-token prompt on Gemma 4 26B A4B IT waits 2.8 min for the first token
- No CUDA: vLLM, AWQ, GPTQ and FP8 builds don't run; use GGUF or MLX
Memory for models
20.5 GB of 24 GB70B models need 51.3 GB at Q4, more than the 20.5 GB available. The 32 GB config fits Inkling 2 Mini →Or rent an H100 (80 GB) from $2.34/hr →
Other memory sizes of the same machine first, then machines and GPUs people weigh against it, each with the one reason it is worth a look. Speeds on Qwen3.5 9B.
Output speed depends on memory bandwidth (120 GB/s). Grey rows need more than the 20.5 GB available.
- 9BQwen3.5 9B · Q4_K_M · 6.6 GB17.0tok/s
- 14BQwen3 14B · Q4_K_M · 11.9 GB11.6tok/s
- 6.5tok/s
- 31.4tok/s
- 70BLlama 3.3 70B Instruct · not at 4-bitneeds 51.3 GB
- 120B MoEGPT OSS 120B · not at 4-bitneeds 70.8 GB
Estimated speeds: Q4_K_M, 4K context, one user. How we estimate
Chip generations: writing vs compute
M1 → M5Writing speed follows memory bandwidth and barely moved: 9.9 to 21.4 tok/s since the M1. Compute, which sets how fast prompts are read, grew 3.1×. Indexed to the M1; speeds on Qwen3.5 9B, same 16 GB.
All 1177 models on the iMac 24" M4
Featured onlyBest quant that fits in 20.5 GB, ordered by llmrun Score. Fit grades how well it runs here, S best. How ranking works
| Model | Quant | VRAM | Speed | Context | Score | Fit |
|---|---|---|---|---|---|---|
Gemma 4 31B IT Qat Q4 0 UnquantizedVisionFunctions | Q4_0 | 18.6 GB | 6.5 t/s | 262K | D28, Barely runs | |
Tmax 27BChatFunctions | Q4_K_M | 17.3 GB | 6.7 t/s | 262K | C37, Usable | |
Qwen3.5 2B Claude 4.6 Opus Reasoning DistilledChatReasoning | Q4_K_M | 1.9 GB | 52.6 t/s | 262K | A81, Runs well | |
Qwen3.6 35B A3B Abliterated V4ChatFunctions | IQ4_NL | 20.0 GB | 37.8 t/s | 262K | B48, Decent | |
Tiny DeepseekV3ForCausalLMChatFunctions | Q4_K_M | 0.3 GB | 157.7 t/s | 164K | S97, Runs great | |
| Q4_K_M | 9.0 GB | 13.3 t/s | 131K | B53, Decent | ||
LightOnOCR 3 0.8BVisionFunctions | Q4_K_M | 0.9 GB | 90.0 t/s | 262K | S90, Runs great | |
| Q4_K_M | 13.5 GB | 30.6 t/s | 131K | A71, Runs well | ||
| Q4_K_M | 1.2 GB | 77.3 t/s | 128K | S87, Runs great | ||
Apriel 1.6 15B ThinkerVisionFunctions | Q4_K_M | 13.2 GB | 11.4 t/s | 262K | B50, Decent | |
Qwen3 1.7BChatFunctions | Q4_K_M | 3.4 GB | 53.1 t/s | 41K | A81, Runs well | |
Gemma 4 E4B IT OBLITERATEDChatFunctions | Q4_K_M | 5.6 GB | 20.1 t/s | 131K | B60, Decent | |
| Q4_K_M | 9.0 GB | 13.3 t/s | 131K | B53, Decent | ||
| Q4_K_M | 0.7 GB | 119.9 t/s | 131K | S95, Runs great | ||
Gemma 3 4B T1 ITChat | Q4_K_M | 3.4 GB | 33.9 t/s | 131K | A73, Runs well |
Specs
- Chip
- M4
- CPU cores
- 10
- GPU cores
- 10
- Unified memory
- 24 GB
- For models
- 20.5 GB (macOS keeps 3.5 GB)
- Memory bandwidth
- 120 GB/s
- FP16 (dense)
- 8.6 TFLOPS
- Neural Engine
- 38 TOPS
- Released
- 2024-11-08
iMac 24" M4 FAQ
How much memory is available for AI on the iMac 24" M4 (24 GB)?
About 20.5 GB of the 24 GB. macOS keeps roughly 3.5 GB for itself and other apps.
What is the largest model the iMac 24" M4 (24 GB) can run?
Qwen3.6 35B A3B (36.0B) is the largest at 4-bit or better: at IQ4_XS it uses 19.8 GB, 97% of the available memory, and runs at about 31.4 tok/s.
Can the iMac 24" M4 (24 GB) run Gemma 4 26B A4B IT?
Yes. Gemma 4 26B A4B IT fits at Q4_K_M, using 16.5 GB of the 20.5 GB available, and it is the best model that runs well on this machine.
Can the iMac 24" M4 (24 GB) run 70B models?
No. Llama 3.3 70B Instruct needs 51.3 GB at Q4, more than the 20.5 GB available.
How long does the iMac 24" M4 (24 GB) take to read a long prompt?
On Gemma 4 26B A4B IT, about 21 s for a 4K-token prompt and 2.8 min for a 32K-token document before the first word appears.
Is renting a GPU cheaper than buying the iMac 24" M4?
An RTX 5090 (32 GB) rents from $0.44/hr.