Home › Models › Gemma 4 12B

Gemma 4 12B — VRAM requirements & what it costs to run

Bottom line: at q4_k_m with 8k context you need ≈ 8.6 GiB; smallest single accelerator in our catalog: RTX 3060 12GB.

Open the full calculator with Gemma 4 12B pre-loaded →

Quantization table (GiB)

quantweightstotal @8kneed @8ksmallest fit
native22.2825.6625.7RTX 5090 32GB
bf1622.2825.6625.7RTX 5090 32GB
fp811.1413.4113.4RTX 4060 Ti 16GB
q8_011.8314.1714.2RTX 4060 Ti 16GB
q6_k9.1311.211.2RTX 3060 12GB
q5_k_m7.899.849.8RTX 3060 12GB
q4_k_m6.748.578.6RTX 3060 12GB
q3_k_m5.447.147.1RTX 3060 12GB
q2_k4.666.286.3RTX 3060 12GB

Dataset: modelvram.com open dataset (CC BY 4.0 / MIT), retrieved 2026-10-20. "total @8k" already includes KV cache + runtime overhead per dataset methodology; we extrapolate KV linearly by context (formula).

KV-cache scaling at q4_k_m (total GiB)

contexttotal
4k8.5
8k8.6
16k8.7
32k8.9
128k10.4

Cost: rent vs buy vs API

Cheapest listed rental that fits: RunPod RTX 5090 32GB @ $0.99/h — source: modelvram.com public table (self-stated check 2026-09-29, retrieved 2026-10-20). Partial re-verify 2026-10-20: Lambda A100 40GB $1.99/h CONFIRMED on lambda.ai/pricing (fetched directly); Lambda H100 rows ambiguous on-page ($3.99 vs $4.09 configs) → not adopted; RunPod & Vast pricing pages are JS-rendered, no extractable static figures — verify rates visually before spending

Cross-check on record for this family: vLLM official recipes, retrieved 2026-10-20: FP8 ≈ 200 GB, NVFP4 ≈ 170 GB; Thunder Compute blog, 2026-08-12: native checkpoint ≈ 175 GB, 3-bit GGUF ≈ 131 GB. Datasets differ by quantisation bookkeeping — see method.

Running Gemma 4 12B with Ollama

Typical q4_k_m GGUF download ≈ 6.74 GiB (weights, dataset figure); expect ≥ 8.6 GiB resident at 8k context. Find tags: ollama.com/search (we do not mirror tag lists — sizes on Ollama are their numbers, ours are dataset-sourced).

FAQ

How much VRAM does Gemma 4 12B need?

At q4_k_m with an 8k context it needs about 8.6 GiB including KV cache and runtime overhead; the smallest card in our catalog that fits is RTX 3060 12GB. Numbers come from the modelvram.com open dataset (CC BY 4.0, retrieved 2026-10-20) and our published formula (https://llmbudgetlab.com/method/).

Can I run Gemma 4 12B on a Mac?

Use the calculator: macOS caps GPU-usable memory well below your spec-sheet unified RAM. We count 2/3 of unified (3/4 above 36GB) as a deliberately conservative rule of ours, not an Apple constant — compare required GiB against usable memory, then confirm on your own machine with sysctl iogpu.wired_limit_mb (why).

Is renting a GPU cheaper than buying one for Gemma 4 12B?

Rental from $0.99/h (RunPod) — plug both into the calculator's break-even field; buy price and electricity are yours to enter because we refuse to guess market prices.

Copy this into a README / model card (backlink engine v1):
**Gemma 4 12B** needs ~8.6 GiB VRAM at q4_k_m (8k context) → minimum RTX 3060 12GB. Check & cost-compare: [LLM Budget Lab](https://llmbudgetlab.com/models/gemma-4-12b/)
or grab the SVG badge →

More: builds under $1000 · under $1500 · used GPUs & break-even · RTX 4090 · RTX 5090