⌕ search /

How much VRAM does GPT OSS 20B need?

GPT OSS· 21B params MoE

Headline estimate

At bf16, reference 8K context, batch size 1: 43.7GB of VRAM. The recommended configuration is 1× H100 SXM5 80GB.

Size GPT OSS 20B for your own context, users and GPUs in the calculator →

VRAM by quantization

DtypeVRAMFits on
bf16 43.7GB 1× H100 SXM5 80GB calculate →
fp8 23.1GB 1× RTX 5090 32GB calculate →
awq 14.4GB 1× L4 24GB calculate →
nvfp4 15.2GB 1× L4 24GB calculate →

Context length sensitivity

bf16 · batch 1

Same model, same bf16 dtype, batch size 1 — VRAM at longer context windows.

ContextVRAM (bf16)
8K43.7GB
32K44.3GB
128K46.8GB

Hosted API prices

Prices as of 2026-12-05, per 1M tokens, from each provider's own list.

ProviderInputOutputCached inputContextPrecision
AkashML $0.018 $0.09 $0.009 — FP4
DeepInfra $0.03 $0.14 $0.015 128K BF16
OVHcloud AI Endpoints $0.05 $0.18 — 128K not stated
Google Cloud Vertex AI $0.07 $0.25 $0.007 — not stated
AWS Bedrock $0.07 $0.30 — — not stated
Oracle OCI Generative AI $0.07 $0.30 — — not stated
Prime Intellect $0.20 $0.30 $0.18 128K FP4
Groq $0.17 $0.36 — 128K not stated

Size it on GPUs → · All API prices for this model

Model facts

Parameters21B
Active params3.6B
Experts32top-4
Architecturemoe
Max context131,072

About GPT OSS 20B

Running a GPT OSS 20B in bf16 at a reference 8K context and batch size 1 takes 43.7GB of VRAM — a number our calculator derives from the model's published architecture (layer count, hidden size, attention heads), not a rough rule of thumb. GPT OSS 20B is a GPT OSS model with 21B total parameters, with only 3.6B active per token via mixture-of-experts routing, and at this batch size that VRAM figure is dominated by the weights themselves, with KV cache and framework overhead adding a smaller but still meaningful slice on top. Which GPU you actually need depends heavily on quantization: bf16 is the reference precision with no quality loss, but fp8 roughly halves the weight footprint, AWQ (weight-only int4) goes further still, and — on Blackwell hardware — NVFP4 offers a similar 4-bit footprint with hardware-native throughput. At bf16, the recommended configuration for this model is 1× H100 SXM5 80GB; the dtype table above shows exactly how that changes as you quantize down, including whether a smaller or cheaper GPU becomes viable. Context length is the other lever: KV cache grows roughly linearly with how many tokens you keep resident, so a deployment serving long documents or long conversations needs meaningfully more headroom than this 8K reference number suggests — see the context-sensitivity table for how VRAM scales at 32K and 128K where this model's native context allows it. If you're sizing a real deployment rather than just checking whether a model fits, feed these same architecture numbers into the full calculator to model your actual concurrency and serving framework.

Frequently asked questions

How much VRAM does GPT OSS 20B need?

At bf16, reference 8K context and batch size 1, GPT OSS 20B needs 43.7GB of VRAM. The recommended configuration we find is 1× H100 SXM5 80GB.

How many parameters does GPT OSS 20B have?

GPT OSS 20B has 21B total parameters, with 3.6B active per token via mixture-of-experts routing.

Does quantization reduce GPT OSS 20B's VRAM requirement?

Yes — switching from bf16 to fp8 brings the total down to 23.1GB, and weight-only int4 formats (AWQ, NVFP4) go further still. See the per-dtype table above for exact numbers.

Where do these VRAM numbers come from?

They're computed by the same calculator engine behind our interactive GPU calculator, from the model's published architecture (layers, hidden size, attention heads, KV cache config) — not a generic per-parameter estimate.

Methodology: VRAM figures are computed by the same calculator engine behind our interactive GPU calculator, from GPT OSS 20B's published architecture (layer count, hidden size, attention heads, KV cache configuration) — not a generic per-parameter estimate. Reference scenario: batch size 1, vLLM framework, fp16 KV cache. These are engineering estimates, not a guarantee — always validate against your actual serving framework and workload before committing to hardware.

Size a full deployment of GPT OSS 20B — concurrency, framework, quantization — in the calculator →

Prices are collected daily from each provider's public price list or API. Estimates, not quotes — always confirm on the provider's own page before committing.

How this works · How accurate it is