Gemma 4 12B hardware requirements
11.96B parameters. Needs about 8.3 GB at Q4_K_M with 8K context.
Parameters12BDense
Q4_K_M · 8K8.3 GBthe usual download
FP16 · 8K24.9 GBfull precision
Runs well on45/51GPUs and Macs we track
Memory needed at each quantization
Weights, KV cache and runtime overhead, at 8K and 32K tokens of context.
| Quant | Quality | 8K context | 32K context | |
|---|---|---|---|---|
| FP16 | Full quality | 24.9 GB | 25.1 GB | |
| Q8_0 | Near-lossless | 13.7 GB | 13.9 GB | |
| Q6_K | Excellent | 10.8 GB | 11 GB | |
| Q5_K_M | Very good | 9.5 GB | 9.7 GB | |
| Q4_K_M | Good, most popular | 8.3 GB | 8.5 GB | |
| Q3_K_M | Noticeably degraded | 6.8 GB | 7 GB | |
| Q2_K | Heavily degraded | 5.5 GB | 5.7 GB |
Run it with Ollama
Downloads Q4_K_M by default.
ollama run gemma4:12b
Model card
google/gemma-4-12B-it on Hugging Face: licence, prompt format and GGUF builds.
Run it in the cloud
Run Gemma 4 12B on a rented GPU today.
It needs about 8.3 GB at Q4_K_M: a rented RTX 3090 / RTX 4090 runs it for about $0.18 to $0.89 an hour.
Every GPU and Mac checked
Sorted by memory. Bars show how much of each card Gemma 4 12B fills at the best quant that fits.
45 Runs well
NameMemory usedBest quantSpeed
NVIDIA RTX 3080 10GB10 GBQ5_K_M · 9.5 GB~54 tok/s
NVIDIA RTX 2080 Ti11 GBQ6_K · 10.8 GB~38 tok/s
NVIDIA RTX 3080 Ti12 GBQ6_K · 10.8 GB~56 tok/s
NVIDIA RTX 507012 GBQ6_K · 10.8 GB~41 tok/s
NVIDIA RTX 407012 GBQ6_K · 10.8 GB~31 tok/s
NVIDIA RTX 4070 Super12 GBQ6_K · 10.8 GB~31 tok/s
NVIDIA RTX 4070 Ti12 GBQ6_K · 10.8 GB~31 tok/s
Intel Arc B58012 GBQ6_K · 10.8 GB~28 tok/s
NVIDIA RTX 3060 12GB12 GBQ6_K · 10.8 GB~22 tok/s
NVIDIA RTX 508016 GBQ8_0 · 13.7 GB~45 tok/s
NVIDIA RTX 5070 Ti16 GBQ8_0 · 13.7 GB~42 tok/s
NVIDIA RTX 4080 Super16 GBQ8_0 · 13.7 GB~35 tok/s
NVIDIA RTX 408016 GBQ8_0 · 13.7 GB~34 tok/s
NVIDIA RTX 4070 Ti Super16 GBQ8_0 · 13.7 GB~32 tok/s
AMD Radeon RX 907016 GBQ8_0 · 13.7 GB~30 tok/s
AMD Radeon RX 9070 XT16 GBQ8_0 · 13.7 GB~30 tok/s
AMD Radeon RX 7800 XT16 GBQ8_0 · 13.7 GB~29 tok/s
Intel Arc A770 16GB16 GBQ8_0 · 13.7 GB~26 tok/s
AMD Radeon RX 6800 XT16 GBQ8_0 · 13.7 GB~24 tok/s
NVIDIA RTX 5060 Ti 16GB16 GBQ8_0 · 13.7 GB~21 tok/s
AMD Radeon RX 9060 XT 16GB16 GBQ8_0 · 13.7 GB~15 tok/s
NVIDIA RTX 4060 Ti 16GB16 GBQ8_0 · 13.7 GB~14 tok/s
AMD Radeon RX 7600 XT16 GBQ8_0 · 13.7 GB~14 tok/s
Apple M5 (16GB)16 GBQ5_K_M · 9.5 GB~11 tok/s
Apple M4 (16GB)16 GBQ5_K_M · 9.5 GB~8 tok/s
Apple M1 (16GB)16 GBQ5_K_M · 9.5 GB~5 tok/s
AMD Radeon RX 7900 XT20 GBQ8_0 · 13.7 GB~38 tok/s
NVIDIA RTX 409024 GBQ8_0 · 13.7 GB~48 tok/s
NVIDIA RTX 3090 Ti24 GBQ8_0 · 13.7 GB~48 tok/s
AMD Radeon RX 7900 XTX24 GBQ8_0 · 13.7 GB~45 tok/s
NVIDIA RTX 309024 GBQ8_0 · 13.7 GB~44 tok/s
Apple M4 Pro (24GB)24 GBQ8_0 · 13.7 GB~13 tok/s
NVIDIA RTX 509032 GBFP16 · 24.9 GB~45 tok/s
AMD Radeon AI PRO R970032 GBFP16 · 24.9 GB~16 tok/s
Apple M2 Pro (32GB)32 GBQ8_0 · 13.7 GB~9 tok/s
Apple M4 Max (36GB)36 GBQ8_0 · 13.7 GB~19 tok/s
Apple M3 Pro (36GB)36 GBQ8_0 · 13.7 GB~7 tok/s
Apple M4 Pro (48GB)48 GBFP16 · 24.9 GB~7 tok/s
Apple M4 Max (64GB)64 GBFP16 · 24.9 GB~14 tok/s
Apple M3 Max (64GB)64 GBFP16 · 24.9 GB~10 tok/s
Apple M1 Max (64GB)64 GBFP16 · 24.9 GB~10 tok/s
NVIDIA RTX PRO 6000 Blackwell96 GBFP16 · 24.9 GB~45 tok/s
Apple M4 Max (128GB)128 GBFP16 · 24.9 GB~14 tok/s
Apple M2 Ultra (192GB)192 GBFP16 · 24.9 GB~20 tok/s
Apple M3 Ultra (256GB)256 GBFP16 · 24.9 GB~21 tok/s
6 Fits with heavy quantization
NameMemory usedBest quantSpeed