Gemma 3 27B VRAM requirements
한국어Gemma 3 27B has 27.43B parameters, 62 layers and 16 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 | 51.1 | 53.1 | 56.0 | 67.6 | 114.1 |
| Q8_0 | 27.1 | 29.1 | 32.0 | 43.6 | 90.1 |
| Q6_K | 21.0 | 22.9 | 25.8 | 37.5 | 84.0 |
| Q5_K_M | 18.2 | 20.2 | 23.1 | 34.7 | 81.2 |
| Q4_K_M | 15.6 | 17.6 | 20.5 | 32.1 | 78.6 |
| Q3_K_M | 12.8 | 14.7 | 17.6 | 29.3 | 75.8 |
| Q2_K | 10.1 | 12.1 | 15.0 | 26.6 | 73.1 |
This is an estimate. Real usage depends on your runtime and version.
VRAM calculator
Result
Gemma 3 27B Q4_K_M, 8,192 context: about 20.5 GiB needed.
Does not fit on the GeForce RTX 4070 (12 GB). You are about 8.5 GiB short.
- Weights 15.6 GiB
- KV cache 3.9 GiB
- Runtime overhead 1.0 GiB (estimate)
- The weights alone leave no room for context on the GeForce RTX 4070.
- No quant fits the GeForce RTX 4070 at this context. Lower the context.
- Offloading some layers to CPU can make it run, but slower.
- 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 27B Q4_K_M at 8,192 context
Model values used
- Parameters
- 27,432,406,640
- Layers
- 62
- Attention heads
- 32
- KV heads
- 16
- Head dim
- 128
- Max context (config)
- 131,072
- Read from
- google/gemma-3-27b-it
The official repo is gated, so the same config file was read from unsloth/gemma-3-27b-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.