Gemma 3 12B VRAM requirements
한국어Gemma 3 12B has 12.19B parameters, 48 layers and 8 KV heads. Here is the VRAM it needs by quant and context length.
This is an estimate. Real usage will differ.
Weights and KV cache come from formulas. Runtime overhead is a flat 1 GiB guess. Actual use depends on your runtime and version. If it says tight, load it and check.
Model values checked 2026-11-11
VRAM (GiB) by quant and context length
| Quant | Weights | 2,048 | 8,192 | 32,768 | 131,072 |
|---|---|---|---|---|---|
| FP16 | 22.7 | 24.5 | 26.7 | 35.7 | 71.7 |
| Q8_0 | 12.1 | 13.8 | 16.1 | 25.1 | 61.1 |
| Q6_K | 9.3 | 11.1 | 13.3 | 22.3 | 58.3 |
| Q5_K_M | 8.1 | 9.8 | 12.1 | 21.1 | 57.1 |
| Q4_K_M | 6.9 | 8.7 | 10.9 | 19.9 | 55.9 |
| Q3_K_M | 5.7 | 7.4 | 9.7 | 18.7 | 54.7 |
| Q2_K | 4.5 | 6.2 | 8.5 | 17.5 | 53.5 |
This is an estimate. Real usage depends on your runtime and version.
VRAM calculator
Result
Gemma 3 12B Q4_K_M, 8,192 context: about 10.9 GiB needed.
Tight on the GeForce RTX 4070 (12 GB). Only about 1.1 GiB left.
- Weights 6.9 GiB
- KV cache 3.0 GiB
- Runtime overhead 1.0 GiB (estimate)
- With this model and quant, the GeForce RTX 4070 holds about 7,680 tokens of context.
- At this context, the highest quant that fits the GeForce RTX 4070 is Q3_K_M.
- Offloading some layers to CPU can make it run, but slower.
- Gemma 3 uses sliding window layers, so the real KV cache can be smaller than this.
- The parameter count includes the vision encoder. Text-only use needs a bit less.
This is an estimate. Real usage depends on your runtime and version.
GPUs that fit Gemma 3 12B Q4_K_M at 8,192 context
- GeForce RTX 5090
- GeForce RTX 5080
- GeForce RTX 5070 Ti
- GeForce RTX 5060 Ti 16GB
- GeForce RTX 4090
- GeForce RTX 4080 SUPER
- GeForce RTX 4080
- GeForce RTX 4070 Ti SUPER
- GeForce RTX 4060 Ti 16GB
- GeForce RTX 3090 Ti
- GeForce RTX 3090
- Radeon RX 9070 XT
- Radeon RX 9070
- Radeon RX 7900 XTX
- Radeon RX 7900 XT
- Radeon RX 7900 GRE
- Radeon RX 7800 XT
- Radeon RX 7600 XT
- Radeon RX 6900 XT
- Radeon RX 6800 XT
- Radeon RX 6800
- Intel Arc A770 16GB
- Apple Silicon 24GB
- Apple Silicon 32GB
- Apple Silicon 36GB
- Apple Silicon 48GB
- Apple Silicon 64GB
- Apple Silicon 96GB
- Apple Silicon 128GB
Model values used
- Parameters
- 12,187,325,040
- Layers
- 48
- Attention heads
- 16
- KV heads
- 8
- Head dim
- 256
- Max context (config)
- 131,072
- Read from
- google/gemma-3-12b-it
The official repo is gated, so the same config file was read from unsloth/gemma-3-12b-it.
Gemma 3 uses sliding window layers, so the real KV cache can be smaller than this.
The parameter count includes the vision encoder. Text-only use needs a bit less.
See this model per GPU
- GeForce RTX 5080
- GeForce RTX 5070 Ti
- GeForce RTX 5070
- GeForce RTX 5060 Ti 16GB
- GeForce RTX 4080 SUPER
- GeForce RTX 4080
- GeForce RTX 4070 Ti SUPER
- GeForce RTX 4070 Ti
- GeForce RTX 4070 SUPER
- GeForce RTX 4070
- GeForce RTX 4060 Ti 16GB
- GeForce RTX 3080 Ti
- GeForce RTX 3080 12GB
- GeForce RTX 3080 10GB
- GeForce RTX 3060 12GB
- GeForce RTX 2080 Ti
- GeForce RTX 2060 12GB
- GeForce GTX 1080 Ti
- Radeon RX 9070 XT
- Radeon RX 9070
- Radeon RX 7900 XT
- Radeon RX 7900 GRE
- Radeon RX 7800 XT
- Radeon RX 7700 XT
- Radeon RX 7600 XT
- Radeon RX 6900 XT
- Radeon RX 6800 XT
- Radeon RX 6800
- Radeon RX 6700 XT
- Intel Arc B580
- Intel Arc A770 16GB
- Apple Silicon 16GB
- Apple Silicon 24GB
- Apple Silicon 32GB