one model, 8 GPUs, every number computed
Which GPUs can run gpt-oss-20b? Memory, speed and cost on each one
gpt-oss-20bOpenAI
gpt-oss-20b is OpenAI's model with 21 billion parameters, 3.6 billion of them used per token. Its weights take 12.8 GiB in MXFP4, and every token of every conversation adds 24,576 bytes of KV cache in BF16. Here is what that means on each GPU, with the same assumptions on every page.
gpt-oss-20b on every GPU, cheapest per token first
| GPU | Answer | Setup | People at 8,192 tokens | One person, best case | Per million tokens, busy |
|---|---|---|---|---|---|
| Can gpt-oss-20b run on an RTX 4090? | Yes, in MXFP4 | 1 GPU | 38 | 335 tok/s | $0.093 |
| Can gpt-oss-20b run on an A100 40 GB? | Yes, in MXFP4 | 1 GPU | 115 | 517 tok/s | $0.178 |
| Can gpt-oss-20b run on an A100 80 GB? | Yes, in MXFP4 | 1 GPU | 308 | 678 tok/s | $0.188 |
| Can gpt-oss-20b run on an H200? | Yes, in MXFP4 | 1 GPU | 600 | 1,595 tok/s | $0.207 |
| Can gpt-oss-20b run on an H100? | Yes, in MXFP4 | 1 GPU | 306 | 1,113 tok/s | $0.222 |
| Can gpt-oss-20b run on an L40S? | Yes, in MXFP4 | 1 GPU | 139 | 287 tok/s | $0.253 |
| Can gpt-oss-20b run on an L4? | Yes, in MXFP4 | 1 GPU | 30 | 100 tok/s | $0.405 |
| Can gpt-oss-20b run on an A10G? | Yes, in MXFP4 | 1 GPU | 30 | 199 tok/s | $0.463 |
The KV cache formula for gpt-oss-20b:
2 x 12 full-attention layers x 8 KV heads x 64 head size x 2 bytes = 24,576 bytes per token
- vLLM's default of 92% of the GPU's memory (20.7 GiB of the 22.5 GiB the driver reports on an L4), with 2 GiB per GPU kept for working space.
- A conversation of 8,192 tokens (prompt plus answer) for the yes or no; other lengths are in the KV cache table.
- Speed is the best case: 80% of the rated memory speed (what llama.cpp reached on our rented RTX 4090) and 50% of the rated compute, for a 1,024-token prompt and a 256-token answer.
- Prices are on-demand, per GPU per hour, read on 13 November 2026, with the GPU busy all the time.
Where these sums are taught
The course Hands-On Inference Engineering works each of these out on paper and then measures it on a rented GPU:
- Sizing GPU memory
- The KV cache (free to read)
- Number formats from 32 bits to 4
- When a GPU waits for memory and when it waits for maths
- Cost per million tokens
- Mixture-of-experts models and expert parallelism
Practise choosing a GPU in the free inference engineering game, or change any assumption in the GPU memory calculator.
Questions people ask
What is the smallest GPU that can run gpt-oss-20b?
In its full format, an L4 (24 GB), with room for 30 people at 8,192 tokens.
What is the cheapest way to serve gpt-oss-20b?
Of the GPUs here, one RTX 4090 in MXFP4 works out cheapest per token: about $0.093 per million tokens at RunPod's community cloud price, busy all the time, at the best-case speed.
Other models: Llama 3.1 8B, Llama 3.1 70B, Qwen3 0.6B, Qwen3 8B, Qwen3 32B, Qwen2.5 7B, Mistral 7B, Mistral Small 24B, DeepSeek R1 Distill Llama 8B, DeepSeek V3, gpt-oss-120b.