More
Submit build

Models / Gemma 4 12B

Best home rig for Gemma 4 12B

Quick answer

How much VRAM does Gemma 4 12B need?
The weights are about 7.3 GB at Q4_K_M (11.91B params × 4.89 bits ÷ 8, before context/KV cache). Add memory for context (KV cache) and the runtime. The smallest-memory setup with a measured result here, fully in memory, is RTX 3060 12GB (12 GB) at 38.5 tok/s.

What is the fastest measured hardware for Gemma 4 12B?
RTX 5090: 142 tok/s generation (llama.cpp, llama-bench tg128 (quant per result)), from https://llamabench.ai/browse/rtx5090.

Last updated:

Current model11.91B dense13 measured resultsfastest plain decode: 142 tok/s model info ↗

Will it fit my GPU? Best value GPU per euro →

Real, measured generation speeds for Gemma 4 12B on home hardware, fastest first. Different quants/engines aren't directly comparable.

BuildQuantEnginetok/sPrompt processing (tok/s)CostSource
RTX 5090: 2026 models (llamabench community)llama-bench tg128 (quant per result)llama.cpp142–llamabench.ai ↗
RTX 4090 + Ryzen 9 7950X (96 GB): gpt-oss 20B at 238.6 tok/s, Gemma 4 26B-A4B at 161.4 (llama.cpp CUDA)QAT Q4_0 (7.0 GB, Google's file)llama.cpp b11669 (CUDA)99.75,072 @19,000 · est. TTFT @8k ≈1.6 s*measuredlocally.com ↗
RTX 4090: 2026 models (llamabench community)llama-bench tg128 (quant per result)llama.cpp98.1–llamabench.ai ↗
RTX 4090 (llm-speed signed runs, Oct 2026): Qwen3.6 35B-A3B 161 tok/s, Gemma 4 12B QAT 98 tok/sQAT Q4_0llama.cpp b893197.71,743 @4,096 · est. TTFT @8k ≈4.7 s*llm-speed.com ↗
RTX 5070 Ti + Ryzen 9 5950X: gpt-oss 20B at 213.2 tok/s, Qwen3.5 9B at 126.6 (llama.cpp CUDA)QAT Q4_0 (7.0 GB, Google's file)llama.cpp b11669 (CUDA)92.52,910 @19,000 · est. TTFT @8k ≈2.8 s*measuredlocally.com ↗
RTX 5070 Ti: 2026 models (llamabench community)llama-bench tg128 (quant per result)llama.cpp87.6–llamabench.ai ↗
RTX 3060 12GB: 2026 models (llamabench community)llama-bench tg128 (quant per result)llama.cpp38.5–llamabench.ai ↗
Lenovo Yoga Pro 9n (RTX Spark, 128 GB): gpt-oss 20B at 80.4 tok/s, Qwen3.6 35B-A3B at 72.1 (llama.cpp CUDA, Windows on Arm)QAT Q4_0 (7.0 GB, Google's file)llama.cpp b11669 (CUDA, Windows on Arm)33.21,513 @19,000 · est. TTFT @8k ≈5.4 s*measuredlocally.com ↗
RTX 2060 Super 8 GB + Core i9-10900K: Qwen3.5 9B Q4_K_M at 54.4 tok/s, Gemma 4 12B at 27.7 (llama.cpp)Q4_K_Mllama.cpp server (CUDA, Docker), forced full offload27.7–mustafa.net ↗
HP ZBook Ultra G1a (Ryzen AI Max+ 395, 64 GB): gpt-oss 20B at 67.2 tok/s, Qwen3.6 35B-A3B at 52.3 (llama.cpp Vulkan)QAT Q4_0 (7.0 GB, Google's file)llama.cpp b11669 (Vulkan)25.9182 @19,000 · est. TTFT @8k ≈45.0 s*measuredlocally.com ↗
Mac mini M6 32 GB: Qwen3.6 35B-A3B at 63 tok/s, Nemotron 3.5 Lightning 45 (LM Studio)QAT (google/gemma-4-12b-qat)LM Studio18.2–github.com ↗
MacBook Pro M5 32 GB (LM Studio): Gemma 4 12B at 14 tok/s, Qwen3.8 27B at 5.4 (4-bit)4-bitLM Studio14275 (length n/s)dev.to ↗
Mac mini M4 (16 GB): Qwen3.5 9B Q4_K_M at 17.7 tok/s, Gemma 4 12B at 13.1 (llama.cpp Metal)Q4_K_Mllama.cpp server (Metal)13.1–mustafa.net ↗

Prompt processing = prefill speed reported by the source, @ prompt length. * est. TTFT @8k is calculated from measured prefill, not measured. Why it matters.

Quality cost of each quant for Gemma 4 12B

How far each quantization drifts from the full-precision (BF16) model, as published by the quant maker. Lower KL divergence (KLD) is closer to the original; same-top-token % is how often the quant picks the same next token as BF16. Q4_K_M is usually the sweet spot; below Q4 the drift grows fast, which is why RigBase only lists Q4-or-higher speed results.

QuantFile sizeMean KLD vs BF16Same top token
QAT UD-Q4_K_XL (Unsloth)6.72 GB0.1328888.76%
QAT Q4_0 (plain llama.cpp conversion)6.98 GB0.5070274.08%

Source: unsloth.ai ↗. Unsloth (quant publisher) Gemma 4 QAT docs: KLD on wikitext. Both rows are 4-bit files made from Google's QAT checkpoint: Unsloth's UD-Q4_K_XL versus a plain llama.cpp Q4_0 conversion. Unsloth publishes no higher-precision QAT file, saying higher precisions did not improve accuracy. KLD from different publishers, datasets or llama.cpp builds isn't directly comparable.

Rent before you buy: try this model on a cloud GPU for a few dollars first: Runpod (referral link; sign up with Google to get the new-user bonus)

Memory math: how much VRAM / RAM does Gemma 4 12B need?

Gemma 4 12B has 11.91B parameters (source: GGUF param count via llamabench.ai). Weight size = parameters × bits-per-weight ÷ 8, before context (KV cache) and runtime overhead.

FormatBits/weightWeightsSmallest common memory size that holds the weights alone
Q8_08.5012.7 GB16 GB
Q6_K6.569.8 GB12 GB
Q5_K_M5.708.5 GB12 GB
Q4_K_M4.897.3 GB8 GB
Q3_K_M4.005.9 GB8 GB
Q2_K3.164.7 GB8 GB

Bits-per-weight for GGUF quants are llama.cpp's own figures (llama.cpp quantize README). "As measured" rows apply the source's stated bits-per-weight to the parameter count; real files differ slightly because some layers stay at higher precision. Try other combinations in the VRAM calculator.

FAQ

How much VRAM does Gemma 4 12B need?

The weights are about 7.3 GB at Q4_K_M (11.91B params × 4.89 bits ÷ 8, before context/KV cache). Add memory for context (KV cache) and the runtime. The smallest-memory setup with a measured result here, fully in memory, is RTX 3060 12GB (12 GB) at 38.5 tok/s.

What is the fastest measured hardware for Gemma 4 12B?

RTX 5090: 142 tok/s generation (llama.cpp, llama-bench tg128 (quant per result)), from https://llamabench.ai/browse/rtx5090.

Which GPUs have measured results for Gemma 4 12B?

Apple M4, RTX 3060 12GB, RTX 4090, RTX 5070 Ti, RTX 5090, RTX Spark N1X, Strix Halo (Radeon 8060S).

Can it run on… Apple M4 · RTX 3060 12GB · RTX 4090 · RTX 5070 Ti · RTX 5090 · RTX Spark N1X · Strix Halo (Radeon 8060S)

Related: what GPU do you need for 2026 models · all builds

Search answer: How much VRAM do you need for Gemma 4 12B? · Will it fit my GPU?