gpt-oss-20b VRAM Requirements

gpt-oss-20b needs about 13.9 GB of VRAM at MXFP4 (official) with an 8K context: 12.8 GB for weights, 0.2 GB for the KV cache and 0.9 GB of runtime overhead. At Q4_K_M it needs 12.9 GB. At Q8_0 it needs 21.8 GB and at full FP16 precision 40.0 GB. The smallest GPU that runs it fully is the Apple M4 Pro 24GB.

By OpenAI · Updated October 14, 2026 · Values from config.json on Hugging Face

13.9 GB VRAM

gpt-oss-20b at MXFP4 (official) with 8K context and the KV cache in FP16.

  • Weights 12.8 GB
  • KV cache 0.2 GB
  • Runtime overhead 0.9 GB

Mixture of experts: all 20.9B parameters need memory, but only 3.6B are read per token, so it runs at the speed of a much smaller model.

Which GPUs can run it

gpt-oss-20b VRAM by quantization

Total memory with an FP16 KV cache. "Smallest tier" is the smallest standard VRAM size with a 6% safety margin at 8K.

QuantizationBits/weightWeightsTotal at 8KTotal at 32KSmallest tier
MXFP4 (official)5.2612.8 GB13.9 GB14.5 GB16 GB
Q4_K_M4.8511.8 GB12.9 GB13.5 GB16 GB
Q5_K_M5.6913.8 GB15.0 GB15.5 GB16 GB
Q6_K6.5916.0 GB17.2 GB17.7 GB20 GB
Q8_08.5020.7 GB21.8 GB22.4 GB24 GB
FP16 / BF1616.0038.9 GB40.0 GB40.6 GB48 GB
Q3_K_M3.919.5 GB10.6 GB11.2 GB12 GB
Q2_K3.007.3 GB8.4 GB9.0 GB10 GB

VRAM by context length

At MXFP4 (official). 12 of 24 layers keep the full context. The other 12 use a 128-token sliding window, so their cache stops growing after 128 tokens.

ContextKV cache (FP16)KV cache (Q8_0)Total, FP16 cacheTotal, Q8_0 cache
4K tokens0.1 GB53 MB13.8 GB13.8 GB
8K tokens0.2 GB0.1 GB13.9 GB13.8 GB
32K tokens0.8 GB0.4 GB14.5 GB14.1 GB
128K tokens3.0 GB1.6 GB16.7 GB15.3 GB

GPUs that can run gpt-oss-20b

At MXFP4 (official) with 8K context. "Best quant" is the highest-quality format that fits fully; "max context" is at MXFP4 (official).

GPUUsable memoryStatusBest quantMax contextSpeed
Apple M4 Pro 24GB16.0 GBFitsMXFP4 (official)55K~61 tok/s
RTX 4060 Ti 16GB16.0 GBFitsMXFP4 (official)55K~64 tok/s
Radeon RX 9060 XT 16GB16.0 GBFitsMXFP4 (official)55K~61 tok/s
Tesla T4 16GB16.0 GBFitsMXFP4 (official)55K~70 tok/s
RTX 5060 Ti 16GB16.0 GBFitsMXFP4 (official)55K~92 tok/s
Radeon RX 6800 XT 16GB16.0 GBFitsMXFP4 (official)55K~89 tok/s
Intel Arc A770 16GB16.0 GBFitsMXFP4 (official)55K~89 tok/s
Radeon RX 7800 XT 16GB16.0 GBFitsMXFP4 (official)55K~104 tok/s
Radeon RX 9070 XT 16GB16.0 GBFitsMXFP4 (official)55K~106 tok/s
RTX 4070 Ti Super 16GB16.0 GBFitsMXFP4 (official)55K~124 tok/s
RTX 4080 16GB16.0 GBFitsMXFP4 (official)55K~130 tok/s
RTX 4080 Super 16GB16.0 GBFitsMXFP4 (official)55K~132 tok/s
RTX 5070 Ti 16GB16.0 GBFitsMXFP4 (official)55K~151 tok/s
RTX 5080 16GB16.0 GBFitsMXFP4 (official)55K~157 tok/s
RTX 2060 12GB12.0 GB81% on GPUQ3_K_M–~44 tok/s
RTX 3060 12GB12.0 GB81% on GPUQ3_K_M–~45 tok/s
RTX 3080 12GB12.0 GB81% on GPUQ3_K_M–~59 tok/s
RTX 4070 12GB12.0 GB81% on GPUQ3_K_M–~51 tok/s
RTX 4070 Super 12GB12.0 GB81% on GPUQ3_K_M–~51 tok/s
RTX 4070 Ti 12GB12.0 GB81% on GPUQ3_K_M–~51 tok/s

About gpt-oss-20b

OpenAI's smaller open-weight model, a mixture-of-experts with 3.6B active parameters. It ships natively in MXFP4, so the official checkpoint is already about 13 GB and re-quantizing to GGUF saves little. Half the layers use a 128-token sliding window, which keeps long contexts cheap.

SpecValue
Parameters20.9B total, 3.6B active (MoE)
Layers24
Hidden size2880
Attention heads / KV heads64 / 8
Head dimension64
Vocabulary201,088
Max context (used here)128K tokens
Sliding window128 tokens on 12 of 24 layers
KV cache per token (FP16)24 KB
Released2025-08
LicenseApache 2.0

gpt-oss-20b VRAM: common questions

Can gpt-oss-20b run on a 16GB GPU?

Yes. The native MXFP4 weights are about 12.8 GiB, leaving room for a long context on 16 GB cards. OpenAI designed it for 16 GB devices.

Should I use a Q4_K_M GGUF of gpt-oss-20b?

There is little benefit. The experts are already 4-bit, so most GGUF versions keep MXFP4 for them and end up close to the native size.

How much VRAM does gpt-oss-20b need?

About 13.9 GB at MXFP4 (official) with an 8K context, 21.8 GB at Q8_0 and 40.0 GB at FP16. Longer contexts add 0.02 GB per 1,000 tokens with an FP16 cache.

What is the cheapest GPU that can run gpt-oss-20b?

The smallest listed device that fits it fully at MXFP4 (official) with 8K context is the Apple M4 Pro 24GB (16.0 GB usable).

Does gpt-oss-20b need VRAM for all 20.9B parameters?

Yes. All experts must be loaded because any token can use any expert. Only 3.6B parameters are read per token, so it generates text about as fast as a 4B dense model.

Related