willitrunΒ·ai
Model requirementsUpdated 8 min read

GPT-OSS 20B VRAM Requirements β€” RTX 4060 Ti, RTX 4070, RTX 4090, Apple Silicon Guide

GPT-OSS 20B (21B MoE, 3.6B active) ships in MXFP4: ~11.3 GB of weights, ~14-15 GB in total at 16K context. Fits 16 GB cards, needs offload on 12 GB, and our estimate is ~239 tok/s on an RTX 4090.

If you are searching for GPT-OSS 20B VRAM requirements or "gpt-oss-20b RTX 4060 Ti / RTX 4090", this is the hardware reference you need.

GPT-OSS 20B is OpenAI's first open-weight model β€” a 21B-parameter mixture-of-experts (MoE) architecture that activates only 3.6B parameters per token. Two facts drive hardware planning:

  1. It ships in MXFP4. OpenAI released the weights already quantized to 4 bits, so you don't pick a GGUF quant the way you would for a dense Llama or Qwen. The site models it at MXFP4: about 11.3 GB of weights.
  2. It is sparse. All 21B weights must be in memory, but each token only touches 3.6B of them, so decode is far faster than a dense 20B model on the same card.

All figures below are our estimates from the site's fit engine (linked pages), not measurements, for a 16K-token coding workload.

Quick answers

  • GPT-OSS 20B memory (MXFP4): ~11.3 GB of weights, ~14.1-14.9 GB in total at 16K context
  • RTX 4060 Ti 16GB: tight fit (reserve intact), ~66 tok/s
  • RTX 4070 12GB: runs only with a little CPU offload at MXFP4 (~93 tok/s, no safe context)
  • RTX 4090 24GB: fits with room to spare, ~239 tok/s, full 131K context
  • Apple Silicon: tight fit on an M4 Pro 24GB (~73 tok/s), comfortable on 36 GB and up; 16 GB needs heavy offload

GPT-OSS 20B model specs

FeatureGPT-OSS 20B
Total parameters21 billion
Active per token3.6 billion (MoE)
ArchitectureMixture of Experts (24 layers, 32 experts, top-4 routing)
Native weight formatMXFP4
Context window128,000 tokens
LicenseApache 2.0
ProviderOpenAI
ReleaseAugust 2025
HF repoopenai/gpt-oss-20b
Ollamaollama pull gpt-oss

Benchmarks from the official release: GPQA Diamond 71.5%, SWE-Bench Verified 60.7%, LiveCodeBench 74.6%, HumanEval 78.2%.

GPT-OSS 20B VRAM table

MoE models load every expert into memory, so VRAM reflects the full 21B footprint. "Memory needed" is the total the site compares with your card: weights + KV cache at 16K context + runtime overhead + safety reserve. The figures below are from the RTX 4090 page; the reserve scales a little with the card, so the same build shows ~14.1 GB on a 16 GB card and ~16.0 GB on an RTX 5090.

FormatWeightsMemory needed (16K ctx)Notes
Q2_K~7.6 GB~11.3 GBLow quality; the only build that fits some 12 GB setups with reserve intact
Q3_K_S~9.5 GB~13.2 GBLow quality
MXFP4 (native, recommended)~11.3 GB~14.9 GBWhat OpenAI ships and Ollama pulls
Q4_K_M~10.8 GB~14.5 GB
Q5_K_M~10.9 GB~14.6 GB
Q6_K~11.2 GB~14.9 GB
Q8_0~11.3 GB~14.9 GB
F16~39.9 GB~43.6 GBToo big for any single consumer card

The practical takeaway: on the site's numbers, the Q4_K_M-Q8_0 GGUF builds of GPT-OSS 20B are all within about 0.5 GB of the native MXFP4 file. Unlike a dense model, going "below Q8" saves almost no memory, so there is little reason to leave MXFP4 unless you are squeezing into 12 GB.

KV cache is small at this context: the RTX 4090 page breaks the 14.9 GB down as 11.3 GB weights, 0.4 GB KV cache, 0.9 GB runtime and 2.4 GB headroom. That is why even 16 GB cards keep a safe context of ~97K tokens.

Per-GPU verdict

RTX 4060 Ti 16GB β€” Recommended entry point

Verdict: tight fit (reserve intact) at MXFP4.

The RTX 4060 Ti 16GB page puts GPT-OSS 20B at ~14.1 GB of 16.0 GB, with a safe context of about 97K tokens. Our speed estimate is ~66 tok/s. That is slower than other 16 GB cards because the 4060 Ti has much less memory bandwidth, but it is still very usable for chat and coding.

