Gemma 4 31B on Apple M2 Max (64 GB)
Can the Apple M2 Max (64 GB) run Gemma 4 31B?
Yes, it runs well
Runs well. At Q5_K_M it needs about 28.3 GB of 48.0 GB usable, with an estimated speed of 11.2 tok/s.
- Best quant
Q5_K_M- Generation speed
- 11.2 tok/s
- Prompt processing
- 270 tok/s
- First token (1K prompt)
- 3.8 s
- Largest safe context
- 106K
Best app to run it on the Apple M2 Max (64 GB)
On macOS
- Runs the MLX build, typically up to 10% faster than GGUF for a model with 31.3B active parameters on Apple silicon.
- Point-and-click: search, download and chat in one window.
Download Gemma 4 31B
Recommended for the Apple M2 Max (64 GB): Q5_K_M. Every other quantization has its own download link in the table below.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run gemma4:31bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
Download the Q5_K_M file (opens in a new tab)
huggingface.co/unsloth/gemma-4-31B-it-GGUF (opens in a new tab)
ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q5_K_MOriginal weights · Hugging Face
Full-precision files from Google, for fine-tuning, vLLM, Transformers.
Official repo · GitHub
Reference code, inference scripts and docs from Google. The weights themselves download from Hugging Face.
github.com/google-deepmind/gemma (opens in a new tab)
git clone https://github.com/google-deepmind/gemmaHow it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Model quality | 39.7 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 7.9 / 15 | |
| Memory use | 13.6 / 15 | |
| Match score | 86.2 / 100 |
Every quantization on the Apple M2 Max (64 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 18.6 GB | 48.0 GB | 22.2 tok/s | Runs well | 63Good quality (B) · 63 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 73/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (UD-Q2_K_XL) (opens in a new tab) |
Q3_K_M | 21.4 GB | 48.0 GB | 17.5 tok/s | Runs well | 76Great quality (A) · 76 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q4_K_M | 25.1 GB | 48.0 GB | 13.5 tok/s | Runs well | 86Excellent quality (A+) · 86 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 28.3 GB | 48.0 GB | 11.2 tok/s | Runs well | 88Excellent quality (A+) · 88 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q6_K | 31.7 GB | 48.0 GB | 9.4 tok/s | Slow | 90Excellent quality (A+) · 90 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 87/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q8_0 | 39.2 GB | 48.0 GB | 6.9 tok/s | Slow | 91Excellent quality (A+) · 91 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 87/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
F16 | 68.6 GB | 48.0 GB | — | Won't run | 91Excellent quality (A+) · 91 of 100: how capable the model is at F16, whatever it runs on. Match score 12/100 (quality, fit, speed and memory use) sets the ranking. | GGUF · folder (opens in a new tab) Original weights (opens in a new tab) |
Memory figures assume 8K of context. Longer conversations or documents grow the KV cache.
Other hardware that runs it
-
88Excellent quality (A+) · 88 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 94/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5090
-
86Excellent quality (A+) · 86 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 92/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4090
-
86Excellent quality (A+) · 86 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 92/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 3090
-
86Excellent quality (A+) · 86 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 91/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 7900 XTX
-
90Excellent quality (A+) · 90 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 88/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA RTX PRO 6000 Blackwell
-
88Excellent quality (A+) · 88 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking.
Apple M1 Max (64 GB)
Quick answers
How much memory does Gemma 4 31B need on the M2 Max 64GB?
At Q5_K_M it needs about 28.3 GB. The M2 Max 64GB has 48.0 GB usable.
How fast is Gemma 4 31B on the M2 Max 64GB?
About 11.2 tok/s at Q5_K_M, an estimate from the hardware’s memory bandwidth and the size of the model.
Which quantization of Gemma 4 31B should I use on the M2 Max 64GB?
Q5_K_M. Of the versions that fit, it is the one that runs best; when two run equally well, the check prefers the higher-rated one.
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.