Skip to content

How much VRAM does Gemma 4 12B need?

Gemma 4 12B needs 6.8 GB for its weights at 4-bit, 8.2 GB with an 8K context and 8.4 GB with 32K. At 8-bit, 13.3 GB.

Parameters
12B
Longest context
256K
Released
May 2026
License
Apache 2.0
Strongest at
Chat, Coding, Docs

Memory at each precision

Memory Gemma 4 12B needs at each precision and context length
PrecisionWeightsWith 8KWith 32KWith 128K
16-bit22.3 GB23.7 GB23.9 GB24.7 GB
8-bit11.8 GB13.3 GB13.5 GB14.2 GB
6-bit9.1 GB10.6 GB10.8 GB11.5 GB
5-bit7.9 GB9.4 GB9.6 GB10.3 GB
4-bit6.8 GB8.2 GB8.4 GB9.1 GB
3-bit5.4 GB6.9 GB7.1 GB7.8 GB
2-bit4.2 GB5.6 GB5.8 GB6.6 GB
1.6-bit2.3 GB3.7 GB3.9 GB4.7 GB

One conversation, 16-bit context cache, runtime overhead included.

What runs it

The best way Gemma 4 12B runs on common GPUs, Macs and AI boxes
MachineBest fitContextSpeedFirst reply
RTX 3060 12 GB6-bit112K25 tok/s1.9 s
RTX 4060 Ti 16 GB8-bit248K16 tok/s1.1 s
RTX 30908-bit256K48 tok/s0.7 s
RTX 40908-bit256K51 tok/s0.3 s
RTX 50908-bit256K86 tok/s0.2 s
2× RTX 30908-bit256K48 tok/s0.4 s
RTX PRO 6000 Blackwell8-bit256K86 tok/s0.2 s
M4 Max 128 GB8-bit256K25 tok/s3.9 s
M5 Max 128 GB8-bit256K28 tok/s1.1 s
Ryzen AI Max+ 395 128 GB8-bit256K12 tok/s2.2 s
DGX Spark 128 GB8-bit256K15 tok/s0.8 s
M3 Ultra 256 GB8-bit256K36 tok/s2.2 s
M5 Ultra 512 GB8-bit256K50 tok/s0.7 s
H100 SXM8-bit256K146 tok/s0.2 s
DGX Station GB3008-bit256K250 tok/s0.1 s
8× H200 NVL8-bit256K191 tok/s0.1 s

Best fit is the highest quality, up to 8-bit, that leaves 16K of context. First reply is the wait for a 2K prompt. Speeds are rough, plus or minus 25%.

How to run it

Ollama
ollama run gemma4:12b
llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF
vLLM
vllm serve google/gemma-4-12B-it
MLX (Mac)
mlx_lm.chat --model mlx-community/gemma-4-12B-it-4bit

Questions

How much VRAM does Gemma 4 12B need?

Gemma 4 12B needs 6.8 GB for its weights at 4-bit, 8.2 GB with an 8K context and 8.4 GB with 32K. At 8-bit, 13.3 GB.

Can Gemma 4 12B run on an RTX 4090?

Yes. At 8-bit it holds 256K of context and writes about 51 tokens a second.

More models