Skip to content

Best GPU for GEMMA-4-12B Locally

Real-time prices and hardware recommendations updated for July 2026.

12B
12B
dense

Adjust Context Length

Slide to popular sizes or type any value manually.

k tokens
8k
16k
32k
64k
128k
256k
Budget EntryQ4_K_M quant
5.2 GB
3.1 GB
Total VRAM:8.2 GB

Recommended Hardware

Arc B58012GB VRAM
511 tok/sprefill
15 tok/sgeneration
JPY 49789View Card
GeForce RTX 407012GB VRAM
564 tok/sprefill
17 tok/sgeneration
JPY 173665View Card

At 64k context, weights + KV cache reaches ~8GB — 12GB cards provide comfortable headroom.

Balanced Sweet SpotQ8_0 quant
6.9 GB
3.1 GB
Total VRAM:10 GB

Recommended Hardware

Arc B58012GB VRAM
511 tok/sprefill
13 tok/sgeneration
JPY 49789View Card
GeForce RTX 5060 Ti 16GB16GB VRAM
575 tok/sprefill
15 tok/sgeneration
JPY 102639View Card

Runs high-precision Q8 quantization smoothly with substantial context window capacity.

Near LosslessFP16 quant
13.8 GB
3.1 GB
Total VRAM:16.9 GB

Recommended Hardware

GeForce RTX 309024GB VRAM
830 tok/sprefill
13 tok/sgeneration
JPY 370822View Card
RTX A500024GB VRAM
352 tok/sprefill
11 tok/sgeneration
JPY 501387View Card
GeForce RTX 409024GB VRAM
1129 tok/sprefill
19 tok/sgeneration
JPY 745492View Card
RTX PRO 4000 Blackwell24GB VRAM
843 tok/sprefill
15 tok/sgeneration
Out of StockView Card

Runs fully unquantized in 16-bit precision. Workstation cards maximize context and throughput.

Optimizing Setup for GEMMA-4-12B

Quantization Recommendations

For daily coding and reasoning tasks, Q4_K_M (4-bit quantization) offers the best balance of quality and memory efficiency — it reduces memory requirements by over 70% with minimal quality loss compared to FP16. Q8 and higher presets preserve more fidelity at the cost of significantly higher VRAM usage, which may force layer offloading and hurt throughput.

Recommended Local Software

We recommend using Ollama as the primary runner for local inference due to its automated GPU model splitting and context cache optimizations. For advanced fine-tuning or quantization splits, llama.cpp with Flash Attention compiled natively provides the best granular control.

How token speeds are estimated

Two metrics are shown per GPU: Read tok/s (how fast the model ingests your prompt) and Decode tok/s (how fast it streams tokens back). They model fundamentally different bottlenecks.

📖

Read (Prefill)

The prompt is processed in one parallel pass. This is compute-bound: it saturates the GPU's tensor cores.

read tok/s ≈ TFLOPS × readFactor × 400 ÷ activeParams

Decode (Generation)

Each new token requires loading the entire model's active weights from VRAM. This is memory-bandwidth-bound: the GPU stalls waiting for data, not computing.

decode tok/s ≈ bandwidth × decodeFactor ÷ (weights + kv_cache)

Weights = (activeParams × bits ÷ 8) × 1.15 overhead. KV cache per step = activeParams × multiplier × contextK.

Architecture utilization factors

Architecture
Decode
Read
Blackwell, Xe2
0.45
0.55
Ada Lovelace, RDNA 4, Battlemage
0.38
0.48
Ampere, Turing, RDNA 3, Xe-HPG
0.28
0.38
Volta, RDNA 1/2
0.2
0.25
Pre-tensor-core (Pascal, Maxwell, Kepler, GCN, Alchemist)
0.12
0.15

Left: decode factor — Right: read factor

Data sources

TFLOPS and memory bandwidth are read from the GPU database. When missing, bandwidth falls back to a hardcoded dictionary.

Limitations

These are analytical estimates, not benchmark results. Use them as a relative comparison, not an absolute performance guarantee.