Does gemma-3-12b-it fit in 4GB of VRAM?
Not at these settings. No indexed quantization of gemma-3-12b-it fits 4GB card at any context we compute, with q8_0 KV. The smallest shipped quantization is 2.85 GiB in weights alone, against 3.72 GiB usable. CPU offload can still run it, slowly.
Every quantization at every context
| Quant | Weights● | 4K◐ | 8K◐ | 16K◐ | 32K◐ | 64K◐ | 128K◐ |
|---|---|---|---|---|---|---|---|
| BF16 | 21.92 GiB | 23.2 | 23.3 | 23.5 | 24.1 | 25.1 | 27.3 |
| Q8_0 | 11.65 GiB | 12.9 | 13.0 | 13.3 | 13.8 | 14.9 | 17.0 |
| Q6_K | 9.00 GiB | 10.2 | 10.4 | 10.6 | 11.2 | 12.2 | 14.3 |
| Q5_K_M | 7.87 GiB | 9.1 | 9.2 | 9.5 | 10.0 | 11.1 | 13.2 |
| Q5_K_S | 7.67 GiB | 8.9 | 9.0 | 9.3 | 9.8 | 10.9 | 13.0 |
| Q4_0 | 7.52 GiB | 8.7 | 8.9 | 9.1 | 9.7 | 10.7 | 12.9 |
| Q4_1 | 7.04 GiB | 8.3 | 8.4 | 8.7 | 9.2 | 10.3 | 12.4 |
| Q4_K_M | 6.80 GiB | 8.0 | 8.2 | 8.4 | 9.0 | 10.0 | 12.1 |
| Q4_K_S | 6.46 GiB | 7.7 | 7.8 | 8.1 | 8.6 | 9.7 | 11.8 |
| IQ4_NL | 6.41 GiB | 7.6 | 7.8 | 8.0 | 8.6 | 9.6 | 11.8 |
| IQ4_XS | 6.10 GiB | 7.3 | 7.5 | 7.7 | 8.3 | 9.3 | 11.4 |
| Q3_K_L | 6.03 GiB | 7.3 | 7.4 | 7.7 | 8.2 | 9.3 | 11.4 |
| Q3_K_M | 5.60 GiB | 6.8 | 7.0 | 7.2 | 7.8 | 8.8 | 10.9 |
| Q3_K_S | 5.08 GiB | 6.3 | 6.4 | 6.7 | 7.2 | 8.3 | 10.4 |
| UD-IQ3_XXS | 4.50 GiB | 5.7 | 5.9 | 6.1 | 6.7 | 7.7 | 9.8 |
| Q2_K | 4.44 GiB | 5.7 | 5.8 | 6.1 | 6.6 | 7.7 | 9.8 |
| Q2_K_L | 4.44 GiB | 5.7 | 5.8 | 6.1 | 6.6 | 7.7 | 9.8 |
| UD-IQ2_M | 4.07 GiB | 5.3 | 5.4 | 5.7 | 6.2 | 7.3 | 9.4 |
| UD-IQ2_XXS | 3.36 GiB | 4.6 | 4.7 | 5.0 | 5.5 | 6.6 | 8.7 |
| UD-IQ1_M | 3.03 GiB | 4.3 | 4.4 | 4.7 | 5.2 | 6.2 | 8.4 |
| UD-IQ1_S | 2.85 GiB | 4.1 | 4.2 | 4.5 | 5.0 | 6.1 | 8.2 |
Figures are GiB of total memory: weights plus KV cache plus compute buffer and backend overhead. Weights and KV are near-exact; the overhead term is modeled. Hover any cell for the breakdown.
Why there are no speeds on this page
A capacity is not a card. Whether a model fits depends only on memory, so every figure above holds for any 4GB accelerator. How fast it runs depends on memory bandwidth, which varies several-fold between cards of the same capacity — so putting a tokens-per-second number here would be inventing one. Pick a specific card from hardware and the speed column appears.
Why other calculators disagree
A parameters × bits ÷ 8 estimate ignores two things that dominate at long context. First, the weights themselves are not the nominal rate — quantizations are mixtures, so the real file is consistently larger than the label implies. Second, most of this model's layers cache only a 1,024-token window rather than the full context.