Can You Run gemma-3-4b-it on M4 Max 64 GB?
Q8_0 · llama.cpp · 512-token input · 640-token context window
Ran successfully
Measured Run recorded 2026-11-29 UTC with llama.cpp 1.1.0 (build 12774, commit 171527522). The estimated working allocation is 5.4 GB for gemma-3-4b-it in Q8_0.
85.5 tok/s measured in llama.cpp 1.1.0 (build 12774, commit 171527522) on 2026-11-29 The GPU shares its 64 GB pool with macOS.
Adjust configuration- Estimated weights
- 4.1 GB
- Estimated FP16 cache
- 0.1 GB
- Estimated overhead
- 1.2 GB
- Estimated GPU budget
- 41.6–48.0 GB
Context sensitivity
Estimated| Context capacity | Cache | Total allocation |
|---|---|---|
| 4,096 tokens | 0.21 GB | 6.00 GB |
| 8,192 tokens | 0.29 GB | 6.09 GB |
| 16,384 tokens | 0.46 GB | 6.28 GB |
| 32,768 tokens | 0.79 GB | 6.65 GB |
Recorded tests
| Model / hardware | Runtime | Prompt / window | Decode | Source |
|---|---|---|---|---|
| gemma-3-4b-itM4 Max 64 GB | llama.cpp1.1.0 (build 12774, commit 171527522)Q8_0 | 512 / 640 | 85.5 tok/s | Measured2026-11-29 UTC |
| gemma-3-4b-itM4 Max 64 GB | mlxmlx-lm 0.32.2 / mlx 0.32.54bit | 512 / 8,192 | 148.3 tok/s | Measured2026-11-29 UTC |
| gemma-3-4b-itM4 Max 64 GB | llama.cpp1.1.0 (build 12774, commit 171527522)Q5_K_M | 512 / 640 | 104.2 tok/s | Measured2026-11-29 UTC |
| gemma-3-4b-itM4 Max 64 GB | llama.cpp1.1.0 (build 12774, commit 171527522)Q4_K_M | 512 / 640 | 131.9 tok/s | Measured2026-11-29 UTC |
| gemma-3-4b-itM4 Max 64 GB | ollama0.40.16Q4_K_M | 512 / 8,192 | 117.3 tok/s | Measured2026-11-29 UTC |
Related profiles
Frequently asked questions
Does gemma-3-4b-it fit on M4 Max?
Ran successfully for Q8_0 with 640 context tokens. The verdict comes from an observed run.
How fast is generation?
85.5 tok/s measured in llama.cpp 1.1.0 (build 12774, commit 171527522) on 2026-11-29
How much difference does context make?
At 640 tokens, the estimated FP16 attention cache is 0.09 GB. The weight allocation stays around 4.13 GB when only context changes.