Model × hardware
Can Mac mini M5 Pro (15-core CPU / 16-core GPU) 24GB run phi-4?
phi-4 at Q4_K_M fits the estimated Mac mini M5 Pro (15-core CPU / 16-core GPU) 24GB memory budget at 4,096 tokens: 10.06 GiB required versus 18.00 GiB usable. 13.8–27.6 estimated tokens/s.
Compare the recorded formats.
| Quant | Weight files | Estimated KV | Estimated total | Fit | Estimated generation |
|---|---|---|---|---|---|
| Q4_K_M | 8.28 GiB | 0.78 GiB | 10.06 GiB | fits | 13.8–27.6 estimated tokens/s |
| Q5_K_M | 9.70 GiB | 0.78 GiB | 11.48 GiB | fits | 11.8–23.6 estimated tokens/s |
| Q8_0 | 14.51 GiB | 0.78 GiB | 16.29 GiB | borderline | 7.9–15.8 estimated tokens/s |
| FP16 | 27.31 GiB | 0.78 GiB | 29.09 GiB | doesn't fit | Estimated speed unavailable |
What changes with a longer context?
| Context tokens | Estimated KV | Estimated total | Fit |
|---|---|---|---|
| 2,048 | 0.39 GiB | 9.67 GiB | fits |
| 4,096 | 0.78 GiB | 10.06 GiB | fits |
| 8,192 | 1.56 GiB | 10.84 GiB | fits |
| 16,384 | 3.13 GiB | 12.40 GiB | fits |
The formula for this estimate.
Weights GiB = exact recorded file bytes / 2^30. KV GiB = 2 × layers × KV heads × head dimension × context × KV bytes / 2^30. Required GiB = weights + KV + runtime overhead. Usable GiB = device GiB × usable fraction. Estimated decode tokens/s = bandwidth GB/s × 10^9 / (active parameters B × 10^9 × effective bytes per weight) × efficiency. Effective bytes per weight = file bytes / (total parameters B × 10^9). Selected efficiency = 0.6; sensitivity uses 0.4–0.8.
Assumptions and limitations
- Memory values labeled GB in the data contract are GiB (2^30 bytes); bandwidth uses decimal GB/s (10^9 bytes/s).
- The memory budget reserves 25.0% of device memory. Runtime overhead is an assumed 1 GiB.
- KV cache assumes 2 bytes per element, independently of weight quantization. Runtime cache layout and allocation can add memory.
- Memory fit does not establish runtime, driver, operating-system, architecture, or quantization support.
- All speed values are estimated single-stream decode proxies, not benchmarks. Prefill, batching, latency, and concurrent sessions are not predicted.
- Estimated speed sensitivity is not a confidence interval; actual speed can fall outside the range because of compute, cache traffic, kernels, thermal limits, and other workloads.
- Effective bytes per weight is the exact file-size / total-parameter proxy. Metadata, tensors with different precision, padding, and duplicated tensors make it different from nominal quantization bits.
Source records
Official model metadata · Exact weight files · Maker hardware specifications
Model verified 2026-10-22; hardware verified 2026-10-22. This is an estimated memory and bandwidth calculation, not a hands-on benchmark.