Gemma 4 12B
12B parameters · 256k context · apache-2.0 · released 2026-05-23
chatcodingvision
In short
Gemma 4 12B is an open model from Google with 12B parameters. At Q4_K_M, Gemma 4 12B needs about 8 GB of memory at 8k context and 8 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the US that runs Gemma 4 12B fully in memory at 8k context is the Intel Arc B570, $304 at eBay, at about 21 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the US today
Intel Arc B570, new at eBay
Runs Gemma 4 12B at Q5_K_M fully in memory at 8k context, about 21 tok/sest.
$304
In stock, checked
What to run it on in the US
Fully in memory at 8k context, priced at retailers today.
Cheapest
Intel Arc B57021tok/sest.Q5_K_M
$304
Best value
NVIDIA GeForce RTX 3080 10GB53tok/sest.Q5_K_M
$500
Fastest
NVIDIA GeForce RTX 509085tok/sest.Q8_0
$6,495
Mac
Mac Studio M4 Max 64GB27tok/sest.Q8_0
$3,500
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
| Hardware | Quant | Fits | Decode | Price | tok/s per 1,000 |
|---|---|---|---|---|---|
| Intel Arc B570 | Q5_K_M | fits | 21 tok/s | $304 | 70.4 |
| NVIDIA RTX PRO 4000 Blackwell | Q8_0 | fits | 32 tok/s | $339 | 93.5 |
| NVIDIA GeForce RTX 3060 12GB | Q6_K | fits | 22 tok/s | $388 | 56.2 |
| Intel Arc B580 | Q6_K | fits | 22 tok/s | $425 | 52.2 |
| NVIDIA Tesla P40 | Q8_0 | fits | 16 tok/s | $449 | 36.3 |
| Mac mini M4 16GB | Q6_K | fits | 8 tok/s | $490 | 15.5 |
| NVIDIA GeForce RTX 3080 10GB | Q5_K_M | fits | 53 tok/s | $500 | 106.0 |
| NVIDIA GeForce RTX 4070 | Q6_K | fits | 31 tok/s | $570 | 53.5 |
| Intel Arc Pro B50 | Q8_0 | fits | 9 tok/s | $600 | 14.2 |
| NVIDIA GeForce RTX 5060 Ti 16GB | Q8_0 | fits | 21 tok/s | $618 | 34.1 |
| AMD Radeon RX 9060 XT 16GB | Q8_0 | fits | 13 tok/s | $720 | 18.6 |
| Intel Arc A770 16GB | Q8_0 | fits | 21 tok/s | $745 | 28.6 |
| AMD Radeon RX 7800 XT | Q8_0 | fits | 26 tok/s | $757 | 34.5 |
| NVIDIA RTX PRO 2000 Blackwell | Q8_0 | fits | 14 tok/s | $795 | 17.1 |
| NVIDIA GeForce RTX 4070 Super | Q6_K | fits | 31 tok/s | $800 | 38.1 |
| AMD Radeon RX 9070 XT | Q8_0 | fits | 27 tok/s | $810 | 33.1 |
| AMD Radeon RX 9070 | Q8_0 | fits | 27 tok/s | $860 | 31.2 |
| AMD Radeon RX 7900 XT | Q8_0 | fits | 34 tok/s | $880 | 38.1 |
| Intel Arc Pro B60 | Q8_0 | fits | 17 tok/s | $899 | 19.3 |
| NVIDIA GeForce RTX 5070 | Q6_K | fits | 41 tok/s | $900 | 45.1 |
| NVIDIA GeForce RTX 4060 Ti 16GB | Q8_0 | fits | 14 tok/s | $918 | 14.8 |
| AMD Radeon RX 7600 XT | Q8_0 | fits | 12 tok/s | $959 | 12.6 |
| NVIDIA GeForce RTX 4070 Ti Super | Q8_0 | fits | 32 tok/s | $1,140 | 27.8 |
| Mac mini M4 32GB | Q8_0 | fits | 6 tok/s | $1,199 | 4.9 |
| NVIDIA GeForce RTX 5070 Ti | Q8_0 | fits | 42 tok/s | $1,300 | 32.5 |
| AMD Radeon RX 7900 XTX | Q8_0 | fits | 40 tok/s | $1,400 | 28.7 |
| NVIDIA GeForce RTX 4080 Super | Q8_0 | fits | 35 tok/s | $1,469 | 23.6 |
| AMD Radeon AI PRO R9700 | Q8_0 | fits | 27 tok/s | $1,700 | 15.8 |
| Intel Arc Pro B70 | Q8_0 | fits | 23 tok/s | $1,800 | 12.8 |
| NVIDIA GeForce RTX 5080 | Q8_0 | fits | 45 tok/s | $1,900 | 23.8 |
| NVIDIA GeForce RTX 3090 | Q8_0 | fits | 44 tok/s | $1,979 | 22.3 |
| Mac mini M4 Pro 48GB | Q8_0 | fits | 14 tok/s | $2,025 | 6.7 |
| NVIDIA GeForce RTX 3090 Ti | Q8_0 | fits | 48 tok/s | $2,033 | 23.4 |
| NVIDIA GeForce RTX 4090 | Q8_0 | fits | 48 tok/s | $2,073 | 23.0 |
| Mac mini M4 Pro 64GB | Q8_0 | fits | 14 tok/s | $2,399 | 5.6 |
| NVIDIA RTX PRO 4000 Blackwell SFF Edition | Q8_0 | fits | 20 tok/s | $2,980 | 6.8 |
| GMKtec EVO-X2 Ryzen AI Max+ 395 128GB | Q8_0 | fits | 11 tok/s | $3,500 | 3.1 |
| Mac Studio M4 Max 64GB | Q8_0 | fits | 27 tok/s | $3,500 | 7.7 |
| Beelink GTR9 Pro Ryzen AI Max+ 395 128GB | Q8_0 | fits | 11 tok/s | $3,800 | 2.8 |
| Minisforum MS-S1 Max Ryzen AI Max+ 395 128GB | Q8_0 | fits | 11 tok/s | $3,959 | 2.7 |
| NVIDIA RTX PRO 4500 Blackwell | Q8_0 | fits | 42 tok/s | $4,000 | 10.6 |
| AMD Radeon PRO W7900 | Q8_0 | fits | 36 tok/s | $4,000 | 9.1 |
| Mac Studio M3 Ultra 96GB | Q8_0 | fits | 41 tok/s | $4,758 | 8.5 |
| Mac Studio M4 Max 128GB | Q8_0 | fits | 27 tok/s | $5,400 | 5.0 |
| NVIDIA RTX A6000 | Q8_0 | fits | 36 tok/s | $5,989 | 6.0 |
| ASUS Ascent GX10 128GB | Q8_0 | fits | 13 tok/s | $6,100 | 2.1 |
| NVIDIA GeForce RTX 5090 | Q8_0 | fits | 85 tok/s | $6,495 | 13.0 |
| NVIDIA RTX PRO 5000 Blackwell 48GB | Q8_0 | fits | 63 tok/s | $6,999 | 9.1 |
| NVIDIA DGX Spark 128GB | Q8_0 | fits | 13 tok/s | $7,800 | 1.7 |
| NVIDIA RTX 6000 Ada Generation | Q8_0 | fits | 45 tok/s | $8,495 | 5.3 |
| NVIDIA RTX PRO 5000 Blackwell 72GB | Q8_0 | fits | 63 tok/s | $8,499 | 7.5 |
| Mac Studio M3 Ultra 256GB | Q8_0 | fits | 41 tok/s | $9,500 | 4.3 |
| NVIDIA RTX PRO 6000 Blackwell | Q8_0 | fits | 85 tok/s | $16,000 | 5.3 |
| Mac Studio M3 Ultra 512GB | Q8_0 | fits | 41 tok/s | $30,000 | 1.4 |
| Framework Desktop Ryzen AI Max+ 395 128GB | Q8_0 | fits | 11 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 64GB | Q8_0 | fits | 11 tok/s | – | – |
| Lenovo ThinkStation PGX GB10 128GB | Q8_0 | fits | 13 tok/s | – | – |
| Dell Pro Max with GB10 128GB | Q8_0 | fits | 13 tok/s | – | – |
| NVIDIA GeForce RTX 5050 | Q4_K_M | offload | 23 tok/s | $359 | 63.0 |
| NVIDIA GeForce RTX 4060 | Q4_K_M | offload | 20 tok/s | $400 | 49.3 |
| NVIDIA GeForce RTX 5060 | Q4_K_M | offload | 29 tok/s | $435 | 67.6 |
| NVIDIA GeForce RTX 5060 Ti 8GB | Q4_K_M | offload | 29 tok/s | $511 | 57.5 |
| NVIDIA GeForce RTX 4060 Ti 8GB | Q4_K_M | offload | 21 tok/s | $536 | 38.6 |
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| Q4_K_Mgguf | 6.6 GB | 7.8 GB | 8.3 GB | 9.0 GB | 10.4 GB |
| mlx-4bitmlx | 6.3 GB | 7.5 GB | 8.0 GB | 8.7 GB | 10.0 GB |
| Q5_K_Mgguf | 7.8 GB | 9.0 GB | 9.5 GB | 10.2 GB | 11.6 GB |
| Q6_Kgguf | 9.1 GB | 10.3 GB | 10.8 GB | 11.5 GB | 12.9 GB |
| Q8_0gguf | 11.8 GB | 13.0 GB | 13.5 GB | 14.2 GB | 15.6 GB |
| mlx-8bitmlx | 11.8 GB | 13.0 GB | 13.5 GB | 14.2 GB | 15.6 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q4_K_M - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/gemma-4-12B-it-4bit - MLX
mlx_lm.server --model mlx-community/gemma-4-12B-it-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q5_K_M - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q6_K - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q6_K
- Ollama
- Q8_0
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q8_0 - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q8_0
- Ollama
- mlx-8bit
- LM Studio
lms get mlx-community/gemma-4-12B-it-8bit - MLX
mlx_lm.server --model mlx-community/gemma-4-12B-it-8bit
- LM Studio
Questions
- How much VRAM does Gemma 4 12B need?
- At Q4_K_M, Gemma 4 12B needs about 8 GB of memory at 8k context and 8 GB at 8k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running Gemma 4 12B locally?
- The cheapest hardware in the US that runs Gemma 4 12B fully in memory at 8k context is the Intel Arc B570, $304 at eBay, at about 21 tok/s (estimated). The best value is the NVIDIA GeForce RTX 3080 10GB (about 53 tok/s for $500). The fastest we price is the NVIDIA GeForce RTX 5090, at about 85 tok/s.
- What is the cheapest way to run Gemma 4 12B in the US today?
- The Intel Arc B570, $304 new at eBay, in stock: it runs Gemma 4 12B at Q5_K_M fully in memory at 8k context, at about 21 tok/s (estimated).
- Can I run Gemma 4 12B on a 16 GB GPU?
- Yes: at Q8_0 it fits fully in 16 GB at 8k context. On the NVIDIA GeForce RTX 5080 it runs at about 45 tok/s (estimated).
- Can I run Gemma 4 12B on a 24 GB GPU?
- Yes: at Q8_0 it fits fully in 24 GB at 8k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 48 tok/s (estimated).
- How do I run Gemma 4 12B locally?
- With Ollama: ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is Gemma 4 12B released under?
- apache-2.0, which allows commercial use.