Skip to content

How much VRAM does gpt-oss 20B need?

gpt-oss 20B needs 11.8 GB for its weights at 4-bit, 12.9 GB with an 8K context and 13.5 GB with 32K.

Parameters
20.9B
Active per token
3.6B
Longest context
128K
Released
Aug 2025
License
Apache 2.0
Strongest at
Agents

Memory at each precision

Memory gpt-oss 20B needs at each precision and context length
PrecisionWeightsWith 8KWith 32KWith 128K
As released (MXFP4)11.3 GB12.4 GB13.0 GB15.2 GB
4-bit11.8 GB12.9 GB13.5 GB15.7 GB
3-bit9.5 GB10.6 GB11.2 GB13.4 GB
2-bit7.3 GB8.4 GB9.0 GB11.2 GB
1.6-bit4.0 GB5.1 GB5.7 GB7.9 GB

One conversation, 16-bit context cache, runtime overhead included.

What runs it

The best way gpt-oss 20B runs on common GPUs, Macs and AI boxes
MachineBest fitContextSpeedFirst reply
RTX 3060 12 GB3-bit40K119 tok/s1.4 s
RTX 4060 Ti 16 GBMXFP4120K71 tok/s0.8 s
RTX 3090MXFP4128K187 tok/s0.5 s
RTX 4090MXFP4128K197 tok/s0.2 s
RTX 5090MXFP4128K287 tok/s0.2 s
2× RTX 3090MXFP4128K187 tok/s0.3 s
RTX PRO 6000 BlackwellMXFP4128K287 tok/s0.1 s
M4 Max 128 GBMXFP4128K94 tok/s2.9 s
M5 Max 128 GBMXFP4128K102 tok/s0.8 s
Ryzen AI Max+ 395 128 GBMXFP4128K53 tok/s1.7 s
DGX Spark 128 GBMXFP4128K67 tok/s0.6 s
M3 Ultra 256 GBMXFP4128K122 tok/s1.6 s
M5 Ultra 512 GBMXFP4128K150 tok/s0.5 s
H100 SXMMXFP4128K395 tok/s0.1 s
DGX Station GB300MXFP4128K511 tok/s0.1 s
8× H200 NVLMXFP4128K454 tok/s0.1 s

Best fit is the highest quality, up to 8-bit, that leaves 16K of context. First reply is the wait for a 2K prompt. Speeds are rough, plus or minus 25%.

How to run it

Ollama
ollama run gpt-oss:20b
llama.cpp
llama-server -hf unsloth/gpt-oss-20b-GGUF
vLLM
vllm serve openai/gpt-oss-20b
MLX (Mac)
mlx_lm.chat --model mlx-community/gpt-oss-20b-MXFP4-Q4

Questions

How much VRAM does gpt-oss 20B need?

gpt-oss 20B needs 11.8 GB for its weights at 4-bit, 12.9 GB with an 8K context and 13.5 GB with 32K.

Can gpt-oss 20B run on an RTX 4090?

Yes. At MXFP4 it holds 128K of context and writes about 197 tokens a second.

More models