Skip to content
AI Dev Toolkit.
Esc
  • Loading…

VRAM · Local model

gpt-oss 20B VRAM requirements: can you run it locally?

Yes, on one 16 GB GPU such as the GeForce RTX 5080, or a Mac with 24 GB of unified memory. With its official MXFP4 file and an 8K context it needs about 13 GB. That covers 11 GB of weights, the KV cache and runtime overhead. Estimates from the model’s official config.json, checked 2026-10-08.

Parameters
20.9B
Layers
24
Max context
131,072
Experts
32 (4 active)

Attention: 12 full-attention layers, 12 sliding-window layers (last 128 tokens).

Requirements

How much VRAM does gpt-oss 20B need?

Quantisation8K context32K context128K context
MXFP4 (official file)13 GB13 GB16 GB

gpt-oss 20B is released in MXFP4 and local builds stay about that size, so these use the official file. Weights + FP16 KV cache + overhead, batch 1; the VRAM calculator shows the formula.

GPUs

Which GPUs can run gpt-oss 20B?

MemoryExample cardBest quality at 8KLongest context at that qualityLongest context (official file)
8 GBGeForce RTX 4060Doesn’t fit——
12 GBGeForce RTX 5070Doesn’t fit——
16 GBGeForce RTX 5080MXFP4 (official file) · 13 GB128K128K
24 GBRadeon RX 7900 XTXMXFP4 (official file) · 13 GB128K128K
32 GBGeForce RTX 5090MXFP4 (official file) · 13 GB128K128K
48 GBL40SMXFP4 (official file) · 13 GB128K128K
80 GBH100 80GBMXFP4 (official file) · 13 GB128K128K
96 GBRTX PRO 6000 BlackwellMXFP4 (official file) · 13 GB128K128K

The smallest card that holds gpt-oss 20B with its official MXFP4 file with an 8K context has 16 GB, such as the GeForce RTX 5080; there it has room for about 128K tokens. Cards with 8 and 12 GB can’t hold the official file with an 8K context.

Apple Silicon

Can you run gpt-oss 20B on a Mac?

Mac memoryGPU can useBest quality at 8KLongest context
16 GB11 GBDoesn’t fit—
24 GB16 GBMXFP4 (official file) · 13 GB128K
32 GB21 GBMXFP4 (official file) · 13 GB128K
36 GB27 GBMXFP4 (official file) · 13 GB128K
48 GB36 GBMXFP4 (official file) · 13 GB128K
64 GB48 GBMXFP4 (official file) · 13 GB128K
96 GB72 GBMXFP4 (official file) · 13 GB128K
128 GB96 GBMXFP4 (official file) · 13 GB128K
192 GB144 GBMXFP4 (official file) · 13 GB128K
256 GB192 GBMXFP4 (official file) · 13 GB128K
512 GB384 GBMXFP4 (official file) · 13 GB128K

With its official MXFP4 file and an 8K context, gpt-oss 20B needs a Mac with at least 24 GB of unified memory. By default macOS lets the GPU use about two thirds of memory on Macs with 32 GB or less and about three quarters on larger ones; the table uses that limit. You can raise it with sudo sysctl iogpu.wired_limit_mb, leaving at least 8 GB for macOS.

Context

How much memory does gpt-oss 20B’s context use?

ContextKV cache, FP16KV cache, 8-bitTotal (official file)
8,1920.2 GB0.1 GB13 GB
32,7680.8 GB0.4 GB13 GB
131,0723.0 GB1.6 GB16 GB

gpt-oss 20B’s FP16 cache grows by about 23 MB for every 1,000 tokens once its windowed layers are full. At 8K tokens that is 0.2 GB, 2% of the total with its official MXFP4 file; at its full 131,072-token context it is 3.0 GB, 27% of the 11 GB of weights. 12 of its 24 layers use a sliding window of 128 tokens, so their cache is full after 128 tokens; only the 12 full-attention layers keep growing. On a 24 GB card with its official MXFP4 file, the longest context is about 128K tokens with an FP16 cache, its full context.

Download

How big is the gpt-oss 20B download?

FileBits per weightApproximate size
MXFP4 (official file)4.6311 GB

gpt-oss 20B is published with its weights already in MXFP4, about 11 GB in all; a 16-bit copy of its 20.9B parameters would take about 39 GB.

Offload

Can you run gpt-oss 20B with less VRAM by offloading to RAM?

GPU VRAMIn system RAMRAM to have
8 GB4.6 GB16 GB

Yes: llama.cpp can keep part of gpt-oss 20B in system RAM and run it on the CPU, so the GPU and RAM together need about 13 GB with its official MXFP4 file and an 8K context. On an 8 GB card that leaves 4.6 GB in RAM. Because only 4 of its 32 experts run for each token, the usual approach is to keep attention and shared layers on the GPU and move expert weights to RAM with --n-cpu-moe or -ot; each token then reads only a small part of what sits in RAM, so speed drops less than it would for a dense model of 20.9B parameters.

Compare

How does gpt-oss 20B compare with other gpt-oss models?

ModelParametersTypeQ4 at 8KSmallest GPUContext on 24 GB
gpt-oss 20B20.9BMoE13 GB16 GB128K
gpt-oss 120B116.8BMoE65 GBNone—

gpt-oss 20B is number 1 by size of the 2 gpt-oss models we cover. The next larger, gpt-oss 120B, needs about 65 GB.

FAQ

Frequently asked questions

How much VRAM does gpt-oss 20B need?

With an 8K context, about 13 GB using the official MXFP4 file (11 GB of weights). Local builds stay about that size whatever their quantisation label. That covers the weights, the KV cache and runtime overhead.

Can gpt-oss 20B run on a 24 GB GPU like the RTX 4090?

Yes: the best quality that fits with an 8K context is MXFP4 (official file), at about 13 GB, and at that setting it has room for about 128K tokens.

Can I run gpt-oss 20B on a Mac?

Yes: with its official MXFP4 file and an 8K context it fits a Mac with 24 GB of unified memory using macOS’s default GPU memory limit (about 16 GB for the GPU).

Can gpt-oss 20B run on 12 GB?

Best quality with an 8K context: 12 GB: no (the official file needs 13 GB).

Why does gpt-oss 20B need so much memory if only 4 experts are active?

Each token uses 4 of its 32 experts, but a different set for every token, so all 20.9B parameters must stay loaded: about 11 GB of weights with its official MXFP4 file. The active experts make it fast, not small.

How big is the gpt-oss 20B download?

The official MXFP4 release is about 11 GB; a 16-bit copy would be about 39 GB.

Related

Try other settings in the VRAM calculator

Keep exploring