Gemma 4 31B on Mac mini M4 Pro 64 GB: VRAM, speed and fit
Gemma 4 31B at 8-bit runs on the M4 Pro 64 GB with 256K of context at about 6.5 tokens a second.
Text generation · Chat · Ollama / LM Studio
Runs comfortably · on M4 Pro 64 GB · 8-bit (Q8_0) · Ollama / LM Studio · Chat
- GPU memory
- 58.6 GB
- of 64.0 GB
- Context
- 256K
- auto
- Speed
- 6.5 tok/s
- 4.9 when full
- First reply
- 21 s
- 2K prompt
Where the memory goes
- Model
- 30.9 GB
- Context
- 10.8 GB
- Overhead
- 936 MB
- OS
- 16.0 GB
- Free
- 5.4 GB
- Memory
- 58.6 GB of 64.0 GB
- Context
- 256K tokens · auto
- Speed
- 6.5 tok/s · 4.9 when full
- First reply
- 21 s for a 2K prompt
- Running cost
- $1.84/mo at home · $66/mo on a cloud 2× RTX A5000
Validation: Not validated
| Check | Target | Result | Status |
|---|---|---|---|
| Fits in GPU memory | 48.0 GB usable | 42.6 GB needed | Pass |
| Headroom | 5% free | 5.4 GB free (11%) | Pass |
| Context for chat | 16K or more | 256K | Pass |
| Writing speed | 15 tok/s or more | 6.5 tok/s | Check |
| First reply | under 3 s, 2K prompt | 21 s | Fails |
Targets: a reply you can read along with, a first reply the use case tolerates, and 5% of memory left free. Calculated from published specs, not benchmarked.
The setup
- Model
- Gemma 4 31B
- Parameters
- 31.3B
- Precision
- 8-bit (Q8_0)
- Context
- 256K, auto
- Chats at once
- 1
- Use
- Chat
- Runs in
- Ollama / LM Studio
- Hardware
- M4 Pro 64 GB
- GPU can use
- 48.0 GB of 64.0 GB
Running cost
- At home
- $1.84/mo
- 84 W at the wall
- Renting instead
- $66/mo
- 2× RTX A5000 at $0.54/h
4 h a day, power at $0.18 per kWh, cloud at RunPod on-demand prices as of Nov 22, 2026.
How to run it
- Ollama
ollama run gemma4:31b- llama.cpp
llama-server -hf unsloth/gemma-4-31B-it-GGUF- vLLM
vllm serve google/gemma-4-31B-it- MLX (Mac)
mlx_lm.chat --model mlx-community/gemma-4-31b-it-4bit- Model card
- huggingface.co/google/gemma-4-31B-it
Gemma 4 31B on similar machines
- Mac mini M4 24 GBJust misses
- Mac mini M4 32 GBRuns
- Mac mini M4 Pro 24 GBJust misses
- Mac mini M4 Pro 48 GBRuns
- M4 Max 128 GBRuns
- M5 Max 128 GBRuns
- M3 Ultra 96 GBRuns
- M3 Ultra 256 GBRuns
All machines: Gemma 4 31B VRAM requirements. Everything that runs here: what can the Mac mini M4 Pro 64 GB run?
Other models that run on Mac mini M4 Pro 64 GB
Questions
Can Gemma 4 31B run on Mac mini M4 Pro 64 GB?
Gemma 4 31B at 8-bit runs on the M4 Pro 64 GB with 256K of context at about 6.5 tokens a second.
Report VR-1TKIXWO, calculated Nov 22, 2026 from published specs, not benchmarked.