Best setup: Ollama with the gpt-oss model, or llama.cpp with the MXFP4 GGUF from Hugging Face. This is the cheapest card on which the model fits entirely in VRAM.

RTX 4070 12GB β€” Needs offload at the native format

Verdict: runs only with CPU offload at MXFP4; Q3_K_S or Q2_K fit, at a quality cost.

At MXFP4 the model needs ~13.7 GB, so the RTX 4070 12GB page rates it "Runs with offload (needs ~0.5 GB host RAM)". Our estimate is still ~93 tok/s because only a sliver spills to system RAM, but the page lists no safe context window: there is no memory left for a long conversation.

If you want it to fit in VRAM:

  • Q3_K_S (~12.0 GB): fits, reduced reserve
  • Q2_K (~10.1 GB): tight fit (reserve intact), and the only build the page recommends for this card

Both are low-quality builds. The RTX 4070 Super 12GB and RTX 5070 12GB are in the same position: capacity, not bandwidth, is the limit (the RTX 5070 page also shows offload, ~100 tok/s).

RTX 4090 24GB β€” Ideal consumer GPU

Verdict: fits comfortably; full 131K context.

The RTX 4090 page shows ~14.9 GB of 24 GB used, a safe context of 131K tokens (the model's limit), and an estimated ~239 tok/s at MXFP4, falling to about 171 tok/s with the 16K context filled. There is no memory pressure at any GGUF build up to Q8_0; only F16 (~43.6 GB) does not fit.

An RTX 5090 32GB is faster again (~374 tok/s by our estimate) but buys no extra capability for this model. A used RTX 3090 24GB gets the same full context at ~204 tok/s.

Apple Silicon β€” 24 GB is the floor

Verdict: M4 Pro 24GB is a tight fit; 36 GB and up is comfortable; 16 GB needs heavy offload.

Macs share memory between CPU and GPU, but macOS only lets the GPU use part of it, so the "usable" figure on each page is lower than the RAM size.

MacUsable for the modelGPT-OSS 20B fit (MXFP4)Speed (our estimate)
MacBook Pro M4 16GB11.5 GBHeavy offload, no safe context~26 tok/s
MacBook Pro M4 Pro 24GB17.3 GBTight fit (reserve intact), ~110K safe context~73 tok/s
MacBook Pro M4 Max 36GB25.9 GBFits, 131K context~90 tok/s
MacBook Pro M4 Pro 48GB34.6 GBFits, 131K context~73 tok/s
MacBook Pro M4 Max 64GB46.1 GBFits, 131K context~119 tok/s

On a 16 GB M4, the page suggests Q2_K instead (~10.6 GB, tight fit with reserve intact). More memory does not make the M4 Pro faster: the 24 GB and 48 GB models share the same bandwidth, so both land at ~73 tok/s. The M4 Max is faster because of its wider memory bus.

Recommended runtime: Ollama (ollama pull gpt-oss) or llama.cpp; both run the MXFP4 weights on Apple Metal.

Expected tokens/second by GPU

MoE sparsity makes GPT-OSS 20B much faster than its parameter count implies. Our estimates at MXFP4 (single stream, from each linked page):

HardwareFitTokens/sec (our estimate)
RTX 3060 12GBOffloads~63 tok/s
RTX 4060 Ti 16GBTight fit (reserve intact)~66 tok/s
RTX 4070 12GBOffloads~93 tok/s
RTX 4070 Ti Super 16GBTight fit (reserve intact)~168 tok/s
RTX 4080 Super 16GBTight fit (reserve intact)~191 tok/s
RTX 3090 24GBFits~204 tok/s
RTX 4090 24GBFits~239 tok/s
RTX 5090 32GBFits~374 tok/s
MacBook Pro M4 Pro 24GBTight fit (reserve intact)~73 tok/s
MacBook Pro M4 Max 64GBFits~119 tok/s

These are bandwidth-based estimates for an empty context. Real numbers depend on your runtime (Ollama, llama.cpp, LM Studio), its build, and how full the context is; speed drops as the context fills. An RTX 4060 8GB cannot run the model even at Q2_K without heavy offload.

What hardware should I buy for GPT-OSS 20B?

TierHardwareMemoryVerdict (MXFP4)Est. price
Minimum valueRTX 4060 Ti 16GB16 GBTight fit, ~66 tok/s~$400-450
Sweet spotRTX 4070 Ti Super 16GB16 GBTight fit, ~168 tok/s~$550-650
Best consumerRTX 4090 24GB24 GBFits, full context, ~239 tok/s~$1,600-1,900
Best new GPURTX 5090 32GB32 GBFits, ~374 tok/s~$1,999-2,499
Mac sweet spotMac M4 Max 36GB36 GB unifiedFits, full context, ~90 tok/sβ€”

For 12 GB GPUs (RTX 4070, RTX 5070, RTX 3060 12GB): the native MXFP4 build spills slightly into system RAM and leaves no room for context. You can drop to Q3_K_S or Q2_K, or use a smaller model like Qwen 3.5 9B that fits a 12 GB card with room for context.

Reasoning modes and context

GPT-OSS 20B supports three reasoning effort levels: low, medium, and high. Higher effort produces longer chain-of-thought traces, which fill the context window faster and slow decode as the context grows (on the RTX 4090, our estimate drops from ~239 to ~171 tok/s with 16K tokens in context).

Memory is rarely the constraint: the site's safe-context estimates are 131K tokens on 24 GB cards and ~97K on 16 GB cards. On a 12 GB card at MXFP4 there is no safe context at all, so long high-effort runs are where 12 GB setups struggle first.

GPT-OSS 20B vs other local models

ModelTypeWhere it fitsStrength
GPT-OSS 20B21B MoE, 3.6B active16 GB GPU / 24 GB MacReasoning, coding (SWE-Bench Verified 60.7%)
Qwen 3.6 27BDense24 GB classStrong coding
Llama 3.3 70BDense48 GB classStrong general
Gemma 4 9BDense8-12 GB classFast, smaller
Qwen 3.5 9BDense8-12 GB classFast 9B class

GPT-OSS 20B punches well above 9B models on reasoning and coding tasks while fitting on 16 GB consumer hardware β€” a rare combination. Check any of these against your exact card in the calculator. The Apache 2.0 license also makes it a strong choice for professional and commercial use.

Questions

How much VRAM does GPT-OSS 20B need?

GPT-OSS 20B ships in MXFP4, its native 4-bit format. Our estimate is ~11.3 GB for the weights and ~14.1-14.9 GB in total with a 16K-token context, runtime overhead and a safety reserve (14.1 GB on a 16 GB card, 14.9 GB on an RTX 4090). Q4_K_M through Q8_0 GGUF builds land in the same range on the site; F16 needs ~43-44 GB.

Can GPT-OSS 20B run on an RTX 4060 Ti 16GB?

Yes. Our estimate is a tight fit with the reserve intact: ~14.1 GB of 16 GB used at MXFP4, ~66 tok/s, and a safe context of about 97K tokens.

Can GPT-OSS 20B run on an RTX 4070 12GB?

Only with a little CPU offload at MXFP4: it needs ~13.7 GB, about 0.5 GB more than the card has, and there is no safe context window left. Our estimate is ~93 tok/s in that state. Q3_K_S (~12.0 GB) fits with a reduced reserve and Q2_K (~10.1 GB) is a tight fit with the reserve intact, at a clear quality cost.

Can GPT-OSS 20B run on an RTX 4090 24GB?

Easily. Our estimate is ~14.9 GB of 24 GB used at MXFP4, ~239 tok/s, and the full 131K context fits safely.

Does GPT-OSS 20B run on Apple Silicon?

Yes, from 24 GB of unified memory. On a MacBook Pro M4 Pro 24GB it is a tight fit (reserve intact) at ~73 tok/s by our estimate; an M4 Max 64GB runs it comfortably at ~119 tok/s. A 16 GB M4 only runs it with heavy offload (~26 tok/s, no safe context).

What is GPT-OSS 20B?

GPT-OSS 20B is OpenAI's first open-weight model, released under Apache 2.0. It is a 21B-parameter mixture-of-experts model with 3.6B active parameters per token. It supports configurable reasoning effort (low/medium/high), full chain-of-thought visibility, 128K context, and agentic function calling. Available on Hugging Face and via Ollama.

Is GPT-OSS 20B better than Llama 3.1 8B?

On OpenAI's published benchmarks, yes, by a wide margin: GPQA Diamond 71.5%, SWE-Bench Verified 60.7%, LiveCodeBench 74.6%. It also needs more memory: about 14-15 GB versus about 10 GB for Llama 3.1 8B at Q4_K_M on a 24 GB card, so it wants a 16 GB GPU or a 24 GB Mac.