Can You Run phi-4 on M4 Max 64 GB?
Q4_K_M · ollama · 512-token input · 8,192-token context window
Ran successfully
Measured Run recorded 2026-11-29 UTC with ollama 0.40.16. The estimated working allocation is 12.6 GB for phi-4 in Q4_K_M.
44.3 tok/s measured in ollama 0.40.16 on 2026-11-29 The GPU shares its 64 GB pool with macOS.
Adjust configuration- Estimated weights
- 9.1 GB
- Estimated FP16 cache
- 1.7 GB
- Estimated overhead
- 1.8 GB
- Estimated GPU budget
- 41.6–48.0 GB
Context sensitivity
Estimated| Context capacity | Cache | Total allocation |
|---|---|---|
| 4,096 tokens | 0.84 GB | 11.45 GB |
| 8,192 tokens | 1.68 GB | 12.37 GB |
| 16,384 tokens | 3.36 GB | 14.22 GB |
Recorded tests
| Model / hardware | Runtime | Prompt / window | Decode | Source |
|---|---|---|---|---|
| phi-4M4 Max 64 GB | ollama0.40.16Q4_K_M | 512 / 8,192 | 44.3 tok/s | Measured2026-11-29 UTC |
Related profiles
Frequently asked questions
Does phi-4 fit on M4 Max?
Ran successfully for Q4_K_M with 8,192 context tokens. The verdict comes from an observed run.
How fast is generation?
44.3 tok/s measured in ollama 0.40.16 on 2026-11-29
How much difference does context make?
At 8,192 tokens, the estimated FP16 attention cache is 1.68 GB. The weight allocation stays around 9.05 GB when only context changes.