Can Granite Code 20B run on MacBook Pro M4 Max 36GB?
YES — Runs Great
Granite Code 20B needs ~20.2 GB VRAM. MacBook Pro M4 Max 36GB has 25.9 GB. With Q4_K_M quantization, expect ~31 tok/s.
Operating mode
Choose the run profile you care about
Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.
Current mode
Balanced
Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.
Select quantization to explore
Fit status
Runs well
Decode
30.6 tok/s
TTFT
6323 ms
Safe context
8K
Memory
20.2 GB / 25.9 GB
Memory breakdown
See how fast it feels
What limits this setup
This setup is broadly balanced for this model.
Shared-memory contention still exists
The OS, browser, and inference runtime all compete for the same physical memory pool, so real-world headroom is less forgiving than raw capacity suggests.
Best improvement path
Performance by workload
| Workload | Grade | Fit | Decode | TTFT | Context |
|---|---|---|---|---|---|
| Chat | A | Runs well | 30.6 tok/s | 3449 ms | 8K |
| Coding | A | Runs well | 30.6 tok/s | 6323 ms | 8K |
| Agentic Coding | A | Tight fit | 30.6 tok/s | 9197 ms | 8K |
| Reasoning | A | Runs well | 30.6 tok/s | 7473 ms | 8K |
| RAG | A | Tight fit | 30.6 tok/s | 11497 ms | 8K |
Quantization options
How Granite Code 20B (20B params) fits at each quantization level on MacBook Pro M4 Max 36GB (25.9 GB usable).
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 7.8 GB | Low | A76 |
Q3_K_S | 3 | 9.8 GB | Low | A77 |
NVFP4 | 4 | 11.2 GB | Medium | A78 |
Q4_K_M | 4 | 12.2 GB | Medium | A79 |
Q5_K_M | 5 | 14.4 GB | High | A80 |
Q6_KBest for your GPU | 6 | 16.4 GB | High | A79 |
Q8_0 | 8 | 21.4 GB | Very High | F0 |
F16 | 16 | 41.0 GB | Maximum | F0 |
Get started
Copy-paste commands to run Granite Code 20B on your machine.
Run
ollama run granite-code:20bYour hardware
