Can RTX 5090 32GB run Gemma 3 12B? VRAM, speed & cost vs API
Runs Smoothly at Q4_K_M · Hardware price as of 2026-11-30 · page built 2026-11-30
Gemma 3 12B at Q4_K_M needs about 11.4 GB (with 8192 tokens of context). RTX 5090 32GB offers 30.4 GB usable and 1792 GB/s bandwidth: about 145.4 tok/s, up to 56320 tokens of context.
Quantization table
| Quant | Weights GB | VRAM @8192 ctx | Margin GB | Max context | Est. tok/s | Verdict |
|---|---|---|---|---|---|---|
| Q4_K_M | 7.4 | 11.4 | 19.0 | 56320 | 145.4 | Runs Smoothly |
| Q6_K | 10.0 | 14.0 | 16.4 | 49664 | 107.5 | Runs Smoothly |
| Q8_0 | 13.0 | 17.0 | 13.4 | 42240 | 82.9 | Runs Smoothly |
| FP16 | 24.4 | 28.4 | 2.0 | 13056 | 44.1 | Runs Smoothly |
Margin = usable memory minus required VRAM; it is what remains for a longer KV cache. Max context is capped at the model's native 131072 tokens.
Local vs API cost
| Item (5M tokens/month, Q4_K_M) | Value |
|---|---|
| API price (OpenRouter live/cache) | $0.05 in / $0.15 out per 1M tokens |
| API cost per month | $0.40 |
| Hardware (RTX 5090 32GB, as of 2026-11-30) | $2,400 |
| Energy per month (9.6 h at 575 W, $0.15/kWh) | $0.82 |
| Break-even vs API | never (API is cheaper) |
| 24-month total: local / API | $2,420 / $10 |
If you already own the hardware, only the energy line counts. Local generation ignores prompt processing time.
Model data
12.2B parameters · 48 layers · 8 KV heads · 413470 Hugging Face downloads · license: gemma
Related
Same GPU: Llama 3.1 8B, Llama 3.3 70B, Qwen2.5 7B, Qwen2.5 14B, Qwen2.5 32B, Qwen3 8B, Qwen3 14B, Qwen3 32B (all models)
Same model: RTX 3060 12GB, RTX 3090 24GB, RTX 4060 8GB, RTX 4060 Ti 16GB, RTX 4070 Super 12GB, RTX 4070 Ti Super 16GB, RTX 4080 Super 16GB, RTX 4090 24GB (all GPUs)