Qwen on Apple M4
Can I run Qwen2.5-Coder 32B on an Mac Studio M4 Max 128GB?
Yes. Qwen2.5-Coder 32B at Q4_K_M uses 21.2 GB of the 96.0 GB available on a Mac Studio M4 Max 128GB, and runs at about 17.8 tokens per second. You can push the context to 128K.
Runs comfortably
21.2 GB of 96.0 GB · 22%096 GB
Weights
18.6 GB
KV cache
2.0 GB
Runtime overhead
0.5 GB
Qwen2.5-Coder 32B at Q4_K_M leaves 74.8 GB spare on a Mac Studio M4 Max 128GB. There is room to raise the context length or move up a quantisation level.
Generation17.8tok/s
Prompt processing218tok/s
Max context128Ktokens
KV per 1K tokens0GB
Every quantisation of Qwen2.5-Coder 32B on a Mac Studio M4 Max 128GB
Highlighted row is the highest quality that still fits at 8K context.
| Quantisation | bpw | Weights | Total | Verdict | Max ctx | tok/s |
|---|---|---|---|---|---|---|
| FP16 / BF16 | 16.00 | 61.0 GB | 63.6 GB | Runs comfortably | 128K | 5.65 |
| INT8 / W8A8 | 8.50 | 32.1 GB | 34.6 GB | Runs comfortably | 128K | 10.6 |
| Q8_0 (GGUF) | 8.50 | 32.1 GB | 34.6 GB | Runs comfortably | 128K | 10.6 |
| FP8 (E4M3) | 8.00 | 30.5 GB | 33.0 GB | Runs comfortably | 128K | 11.1 |
| Q6_K | 6.56 | 25.0 GB | 27.6 GB | Runs comfortably | 128K | 13.4 |
| Q5_K_M | 5.67 | 21.6 GB | 24.2 GB | Runs comfortably | 128K | 15.4 |
| Q5_K_S | 5.52 | 21.1 GB | 23.6 GB | Runs comfortably | 128K | 15.8 |
| Q4_K_M | 4.85 | 18.6 GB | 21.2 GB | Runs comfortably | 128K | 17.8 |
| AWQ 4-bit | 4.25 | 18.3 GB | 20.9 GB | Runs comfortably | 128K | 18.0 |
| GPTQ 4-bit | 4.25 | 18.3 GB | 20.9 GB | Runs comfortably | 128K | 18.0 |
| MXFP4 | 4.25 | 18.3 GB | 20.9 GB | Runs comfortably | 128K | 18.0 |
| Q4_K_S | 4.58 | 17.6 GB | 20.2 GB | Runs comfortably | 128K | 18.7 |
| Q4_0 | 4.55 | 17.5 GB | 20.1 GB | Runs comfortably | 128K | 18.8 |
| IQ4_XS | 4.25 | 16.4 GB | 19.0 GB | Runs comfortably | 128K | 20.0 |
| Q3_K_M | 3.91 | 15.2 GB | 17.7 GB | Runs comfortably | 128K | 21.5 |
| IQ3_M | 3.70 | 14.4 GB | 17.0 GB | Runs comfortably | 128K | 22.6 |
| IQ3_XXS | 3.06 | 12.1 GB | 14.7 GB | Runs comfortably | 128K | 26.5 |
| Q2_K | 2.63 | 10.6 GB | 13.1 GB | Runs comfortably | 128K | 30.1 |
| IQ2_XXS | 2.06 | 8.5 GB | 11.0 GB | Runs comfortably | 128K | 36.5 |
| IQ1_M | 1.75 | 7.4 GB | 9.9 GB | Runs comfortably | 128K | 41.4 |