← CanIRunLocal · All hardware · All models

Can a M4 Max (40c GPU) 48GB run Gemma 4 31B?

Yes. Gemma 4 31B fits in fast memory on M4 Max (40c GPU) 48GB at Q4_K_M (22.5 GB needed, 36.0 GB usable), about 22 tok/s (estimate).

Hardware: M4 Max (40c GPU) 48GB · Model: Gemma 4 31B

M4 Max (40c GPU) 48GB has 48 GB of unified memory and 546 GB/s of memory bandwidth. Mac Studio M4 Max (40c GPU) 48GB has the same memory and bandwidth, so the fit numbers match; this page is M4 Max (40c GPU) 48GB. The checker leaves macOS a share of unified memory, so Ollama can use 36.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 quantQ4_K_M
Download size20 GB
Memory needed22.5 GB
Usable fast memory36.0 GB
Fitfits in fast memory
Estimated speed~22 tok/s (estimate)
Commandollama run gemma4:31b-it-q4_K_M
Open M4 Max (40c GPU) 48GB in the checker

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