Can I run Qwen2.5-Coder-32B-Instruct on a Apple M1?
Not at these settings. No indexed quantization of Qwen2.5-Coder-32B-Instruct fits Apple M1 at any context we compute, with q8_0 KV. The smallest shipped quantization is 8.41 GiB in weights alone, against 5.58 GiB usable. CPU offload can still run it, slowly.
Every quantization at every context
| Quant | Weights● | 4K◐ | 8K◐ | 16K◐ | 32K◐ | 64K◐ | 128K◐ |
|---|---|---|---|---|---|---|---|
| Q8_0 | 64.86 GiB | 66.0 | 66.6 | 67.6 | 69.8 | 74.0 | 82.5 |
| Q6_K | 50.08 GiB | 51.3 | 51.8 | 52.9 | 55.0 | 59.2 | 67.7 |
| Q5_K_M | 43.33 GiB | 44.5 | 45.0 | 46.1 | 48.2 | 52.5 | 61.0 |
| Q5_0 | 42.17 GiB | 43.3 | 43.9 | 44.9 | 47.1 | 51.3 | 59.8 |
| Q4_K_M | 36.98 GiB | 38.2 | 38.7 | 39.8 | 41.9 | 46.1 | 54.6 |
| Q4_0 | 34.72 GiB | 35.9 | 36.4 | 37.5 | 39.6 | 43.9 | 52.4 |
| Q3_K_M | 29.68 GiB | 30.9 | 31.4 | 32.5 | 34.6 | 38.8 | 47.3 |
| Q6_K_L | 25.39 GiB | 26.6 | 27.1 | 28.2 | 30.3 | 34.5 | 43.0 |
| Q2_K | 22.93 GiB | 24.1 | 24.6 | 25.7 | 27.8 | 32.1 | 40.6 |
| Q5_K_L | 22.11 GiB | 23.3 | 23.8 | 24.9 | 27.0 | 31.3 | 39.8 |
| Q5_K_S | 21.08 GiB | 22.3 | 22.8 | 23.9 | 26.0 | 30.2 | 38.7 |
| Q4_K_L | 19.03 GiB | 20.2 | 20.7 | 21.8 | 23.9 | 28.2 | 36.7 |
| Q4_K_S | 17.49 GiB | 18.7 | 19.2 | 20.3 | 22.4 | 26.6 | 35.1 |
| IQ4_NL | 17.40 GiB | 18.6 | 19.1 | 20.2 | 22.3 | 26.5 | 35.0 |
| IQ4_XS | 16.48 GiB | 17.7 | 18.2 | 19.3 | 21.4 | 25.6 | 34.1 |
| Q3_K_L | 16.06 GiB | 17.2 | 17.8 | 18.8 | 21.0 | 25.2 | 33.7 |
| IQ3_M | 13.79 GiB | 15.0 | 15.5 | 16.6 | 18.7 | 22.9 | 31.4 |
| Q3_K_S | 13.40 GiB | 14.6 | 15.1 | 16.2 | 18.3 | 22.6 | 31.1 |
| IQ3_XS | 12.76 GiB | 13.9 | 14.5 | 15.5 | 17.7 | 21.9 | 30.4 |
| Q2_K_L | 12.18 GiB | 13.4 | 13.9 | 14.9 | 17.1 | 21.3 | 29.8 |
| IQ3_XXS | 11.96 GiB | 13.1 | 13.7 | 14.7 | 16.9 | 21.1 | 29.6 |
| IQ2_M | 10.49 GiB | 11.7 | 12.2 | 13.3 | 15.4 | 19.6 | 28.1 |
| IQ2_S | 9.67 GiB | 10.9 | 11.4 | 12.4 | 14.6 | 18.8 | 27.3 |
| IQ2_XS | 9.27 GiB | 10.5 | 11.0 | 12.0 | 14.2 | 18.4 | 26.9 |
| IQ2_XXS | 8.41 GiB | 9.6 | 10.1 | 11.2 | 13.3 | 17.6 | 26.1 |
Figures are GiB of total memory: weights plus KV cache plus compute buffer and backend overhead. Weights and KV are near-exact; the overhead term is modeled. Hover any cell for the breakdown.
Why other calculators disagree
A parameters × bits ÷ 8 estimate ignores two things that dominate at long context. First, the weights themselves are not the nominal rate — quantizations are mixtures, so the real file is consistently larger than the label implies. Second, most of this model's layers cache only a 131,072-token window rather than the full context.