gpt-oss:20b: how much VRAM does it need?
gpt-oss 20B. Run it with ollama run gpt-oss:20b. 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 | 14GB |
| Context (Ollama tag page) | 128K |
| KV cache per 1K tokens (f16, full-attention layers) | 24 MB |
| Sliding-window layers | keep only the last 128 tokens |
| LMArena overall | #278, score 1317 (2026-11-22) |
VRAM by context length
| Context | KV cache f16 | Total (f16) | Total (q8_0 KV) |
|---|---|---|---|
| 4K | 0.10 GB | 15.1 GB | 15.0 GB |
| 8K | 0.19 GB | 15.2 GB | 15.1 GB |
| 32K | 0.75 GB | 15.8 GB | 15.4 GB |
| 128K | 3.00 GB | 18.0 GB | 16.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.
FAQ
How much VRAM does gpt-oss:20b need?
About 15.1 GB at 4K context (Ollama default) and 15.8 GB at 32K with an f16 KV cache and 1 GB headroom.
How big is the gpt-oss:20b download?
The Ollama library lists 14GB.
Sources
- Ollama:https://ollama.com/library/gpt-oss/tags
- config.json:https://huggingface.co/openai/gpt-oss-20b
- LMArena:https://huggingface.co/datasets/lmarena-ai/leaderboard-dataset
More: all models · VRAM calculator · token counter