# qwen3:4b VRAM, Download Size and Context (Ollama)

> Qwen3 4B (Ollama tag qwen3:4b): 2.5GB download, 256K context; about 4.1 GB of VRAM at 4K context.

Source: https://gaodong.ai/en/models/local/qwen3-4b

---

# qwen3:4b: how much VRAM does it need?

Qwen3 4B. Run it with `ollama run qwen3:4b`. 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 | 2.5GB |
| Context (Ollama tag page) | 256K |
| KV cache per 1K tokens (f16, full-attention layers) | 144 MB |

## VRAM by context length

| Context | KV cache f16 | Total (f16) | Total (q8_0 KV) |
|---|---|---|---|
| 4K | 0.56 GB | 4.1 GB | 3.8 GB |
| 8K | 1.12 GB | 4.6 GB | 4.1 GB |
| 32K | 4.50 GB | 8.0 GB | 5.8 GB |
| 128K | 18.00 GB | 21.5 GB | 12.5 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=qwen3:4b).

## FAQ

### How much VRAM does qwen3:4b need?

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

### How big is the qwen3:4b download?

The Ollama library lists 2.5GB.

## Sources

- Ollama：<https://ollama.com/library/qwen3/tags>
- config.json：<https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507>

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