GPT-OSS 20B VRAM & GPU Requirements Calculator
GPT-OSS 20B requires 38.9 GiB in FP16, 19.5 GiB in FP8, and 11.9 GiB in GGUF Q4_K_M for GPU weights alone (24 layers · GQA (64Q / 8KV = 8× KV savings) · 1:1 sliding window (128 tok) · Native MXFP4 MoE (20.9B total / 3.6B active)). At 8K context (batch=1, FP16 KV), KV-cache adds 0.19 GiB (15.8× smaller than MHA).
Can Your GPU or Mac Run GPT-OSS 20B? (8K Context, Batch=1)
Pre-computed fit verdict and estimated decode speed across RTX 4090, Apple Silicon Unified Memory, and NVIDIA H100/H200 clusters. Column headers show 1× GPU baseline (incl. 1.0 GiB runtime; multi-GPU rows add per-GPU NCCL overhead). Apple Silicon runs Q8_0 (Metal/llama.cpp) instead of datacenter FP8.
| Hardware Rig | Q4_K_M (13.5 GiB) | FP8 / Q8_0* (21.0 GiB FP8) | FP16 (40.6 GiB) |
|---|---|---|---|
| 1× RTX 4090 (23.9 GiB usable) | FIT · ~233 tok/s | FIT · ~168 tok/s | OOM (-17G) |
| 2× RTX 4090 (47.8 GiB usable) | FIT · ~178 tok/s | FIT · ~153 tok/s | FIT · ~108 tok/s |
| Apple M4 Max (128 GiB Unified · 96 GiB GPU) | FIT · ~136 tok/s | Q8_0 FIT · ~87 tok/s | FIT · ~50 tok/s |
| Apple M3 Ultra (256 GiB Unified · 192 GiB GPU) | FIT · ~188 tok/s | Q8_0 FIT · ~124 tok/s | FIT · ~72 tok/s |
| 1× H100 SXM (79.6 GiB usable) | FIT · ~463 tok/s | FIT · ~376 tok/s | FIT · ~245 tok/s |
| 4× H100 SXM (318.4 GiB usable) | FIT · ~239 tok/s | FIT · ~231 tok/s | FIT · ~211 tok/s |
| 8× H100 SXM (636.8 GiB usable) | FIT · ~185 tok/s | FIT · ~182 tok/s | FIT · ~175 tok/s |
| 8× H200 SXM (1,123.2 GiB usable) | FIT · ~186 tok/s | FIT · ~184 tok/s | FIT · ~179 tok/s |
Ready-to-run deployment commands for GPT-OSS 20B
vllm serve openai/gpt-oss-20b --tensor-parallel-size 1 --max-model-len 8192 --gpu-memory-utilization 0.90Sized at 12.4 GiB total Native MXFP4 VRAM (including CUDA/NCCL overhead) out of 79.6 GiB usable.
llama-server -m /path/to/gpt-oss-20b-Q4_K_M.gguf -c 8192 -ngl 999 -fa onFits on a single RTX 4090 (23.9 GiB usable) at ~233 tok/s.
Interactive GPT-OSS 20B VRAM & Roofline Simulator
1. Model & Workload
2. Target GPU / Mac Silicon
VRAM Allocation vs. Hardware Capacity
Decode Arithmetic Intensity Roofline
Compare Other LLM VRAM Requirements
All 37 Models →Frequently Asked Questions
Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run GPT-OSS 20B?
At 8K context (batch=1) in GGUF Q4_K_M, GPT-OSS 20B needs 13.5 GiB single-GPU VRAM (11.9 GiB weights). Single 23.9 GiB usable RTX 4090: Fits at ~233 tok/s. Dual 47.8 GiB usable (2× RTX 4090): Fits Q4_K_M cleanly (~178 tok/s TP).
Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run GPT-OSS 20B?
An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (13.5 GiB GPU wired at 8K), it fits on M4 Max 128 GiB at ~136.1 tok/s.
How much KV-cache does GPT-OSS 20B use at 32K context?
GPT-OSS 20B uses GQA with 1:1 alternating sliding window (128 local tokens), giving a 15.9× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 0.75 GiB.