Gemma 4 31B on Apple M3 Ultra (512 GB)
Can the Apple M3 Ultra (512 GB) run Gemma 4 31B?
Yes, it runs well
Runs well. At Q4_K_M it needs about 52.0 GB of 384 GB usable, with an estimated speed of 27.7 tok/s.
- Best quant
Q4_K_M- Generation speed
- 27.7 tok/s
- Prompt processing
- 563 tok/s
- First token (1K prompt)
- 1.8 s
- Largest safe context
- 256K
Best app to run it on the Apple M3 Ultra (512 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 M3 Ultra (512 GB): Q4_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:31b-it-q4_K_MQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
Download the Q4_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:Q4_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 | 38.9 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 12.5 / 15 | |
| Memory use | 3.1 / 15 | |
| Match score | 79.5 / 100 |
Every quantization on the Apple M3 Ultra (512 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 45.4 GB | 384 GB | 45.5 tok/s | Runs great | 63Good quality (B) · 63 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (UD-Q2_K_XL) (opens in a new tab) |
Q3_K_M | 48.3 GB | 384 GB | 35.8 tok/s | Runs great | 76Great quality (A) · 76 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q4_K_M | 52.0 GB | 384 GB | 27.7 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 79/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 55.1 GB | 384 GB | 22.9 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 79/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q6_K | 58.6 GB | 384 GB | 19.2 tok/s | Runs well | 90Excellent quality (A+) · 90 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q8_0 | 66.1 GB | 384 GB | 14.1 tok/s | Runs well | 91Excellent quality (A+) · 91 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 78/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
F16 | 95.5 GB | 384 GB | 6.5 tok/s | Slow | 91Excellent quality (A+) · 91 of 100: how capable the model is at F16, whatever it runs on. Match score 77/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)
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.