Gemma 3 4B VRAM requirements
한국어Gemma 3 4B has 4.30B parameters, 34 layers and 4 KV heads. Here is the VRAM it needs by quant and context length.
This is an estimate. Real usage will differ.
Weights and KV cache come from formulas. Runtime overhead is a flat 1 GiB guess. Actual use depends on your runtime and version. If it says tight, load it and check.
Model values checked 2026-11-11
VRAM (GiB) by quant and context length
| Quant | Weights | 2,048 | 8,192 | 32,768 | 131,072 |
|---|---|---|---|---|---|
| FP16 | 8.0 | 9.3 | 10.1 | 13.3 | 26.0 |
| Q8_0 | 4.3 | 5.5 | 6.3 | 9.5 | 22.3 |
| Q6_K | 3.3 | 4.6 | 5.3 | 8.5 | 21.3 |
| Q5_K_M | 2.9 | 4.1 | 4.9 | 8.1 | 20.9 |
| Q4_K_M | 2.5 | 3.7 | 4.5 | 7.7 | 20.5 |
| Q3_K_M | 2.0 | 3.3 | 4.1 | 7.3 | 20.0 |
| Q2_K | 1.6 | 2.8 | 3.6 | 6.8 | 19.6 |
This is an estimate. Real usage depends on your runtime and version.
VRAM calculator
Result
Gemma 3 4B Q4_K_M, 8,192 context: about 4.5 GiB needed.
Fits on the GeForce RTX 4070 (12 GB). About 7.5 GiB to spare.
- Weights 2.5 GiB
- KV cache 1.1 GiB
- Runtime overhead 1.0 GiB (estimate)
- With this model and quant, the GeForce RTX 4070 holds about 56,576 tokens of context.
- At this context, the highest quant that fits the GeForce RTX 4070 is FP16.
- Gemma 3 uses sliding window layers, so the real KV cache can be smaller than this.
- The parameter count includes the vision encoder. Text-only use needs a bit less.
This is an estimate. Real usage depends on your runtime and version.
GPUs that fit Gemma 3 4B Q4_K_M at 8,192 context
- GeForce RTX 5090
- GeForce RTX 5080
- GeForce RTX 5070 Ti
- GeForce RTX 5070
- GeForce RTX 5060 Ti 16GB
- GeForce RTX 5060 Ti 8GB
- GeForce RTX 5060
- GeForce RTX 4090
- GeForce RTX 4080 SUPER
- GeForce RTX 4080
- GeForce RTX 4070 Ti SUPER
- GeForce RTX 4070 Ti
- GeForce RTX 4070 SUPER
- GeForce RTX 4070
- GeForce RTX 4060 Ti 16GB
- GeForce RTX 4060 Ti 8GB
- GeForce RTX 4060
- GeForce RTX 3090 Ti
- GeForce RTX 3090
- GeForce RTX 3080 Ti
- GeForce RTX 3080 12GB
- GeForce RTX 3080 10GB
- GeForce RTX 3070 Ti
- GeForce RTX 3070
- GeForce RTX 3060 Ti
- GeForce RTX 3060 12GB
- GeForce RTX 3060 8GB
- GeForce RTX 2080 Ti
- GeForce RTX 2080 SUPER
- GeForce RTX 2070 SUPER
- GeForce RTX 2060 12GB
- GeForce RTX 2060 6GB
- GeForce GTX 1660 SUPER
- GeForce GTX 1080 Ti
- GeForce GTX 1060 6GB
- Radeon RX 9070 XT
- Radeon RX 9070
- Radeon RX 7900 XTX
- Radeon RX 7900 XT
- Radeon RX 7900 GRE
- Radeon RX 7800 XT
- Radeon RX 7700 XT
- Radeon RX 7600 XT
- Radeon RX 7600
- Radeon RX 6900 XT
- Radeon RX 6800 XT
- Radeon RX 6800
- Radeon RX 6700 XT
- Intel Arc B580
- Intel Arc A770 16GB
- Intel Arc A770 8GB
- Apple Silicon 8GB
- Apple Silicon 16GB
- Apple Silicon 24GB
- Apple Silicon 32GB
- Apple Silicon 36GB
- Apple Silicon 48GB
- Apple Silicon 64GB
- Apple Silicon 96GB
- Apple Silicon 128GB
Model values used
- Parameters
- 4,300,079,472
- Layers
- 34
- Attention heads
- 8
- KV heads
- 4
- Head dim
- 256
- Max context (config)
- 131,072
- Read from
- google/gemma-3-4b-it
The official repo is gated, so the same config file was read from unsloth/gemma-3-4b-it.
Gemma 3 uses sliding window layers, so the real KV cache can be smaller than this.
The parameter count includes the vision encoder. Text-only use needs a bit less.
See this model per GPU
- GeForce RTX 5060 Ti 8GB
- GeForce RTX 5060
- GeForce RTX 4060 Ti 8GB
- GeForce RTX 4060
- GeForce RTX 3070 Ti
- GeForce RTX 3070
- GeForce RTX 3060 Ti
- GeForce RTX 3060 8GB
- GeForce RTX 2080 SUPER
- GeForce RTX 2070 SUPER
- GeForce RTX 2060 6GB
- GeForce GTX 1660 SUPER
- GeForce GTX 1060 6GB
- Radeon RX 7600
- Intel Arc A770 8GB
- Apple Silicon 8GB