gpt-oss 20B: VRAM requirements and which GPUs run it

How much VRAM gpt-oss 20B needs at Q4, Q5 and Q8, the smallest GPU that fits, and expected tokens per second on common cards.

Updated 8 September 2026 · estimates are labelled as estimates

gpt-oss 20B has 21B parameters with 3.6B active per token (mixture of experts), 24 layers and 8 KV heads of dimension 64. At the everyday setting, Q4_K_M and 8k context, it needs an estimated 13.6 GB, so the smallest card that fits is 16 GB.

Memory by quantisation and context

Quant4,096 ctx8,192 ctx32,768 ctx
Q8_023.9 GB · fits 32 GB24.1 GB · fits 32 GB25.3 GB · fits 32 GB
Q5_K_M16.2 GB · fits 24 GB16.4 GB · fits 24 GB17.6 GB · fits 24 GB
Q4_K_M13.4 GB · fits 16 GB13.6 GB · fits 16 GB14.8 GB · fits 16 GB

Weights at this quant: 12.2 GB at Q4. Every extra 1,000 tokens of context adds about 0.0492 GB of KV cache at FP16. Try other settings in the VRAM calculator.

Speed by GPU, at Q4 and 8k context

GPUMemoryBandwidthFitsEst. tokens/sFeels like
RTX 3060 12 GB12 GB360 GB/snodoes not fit
RTX 4060 Ti 16 GB16 GB288 GB/syes97faster than you can read
RTX 4070 12 GB12 GB504 GB/snodoes not fit
RTX 3090 24 GB24 GB936 GB/syes314faster than you can read
RTX 4090 24 GB24 GB1,008 GB/syes338faster than you can read
RTX 5090 32 GB32 GB1,792 GB/syes601faster than you can read
RTX 6000 Ada 48 GB48 GB960 GB/syes322faster than you can read
L40S 48 GB48 GB864 GB/syes290faster than you can read
RTX PRO 6000 Blackwell 96 GB96 GB1,792 GB/syes601faster than you can read
A100 80 GB80 GB2,039 GB/syes684faster than you can read
H100 SXM 80 GB80 GB3,352 GB/syes1124faster than you can read

Single-stream decode ceiling from memory bandwidth at 70% efficiency. Prompt processing and batching not included. See the speed estimator for other quantisations and Apple hardware, or every card compared if you are choosing hardware rather than a model.

Notes

  • Ships in MXFP4; roughly 4.25 bits per expert weight. Choose the 4-bit row.
  • Architecture values from openai/gpt-oss-20b model card. Verify against the model card before buying hardware for this model.
  • Estimates assume a single conversation on a card that is otherwise free. A desktop on the same GPU takes 0.5 to 2 GB.

Questions

Can I run gpt-oss 20B on a 24 GB card?

Yes, at Q4_K_M and 8k context it needs about 13.6 GB, which fits a 24 GB card with room.

How much VRAM does gpt-oss 20B need at Q8?

About 24.1 GB at 8k context, or 25.3 GB at 32k. Q8 is near-lossless; use it when it fits.

How fast is gpt-oss 20B on an RTX 4090?

Roughly 338 tokens per second at Q4, single stream, which is faster than you can read. Real runtimes land within about 20% of this either way.

See how it compares in which models fit on 8 to 96 GB, or run it without buying the card: Nodegrove attaches a 24, 48 or 96 GB GPU to a workspace that stays saved.