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

QuantWeights2,0488,19232,768131,072
FP1622.724.526.735.771.7
Q8_012.113.816.125.161.1
Q6_K9.311.113.322.358.3
Q5_K_M8.19.812.121.157.1
Q4_K_M6.98.710.919.955.9
Q3_K_M5.77.49.718.754.7
Q2_K4.56.28.517.553.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

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