# gemma4:12b VRAM, Download Size and Context (Ollama)

> Gemma 4 12B (Ollama tag gemma4:12b): 7.7GB - 8.0GB download, 256K context; about 9.4 GB of VRAM at 4K context.

Source: https://gaodong.ai/en/models/local/gemma4-12b

---

# gemma4:12b: how much VRAM does it need?

Gemma 4 12B. Run it with `ollama run gemma4:12b`. VRAM figures are estimates: model file (the download size listed by Ollama) + KV cache (computed layer by layer from the official Hugging Face `config.json`, f16) + 1 GB headroom. `ollama ps` shows real usage.

## At a glance

| Item | Value |
|---|---|
| Download size | 7.7GB - 8.0GB |
| Context (Ollama tag page) | 256K |
| KV cache per 1K tokens (f16, full-attention layers) | 16 MB |
| Sliding-window layers | keep only the last 1024 tokens |

## VRAM by context length

| Context | KV cache f16 | Total (f16) | Total (q8_0 KV) |
|---|---|---|---|
| 4K | 0.38 GB | 9.4 GB | 9.2 GB |
| 8K | 0.44 GB | 9.4 GB | 9.2 GB |
| 32K | 0.81 GB | 9.8 GB | 9.4 GB |
| 128K | 2.31 GB | 11.3 GB | 10.2 GB |

Ollama uses a 4096-token context by default; a `q8_0` KV cache is about half of f16 and needs Flash Attention (Ollama FAQ).

## Which GPU sizes fit it

| VRAM | 4K | 8K | 32K |
|---|---|---|---|
| 8 GB | — | — | — |
| 12 GB | ✅ | ✅ | ✅ |
| 16 GB | ✅ | ✅ | ✅ |
| 24 GB | ✅ | ✅ | ✅ |
| 32 GB | ✅ | ✅ | ✅ |
| 48 GB | ✅ | ✅ | ✅ |
| 80 GB | ✅ | ✅ | ✅ |

Models that do not fit still run, with part of the model in system memory on the CPU, just slower. Try other settings in the [VRAM calculator](/en/tools/vram?model=gemma4:12b).

## FAQ

### How much VRAM does gemma4:12b need?

About 9.4 GB at 4K context (Ollama default) and 9.8 GB at 32K with an f16 KV cache and 1 GB headroom.

### How big is the gemma4:12b download?

The Ollama library lists 7.7GB - 8.0GB.

## Sources

- Ollama：<https://ollama.com/library/gemma4/tags>
- config.json：<https://huggingface.co/google/gemma-4-12b-it>

More: [all models](/en/models/) · [VRAM calculator](/en/tools/vram) · [token counter](/en/tools/token-counter)
