← CanIRunLocal · All hardware · All models
Yes. Gemma 4 31B fits in fast memory on M1 Max (32c GPU) 32GB at Q4_K_M (22.5 GB needed, 24.0 GB usable), about 16 tok/s (estimate).
Hardware: M1 Max (32c GPU) 32GB · Model: Gemma 4 31B
M1 Max (32c GPU) 32GB has 32 GB of unified memory and 400 GB/s of memory bandwidth. M1 Max (24c GPU) 32GB and M2 Max (30c GPU) 32GB and M2 Max (38c GPU) 32GB have the same memory and bandwidth, so the fit numbers match; this page is M1 Max (32c GPU) 32GB. The checker leaves macOS a share of unified memory, so Ollama can use 24.0 GB. Gemma 4 31B (31.3B, Google) at Q4_K_M is a 20 GB download and needs 22.5 GB with headroom for about 8k tokens.
| Best quant | Q4_K_M |
|---|---|
| Download size | 20 GB |
| Memory needed | 22.5 GB |
| Usable fast memory | 24.0 GB |
| Fit | fits in fast memory |
| Estimated speed | ~16 tok/s (estimate) |
| Command | ollama run gemma4:31b-it-q4_K_M |
Estimates, not benchmarks. Model sizes are ollama.com download sizes; memory needed adds headroom for ~8k tokens of context; speeds are rough figures from memory bandwidth. Data updated 2026-10-23.
A project by OnDevice Labs · llms.txt