Can Mac mini M4 (32 GB) run Qwen 2.5 Coder 32B?
Only with tuning. At Q4_K_M Qwen 2.5 Coder 32B needs 24.1 GB, more than the 24.0 GB macOS gives the GPU by default on Mac mini M4 (32 GB). It loads after raising the memory limit, but expect swapping and about 1.6–3.7 tok/s.
Asking through an AI agent? Point it at llms.txt or the JSON API.
Every quantization on M4 32GB
Q4_K_M (4-bit) qwen2.5-coder:32b | 18.5 GB real file size | 24.1 GB | Partial offload | 8K | 1.6–3.7 tok/s Estimate |
Q6_K (6-bit) qwen2.5-coder:32b-base-q6_K | 25.0 GB real file size | 30.9 GB | Too large | — | — |
Q8_0 (8-bit) qwen2.5-coder:32b-base-q8_0 | 32.4 GB real file size | 38.6 GB | Too large | — | — |
FP16 / BF16 (16-bit) qwen2.5-coder:32b-base-fp16 | 61.0 GB real file size | 68.5 GB | Too large | — | — |
Mac mini M4 (32 GB) has 24.0 GB usable for models out of 32 GB of unified memory. Max context is the longest window that still loads without spilling out of that memory. The label under each speed says whether it was measured, scaled from measurements on this hardware, or modelled.
Qwen 2.5 Coder 32B on M4 32GB by runtime
| Command | ||||||
|---|---|---|---|---|---|---|
| Ollama | Q4_K_M qwen2.5-coder:32b | 18.5 GB real file size | 24.1 GB | Partial offload | 1.6–3.7 tok/s | |
| LM Studio | Q4_K_M unsloth/Qwen2.5-Coder-32B-Instruct-GGUF | 18.5 GB real file size | 24.1 GB | Partial offload | 1.6–3.7 tok/s | |
| llama.cpp | Q4_K_M unsloth/Qwen2.5-Coder-32B-Instruct-GGUF | 18.5 GB real file size | 24.1 GB | Partial offload | 1.6–3.7 tok/s | |
| MLX | 4-bit mlx-community/Qwen2.5-Coder-32B-Instruct-4bit | 17.2 GB real file size | 22.7 GB | Tight fit | 4.1–6.8 tok/s |
Each runtime loads its own build, so sizes differ. Ollama, LM Studio and llama.cpp use GGUF files, MLX its own format. Numbers above this table are for Ollama.
Cost per 1M tokens at 1M tokens/day
Does not fit
1x RTX A6000 (48 GB) on RunPod at $0.33/hr
$0.66 in / $1.00 out per 1M
Local cost is not shown because the model does not fit. Assumes 75% input and 25% output tokens, one request at a time. Rent on RunPod · Open on OpenRouter
Hardware that does run Qwen 2.5 Coder 32B
Models that do fit M4 32GB
- Qwen 3.8 27B19.0 GB · 4.9–6.6 tok/s
- LFM3 1.7B2.0 GB · 48–81 tok/s
- Gemma 4 E4B7.3 GB · 12.5–16.9 tok/s
- Gemma 4 31B22.6 GB · 4.0–5.4 tok/s
- Gemma 4 26B A4B (MoE)19.5 GB · 15.6–32 tok/s
Questions and answers
Can Mac mini M4 (32 GB) run Qwen 2.5 Coder 32B?
Only with tuning. At Q4_K_M Qwen 2.5 Coder 32B needs 24.1 GB, more than the 24.0 GB macOS gives the GPU by default on Mac mini M4 (32 GB). It loads after raising the memory limit, but expect swapping and about 1.6–3.7 tok/s.
How fast is Qwen 2.5 Coder 32B on Mac mini M4 (32 GB)?
It does not run at a usable speed: Qwen 2.5 Coder 32B does not fit into the memory of Mac mini M4 (32 GB).
How much context can Qwen 2.5 Coder 32B use on Mac mini M4 (32 GB)?
None of the standard quantizations fit Mac mini M4 (32 GB), so there is no usable context length.