NeuroGenesys.
Can I run it? • 21B MoE, 3.6B active

Can I run gpt-oss-20b?

Last updated • By

gpt-oss-20b needs about 14.4 GB of memory at 4-bit (Q4_K_M) with an 8K-token context, so it fits on a single 16 GB GPU, or runs on a Mac with 24 GB of unified memory. At 16-bit it needs 44.5 GB, so it fits on a single 48 GB GPU such as the RTX A6000, RTX 6000 Ada or L40S, or runs on a Mac with 64 GB of unified memory.

Open gpt-oss-20b in the VRAM calculator →

How much memory does gpt-oss-20b need?

gpt-oss-20b: GB of GPU memory for one request
PrecisionWeightsTotal, 8K contextTotal, 32K contextTotal, 128K context
16-bit (BF16 / FP16)42.0 GB44.5 GB45.1 GB47.5 GB
8-bit (Q8_0)22.3 GB24.2 GB24.8 GB27.2 GB
4-bit (Q4_K_M)12.8 GB14.4 GB15.0 GB17.4 GB
Native release (4.25 bits)11.2 GB12.7 GB13.3 GB15.7 GB

Total = weights + FP16 KV cache + 3% of the weights + 1 GB of runtime overhead, as in the VRAM calculator. 12 of 24 layers use a 128-token window, so their cache stops growing past that. Longer contexts are only usable up to the model's own context window; check the model card.

Which GPUs can run gpt-oss-20b?

GPUs needed at 8K context (model split across cards)
GPU memory16-bit (BF16 / FP16)8-bit (Q8_0)4-bit (Q4_K_M)
8 GB8 cards4 cards2 cards
12 GB4 cards4 cards2 cards
16 GB4 cards2 cardsfits on 1
24 GBRTX 3090, RTX 4090, L42 cardsfits on 1fits on 1
32 GBRTX 50902 cardsfits on 1fits on 1
40 GBA100 40GB2 cardsfits on 1fits on 1
48 GBRTX A6000, RTX 6000 Ada, L40Sfits on 1fits on 1fits on 1
80 GBA100 80GB, H100 PCIe, H100 SXMfits on 1fits on 1fits on 1
141 GBH200fits on 1fits on 1fits on 1
180 GBB200fits on 1fits on 1fits on 1
192 GBAMD MI300Xfits on 1fits on 1fits on 1

Assumes the runtime can allocate 95% of each card and every card pays the fixed overhead. Vendor memory sizes are binary (a 24 GB card holds 25.8 × 10⁹ bytes), and that is accounted for.

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

Apple Silicon unified memory at 8K context
Unified memory16-bit (BF16 / FP16)8-bit (Q8_0)4-bit (Q4_K_M)
24 GBM4 Prononofits
32 GBM2 Maxnofitsfits
48 GBM3 Max (40-core GPU), M4 Pro, M4 Max (40-core GPU)nofitsfits
64 GBM2 Max, M2 Ultra, M3 Max (40-core GPU), M4 Pro, M4 Max (40-core GPU)fitsfitsfits
96 GBM2 Max, M3 Ultrafitsfitsfits
128 GBM2 Ultra, M3 Max (40-core GPU), M4 Max (40-core GPU)fitsfitsfits
192 GBM2 Ultrafitsfitsfits
256 GBM3 Ultrafitsfitsfits
512 GBM3 Ultrafitsfitsfits

macOS lets the GPU use about 75% of unified memory by default; you can raise the limit with sudo sysctl iogpu.wired_limit_mb.

How fast does gpt-oss-20b run at 4-bit?

Estimated tokens per second for one request, Q4_K_M, 4K in context
HardwareMemory bandwidthTokens / s
RTX 309024 GB936 GB/s284estimator
RTX 409024 GB1,008 GB/s306estimator
RTX 509032 GB1,792 GB/s544estimator
RTX A600048 GB768 GB/s233estimator
RTX 6000 Ada48 GB960 GB/s292estimator
L424 GB300 GB/s91.1estimator
L40S48 GB864 GB/s262estimator
A100 40GB40 GB1,555 GB/s472estimator
A100 80GB80 GB2,039 GB/s619estimator
H100 PCIe80 GB2,000 GB/s608estimator
H100 SXM80 GB3,350 GB/s1018estimator
H200141 GB4,800 GB/s1458estimator
B200180 GB8,000 GB/s2430estimator
AMD MI300X192 GB5,300 GB/s1610estimator
Apple M2 Max32 GB config or larger400 GB/s113estimator
Apple M2 Ultra64 GB config or larger800 GB/s226estimator
Apple M3 Max (40-core GPU)48 GB config or larger400 GB/s113estimator
Apple M3 Ultra96 GB config or larger819 GB/s231estimator
Apple M4 Pro24 GB config or larger273 GB/s77.0estimator
Apple M4 Max (40-core GPU)48 GB config or larger546 GB/s154estimator

Decoding reads the active expert weights and the KV cache once per token, so speed is roughly memory bandwidth ÷ bytes per token. Assumes 70% of peak bandwidth on GPUs and 65% on Macs, one GPU or Mac holding the whole model. Only hardware that holds it alone is listed.

Questions

How much VRAM does gpt-oss-20b need?

About 14.4 GB at 4-bit (Q4_K_M), 24.2 GB at 8-bit (Q8_0) and 44.5 GB at 16-bit (BF16), for one request with an 8K-token context. At 4-bit the weights are 12.8 GB; the rest is the KV cache and runtime overhead. With 128K tokens of context the 4-bit total rises to 17.4 GB.

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

Yes, at 8-bit (Q8_0) with an 8K context; 16-bit does not fit on one card. A 24 GB card such as the RTX 3090, RTX 4090 or L4 holds it with the runtime's usual headroom.

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

Yes: at 4-bit it needs a Mac with at least 24 GB of unified memory, and at 16-bit 64 GB. By default macOS lets the GPU use about 75% of unified memory, which these figures allow for.

How fast does gpt-oss-20b run?

At 4-bit, one request generates about 306 tokens per second on a RTX 4090 and 154 tokens per second on an Apple M4 Max (40-core GPU). These are estimates from memory bandwidth (70% of peak on GPUs, 65% on Macs) with 4K tokens in context; real runtimes vary.

Why does gpt-oss-20b need so much memory if only 3.6B parameters are active?

gpt-oss-20b is a mixture-of-experts model: each token uses about 3.6B of its 21B parameters, but any token can be routed to any expert, so all 21B must be in memory. Memory follows the total; speed follows the active count, which is why it runs faster than a dense model of the same size.

Sources

  1. gpt-oss-20b model card and config.json — Hugging Face

Leadership

A word from the founder — on why the brain is the blueprint, and why the next decade of intelligence will be built here.

"The brain is the universe's only proof that general intelligence is possible. We treat it as the blueprint."

From cortical interfaces to photonic silicon, every program at NeuroGenesys exists to answer one question: how does intelligence arise — and how do we build it safely.

Will Schulz

Will Schulz

Founder, NeuroGenesys • AW3 Technology