<!-- Markdown mirror of https://getrigbase.com/models/gemma-4-12b/ . Source of truth is the HTML page. Data licence: CC BY 4.0, please cite RigBase (https://getrigbase.com/models/gemma-4-12b/). -->
Source: https://getrigbase.com/models/gemma-4-12b/
Last updated: 2026-11-07

[Models](https://getrigbase.com/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: 7 Nov 2026

Current model 11.91B dense 13 measured results fastest plain decode: 142 tok/s  [model info ↗](https://llamabench.ai/browse/rtx5090)

[Will it fit my GPU?](https://getrigbase.com/can-it-run/) [Best value GPU per euro →](https://getrigbase.com/guides/best-value-gpu-local-llm-europe/)

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

| Build | Quant | Engine | tok/s | Prompt processing (tok/s) | Cost | Source |
|---|---|---|---|---|---|---|
| [RTX 5090: 2026 models (llamabench community)](https://getrigbase.com/builds/llamabench-rtx-5090/) | llama-bench tg128 (quant per result) | llama.cpp | **142** | – |  | [llamabench.ai ↗](https://llamabench.ai/browse/rtx5090) |
| [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)](https://getrigbase.com/builds/rtx-4090-ryzen-9-7950x-96gb-measuredlocally/) | QAT Q4_0 (7.0 GB, Google's file) | llama.cpp b11669 (CUDA) | **99.7** | 5,072 @19,000 · est. TTFT @8k ≈1.6 s* |  | [measuredlocally.com ↗](https://measuredlocally.com/rtx-4090-desktop.html) |
| [RTX 4090: 2026 models (llamabench community)](https://getrigbase.com/builds/llamabench-rtx-4090/) | llama-bench tg128 (quant per result) | llama.cpp | **98.1** | – |  | [llamabench.ai ↗](https://llamabench.ai/browse/rtx4090) |
| [RTX 4090 (llm-speed signed runs, Oct 2026): Qwen3.6 35B-A3B 161 tok/s, Gemma 4 12B QAT 98 tok/s](https://getrigbase.com/builds/llmspeed-rtx-4090-oct-2026/) | QAT Q4_0 | llama.cpp b8931 | **97.7** | 1,743 @4,096 · est. TTFT @8k ≈4.7 s* |  | [llm-speed.com ↗](https://llm-speed.com/r/r_m6j1zxwvp-f) |
| [RTX 5070 Ti + Ryzen 9 5950X: gpt-oss 20B at 213.2 tok/s, Qwen3.5 9B at 126.6 (llama.cpp CUDA)](https://getrigbase.com/builds/rtx-5070-ti-ryzen-9-5950x-32gb-measuredlocally/) | QAT Q4_0 (7.0 GB, Google's file) | llama.cpp b11669 (CUDA) | **92.5** | 2,910 @19,000 · est. TTFT @8k ≈2.8 s* |  | [measuredlocally.com ↗](https://measuredlocally.com/rtx-5070-ti-desktop.html) |
| [RTX 5070 Ti: 2026 models (llamabench community)](https://getrigbase.com/builds/llamabench-rtx-5070-ti/) | llama-bench tg128 (quant per result) | llama.cpp | **87.6** | – |  | [llamabench.ai ↗](https://llamabench.ai/browse/rtx5070ti) |
| [RTX 3060 12GB: 2026 models (llamabench community)](https://getrigbase.com/builds/llamabench-rtx-3060/) | llama-bench tg128 (quant per result) | llama.cpp | **38.5** | – |  | [llamabench.ai ↗](https://llamabench.ai/browse/rtx3060) |
| [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)](https://getrigbase.com/builds/lenovo-yoga-pro-9n-rtx-spark-128gb-measuredlocally/) | QAT Q4_0 (7.0 GB, Google's file) | llama.cpp b11669 (CUDA, Windows on Arm) | **33.2** | 1,513 @19,000 · est. TTFT @8k ≈5.4 s* |  | [measuredlocally.com ↗](https://measuredlocally.com/rtx-spark.html) |
| [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)](https://getrigbase.com/builds/rtx-2060-super-8gb-i9-10900k-qwen35-gemma4-mustafa/) | Q4_K_M | llama.cpp server (CUDA, Docker), forced full offload | **27.7** | – |  | [mustafa.net ↗](https://mustafa.net/2026/10/13/local-llm-calculator-tested-four-machines/) |
| [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)](https://getrigbase.com/builds/hp-zbook-ultra-g1a-strix-halo-64gb-measuredlocally/) | QAT Q4_0 (7.0 GB, Google's file) | llama.cpp b11669 (Vulkan) | **25.9** | 182 @19,000 · est. TTFT @8k ≈45.0 s* |  | [measuredlocally.com ↗](https://measuredlocally.com/strix-halo.html) |
| [Mac mini M6 32 GB: Qwen3.6 35B-A3B at 63 tok/s, Nemotron 3.5 Lightning 45 (LM Studio)](https://getrigbase.com/builds/mac-mini-m6-32gb-lm-studio-oct-2026/) | QAT (google/gemma-4-12b-qat) | LM Studio | **18.2** | – |  | [github.com ↗](https://github.com/HDZucht/Mac-Mini-M6-LLM-benchmarks) |
| [MacBook Pro M5 32 GB (LM Studio): Gemma 4 12B at 14 tok/s, Qwen3.8 27B at 5.4 (4-bit)](https://getrigbase.com/builds/macbook-pro-m5-32gb-lmstudio-qwen38-gemma4-ngirchev/) | 4-bit | LM Studio | **14** | 275 (length n/s) |  | [dev.to ↗](https://dev.to/ngirchev/can-local-llms-replace-opus-and-codex-i-tested-a-macbook-an-rtx-5080-a-dgx-spark-and-cheap-4hdb) |
| [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)](https://getrigbase.com/builds/mac-mini-m4-16gb-qwen35-gemma4-mustafa/) | Q4_K_M | llama.cpp server (Metal) | **13.1** | – |  | [mustafa.net ↗](https://mustafa.net/2026/10/13/local-llm-calculator-tested-four-machines/) |

Prompt processing = prefill speed reported by the source, @ prompt length. * est. TTFT @8k is calculated from measured prefill, not measured. [Why it matters](https://getrigbase.com/can-it-run/#prefill).

## 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.

| Quant | File size | Mean KLD vs BF16 | Same top token |
|---|---|---|---|
| QAT UD-Q4_K_XL (Unsloth) | 6.72 GB | **0.13288** | 88.76% |
| QAT Q4_0 (plain llama.cpp conversion) | 6.98 GB | **0.50702** | 74.08% |

Source: [unsloth.ai ↗](https://unsloth.ai/docs/models/gemma-4/qat). 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.
Ad · this space is available **Sponsor this spot: reach people building local AI rigs.** One clearly-labeled slot per page, no tracking scripts.  [Sponsor this spot →](https://getrigbase.com/advertise/#inquiry)

**Rent before you buy:** try this model on a cloud GPU for a few dollars first: [Runpod](https://runpod.io?ref=77qcpl2c) (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](https://llamabench.ai/browse/rtx5090): GGUF param count via llamabench.ai). Weight size = parameters × bits-per-weight ÷ 8, before context (KV cache) and runtime overhead.

| Format | Bits/weight | Weights | Smallest common memory size that holds the weights alone |
|---|---|---|---|
| Q8_0 | 8.50 | 12.7 GB | 16 GB |
| Q6_K | 6.56 | 9.8 GB | 12 GB |
| Q5_K_M | 5.70 | 8.5 GB | 12 GB |
| Q4_K_M | 4.89 | **7.3 GB** | 8 GB |
| Q3_K_M | 4.00 | 5.9 GB | 8 GB |
| Q2_K | 3.16 | 4.7 GB | 8 GB |

Bits-per-weight for GGUF quants are llama.cpp's own figures ([llama.cpp quantize README](https://github.com/ggml-org/llama.cpp/blob/master/tools/quantize/README.md)). "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](https://getrigbase.com/can-it-run/).

## 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](https://getrigbase.com/can-i-run/gemma-4-12b-on-apple-m4/) · [RTX 3060 12GB](https://getrigbase.com/can-i-run/gemma-4-12b-on-rtx-3060-12gb/) · [RTX 4090](https://getrigbase.com/can-i-run/gemma-4-12b-on-rtx-4090/) · [RTX 5070 Ti](https://getrigbase.com/can-i-run/gemma-4-12b-on-rtx-5070-ti/) · [RTX 5090](https://getrigbase.com/can-i-run/gemma-4-12b-on-rtx-5090/) · [RTX Spark N1X](https://getrigbase.com/can-i-run/gemma-4-12b-on-rtx-spark-n1x/) · [Strix Halo (Radeon 8060S)](https://getrigbase.com/can-i-run/gemma-4-12b-on-strix-halo-radeon-8060s/)

Related: [what GPU do you need for 2026 models](https://getrigbase.com/guides/what-gpu-for-qwen3-6-gemma-4-gpt-oss/) · [all builds](https://getrigbase.com/builds/)

**Search answer:** [How much VRAM do you need for Gemma 4 12B?](https://getrigbase.com/vram/gemma-4-12b/) · [Will it fit my GPU?](https://getrigbase.com/can-it-run/)
