gpt-oss-120b VRAM requirements

gpt-oss-120b needs about 67.7 GB of VRAM at MXFP4 with 8K context, so it needs an 80 GB card such as the A100 80GB or the H100 SXM; a 24 GB card is too small. gpt-oss-120b has 116.8B parameters, of which about 5.1B are used per token; all 128 experts still have to be in memory. With one request it needs 240 GB at FP16/BF16. The published MXFP4 weights take 60.8 GB; llama.cpp's measured MXFP4 GGUF is 59.0 GB. It does not fit on a 24 GB card at MXFP4; the smallest setup here that holds it with an 8K context is the A100 80GB.

67.7 GB at MXFP4 as published, 8K context, one request

MXFP4 GGUF file
59.0 GB
FP16 / BF16
240 GB
Published weights
60.8 GB
Smallest setup, MXFP4
A100 80GB
Open gpt-oss-120b in the calculator

Worked example: gpt-oss-120b with 32K tokens

Inputs: gpt-oss-120b · MXFP4 weights · 32,768 tokens of context · one request · FP16 KV cache

Weights (116.8B at MXFP4)
60.8 GB
KV cache (36 KB per token)
1.15 GB
Buffers and runtime (0.5 GB + 10%)
6.69 GB
Total
68.6 GB

The smallest setup here that holds it is the A100 80GB, with about 11.4 GB to spare. Change the inputs in the calculator

Can I run gpt-oss-120b on…

What makes gpt-oss-120b's memory use different

Its 18 sliding-window layers keep only the last 128 tokens (llama.cpp gives them 768 cells: the window plus a 512-token batch, rounded up to 256): at its 128K limit they hold 27 MB of cache instead of the 4.50 GB they would need with full attention.

Per token of context it adds 36 KB of FP16 cache; Mistral Medium 3.5 128B (127.7B), the nearest-sized model here with plain full attention, adds 352 KB, so gpt-oss-120b needs 10% as much.

As a mixture-of-experts model it reads about 2.65 GB of its 60.8 GB MXFP4 weights per generated token (4%), so it writes like a much smaller model while needing memory for all of them.

Running gpt-oss-120b with experts in system RAM

llama.cpp's --n-cpu-moe N keeps the experts of the first N layers in RAM. For the measured MXFP4 GGUF with 32K tokens of context, the smallest N that fits each card, and the speed with 89.6 GB/s of system RAM. Plan the offload for another GPU. The VRAM here can sit below the 68.6 GB of the worked example because it counts the file's measured bytes, keeps the input embedding (token_embd) in system RAM as llama.cpp does and adds a flat 1 GB of buffers, where the estimate above adds 0.5 GB plus 10% to the preset's weights.

GPU--n-cpu-moeVRAM usedIn system RAMTokens/s
RTX 5060 Ti 16GB 16 GB 29 14.8 GB 46.4 GB 12–20
RTX 4090 24 GB 24 22.7 GB 38.5 GB 17–28
RTX 5090 32 GB 19 30.6 GB 30.6 GB 22–37

In system RAM counts the offloaded experts plus the input embedding (token_embd), which stays in RAM even with --n-cpu-moe 0.

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

gpt-oss-120b needs 67.7 GB at MXFP4 as published and 240 GB at FP16 with 8,192 tokens of context and one request. Each total below is the weights plus the FP16 KV cache and the runtime overhead (0.5 GB plus 10%), and each row opens the calculator with that setting. What the GGUF names mean.

PrecisionWeightsTotalSmallest setup
As published (MXFP4) 60.8 GB 67.7 GB A100 80GB
FP16 / BF16 218 GB 240 GB M3 Ultra Mac Studio (512 GB, 384 GB usable)

No GGUF rows: gpt-oss-120b's GGUF quants keep the experts in MXFP4, so every GGUF type, Q2_K to Q8_0, is about the size of the measured MXFP4 GGUF (59.0 GB), and a size worked out from bits per weight would describe a file that does not exist. Every figure on this page, the GPU pages and the "Can I run" pages is at MXFP4.

Fine-tuning gpt-oss-120b? gpt-oss-120b VRAM for LoRA, QLoRA and full training.

gpt-oss-120b GGUF files on Hugging Face

The 1 GGUF files llama.cpp picks for gpt-oss-120b with -hf <repo>:<QUANT>, with the bytes the Hugging Face file list reported on 2026-09-29. Each total is that file plus the FP16 KV cache and 0.5 GB + 10%, one request. "vs estimate" compares the file with the bits-per-weight size the table above uses.

QuantFileSizevs estimate 8K32K128K
MXFP4 ggml-org/gpt-oss-120b-GGUF 59.0 GB63,387,346,208 bytes −3% 65.8 GB66.7 GB70.4 GB

GB here is GiB (1024³ bytes), as everywhere on this site; Hugging Face shows the MXFP4 file as 63.4 GB, in 10⁹ bytes.

Which gpt-oss-120b GGUF fits a 16, 24, 32, 48 or 80 GB GPU or a Mac

From the file sizes above: the largest file that fits each machine with an 8K context and 0.5 GB left free, the longest context it then has room for, and the longest context for MXFP4 (59.0 GB). One request, FP16 KV cache, -np 1. Where nothing fits, the --n-cpu-moe table above keeps experts in system RAM. The MXFP4 file is 1.73 GB under its bits-per-weight estimate; the estimate tables and the llama-server command on this page count the estimate, so they show less context.

HardwareLargest GGUF, 8KIts longest contextMXFP4, longest context
RTX 5060 Ti 16GB None fits — No
RTX 4090 (24 GB) None fits — No
RTX 5090 (32 GB) None fits — No
L40S (48 GB) None fits — No
H100 SXM (80 GB) MXFP4, 59.0 GB 128K (full) 128K (full)
M4 Pro Mac (64 GB, 48 GB usable) None fits — No
M4 Max Mac (128 GB, 96 GB usable) MXFP4, 59.0 GB 128K (full) 128K (full)

Run gpt-oss-120b with llama.cpp or Ollama

llama-server -hf ggml-org/gpt-oss-120b-GGUF:MXFP4 -c 32768 --n-cpu-moe 24 -np 1

gpt-oss-120b-MXFP4.gguf, 63.4 GB, from ggml-org/gpt-oss-120b-GGUF (checked 2026-09-29). On the RTX 4090: 22.7 GB on the card, 38.5 GB in RAM, the --n-cpu-moe 24 row above. -np 1: one slot, so one 128-token window.

ollama run gpt-oss:120b

Ollama library tag gpt-oss:120b; its quant is Ollama's choice. Same context: /set parameter num_ctx 32768.

gpt-oss-120b at 8K, 32K and 128K (full) tokens of context

18 of its 36 layers use full attention and 18 keep a sliding window of 128 tokens. Each extra token of context adds 36 KB of FP16 cache per request once the sliding windows are full. The last column is the smallest setup here, one card or a group, that holds it at MXFP4. How the KV cache works.

ContextKV cache, FP16Total at MXFP4Smallest setup, MXFP4
8K tokens 315 MB 67.7 GB A100 80GB
32K tokens 1.15 GB 68.6 GB A100 80GB
128K tokens 4.53 GB 72.3 GB A100 80GB

How fast gpt-oss-120b writes

Tokens per second for one request with 8,192 tokens of context, estimated from memory bandwidth and the parameters read per token. A dash means it does not fit on one card. Try other settings in the speed calculator.

HardwareBandwidthMXFP4
RTX 3060 12GB 360 GB/s —
RTX 4090 1,008 GB/s —
RTX 5090 1,792 GB/s —
M4 Max Mac (128 GB) 546 GB/s 48–82
M3 Ultra Mac Studio (512 GB) 819 GB/s 69–121
H100 SXM 3,350 GB/s 214–417
H200 4,800 GB/s 270–548

Longest context on one GPU

How many tokens of context gpt-oss-120b fits on a single card with one request, an FP16 KV cache and 0.5 GB left free. "Full" means the model's whole context window fits.

GPUMemoryMXFP4
RTX 3060 12 GB No
RTX 4060 Ti 16GB 16 GB No
RTX 3090 / 4090 24 GB No
RTX 5090 32 GB No
A100 40GB 40 GB No
Mac, 64 GB unified memory 48 GB No
L40S / RTX 6000 Ada 48 GB No
A100 / H100 80GB 80 GB 128K (full)
Mac, 128 GB unified memory 96 GB 128K (full)
H200 141 GB 128K (full)
B200 180 GB 128K (full)

Model details

Parameters
116.8B (116,829,156,672)
Experts
128 routed experts, all loaded
Active per token
5.1B
Layers
18 of its 36 layers use full attention and 18 keep a sliding window of 128 tokens
Attention cache
8 KV heads × 64
Context length
131,072 tokens
Published weights
60.8 GB (MXFP4)
On Hugging Face
openai/gpt-oss-120b
Reported benchmarks
GPQA Diamond (no tools) 80.1 (reasoning high). Vendor-reported: from the maker’s own model card, not rerun here; read 2026-09-30.

Why this estimate looks this way

At MXFP4 as published and an 8K-token context, gpt-oss-120b uses 60.8 GB for weights, 315 MB for its FP16 KV cache and 6.61 GB for estimated runtime overhead, totaling 67.7 GB. The overhead is a 0.5 GB base plus 10% of weights and cache.

This is a mixture-of-experts model: all 128 experts contribute to the 116.8B parameters held in memory, even though only about 5.1B parameters run per token. Using only active parameters would understate VRAM.

Its attention layout matters for long context: 18 of its 36 layers use full attention and 18 keep a sliding window of 128 tokens. The FP16 cache grows by about 36 KB per additional token per request once the sliding windows are full.

The architecture and published checkpoint size come from the model's config.json and weight files. These are estimates rather than measured peak memory; inference engines can reserve extra buffers or preallocate the full configured cache.

gpt-oss-120b next to similar-sized models

The three models here closest to it in parameter count, at Q4_K_M with 8,192 tokens of context (MXFP4 checkpoints at MXFP4, as published).

ModelParametersTotalKV per tokenSmallest setup
gpt-oss-120b 116.8B, 5.1B active 67.7 GB, MXFP4 36 KB A100 80GB
Nemotron 3 Super 120B-A12B 123.6B, 12B active 77.2 GB 8 KB A100 80GB
Nemotron 3.5 Super VL 120B-A12B 124.5B, 12B active 77.7 GB 8 KB A100 80GB
Qwen3.5 122B-A10B 125.1B, 10B active 78.2 GB 24 KB A100 80GB

gpt-oss-120b VRAM questions

How much VRAM do I need to run gpt-oss-120b locally?

About 67.7 GB at MXFP4 with an 8K context and one request, by the bits-per-weight estimate, and 240 GB at BF16. The MXFP4 GGUF gpt-oss-120b-MXFP4.gguf in ggml-org/gpt-oss-120b-GGUF is 63,387,346,208 bytes (59.0 GB); with an 8K context it needs 65.8 GB. The smallest setup listed here that holds MXFP4 is the A100 80GB.

Can I run gpt-oss-120b on a 24 GB GPU?

Not entirely in VRAM. The RTX 4090 (24 GB) alone cannot hold it: the smallest listed GGUF, MXFP4 at 59.0 GB, needs 65.8 GB with an 8K context. With llama.cpp's --n-cpu-moe 24 and the MXFP4 GGUF it uses 22.7 GB on the card and 38.5 GB of system RAM at 32K tokens.

Which quantization of gpt-oss-120b fits in 16 GB of VRAM?

The RTX 5060 Ti 16GB alone cannot hold it: the smallest listed GGUF, MXFP4 at 59.0 GB, needs 65.8 GB with an 8K context. With llama.cpp's --n-cpu-moe 29 and the MXFP4 GGUF it uses 14.8 GB on the card and 46.4 GB of system RAM at 32K tokens.

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

The M4 Pro Mac (64 GB, 48 GB usable) alone cannot hold it: the smallest listed GGUF, MXFP4 at 59.0 GB, needs 65.8 GB with an 8K context. On the M4 Max Mac (128 GB, 96 GB usable), the largest listed GGUF that fits with an 8K context and 0.5 GB free is MXFP4 (59.0 GB), with its full 128K-token context. By default macOS lets the GPU use about 75% of unified memory.

How much more VRAM does gpt-oss-120b need for 32K or 128K tokens of context?

Its FP16 KV cache is 315 MB at 8K, 1.15 GB at 32K, 4.53 GB at 128K for one request, so 128K adds 4.22 GB over 8K, plus 10% overhead. A q8_0 cache (-ctk q8_0 -ctv q8_0) takes 2.40 GB at 128K. Its 18 sliding-window layers stop growing at 128 tokens, so only 18 layers keep adding cache.

Why does gpt-oss-120b use more VRAM than its GGUF file size?

The file holds only the weights. At MXFP4 with an 8K context: 59.0 GB of weights (the file's 63,387,346,208 bytes) + 315 MB of FP16 KV cache + 6.43 GB of compute buffers and runtime (0.5 GB + 10%) = 65.8 GB.

Does gpt-oss-120b need less VRAM because only 5.1B parameters are active?

No. All 128 experts stay loaded, so the MXFP4 file takes 59.0 GB. The active parameters decide speed: each generated token reads about 2.65 GB of them. With llama.cpp's --n-cpu-moe 24 and the MXFP4 GGUF it uses 22.7 GB on the card and 38.5 GB of system RAM at 32K tokens.

Badge for your model card

Paste it into a Hugging Face or GitHub README; it shows the MXFP4 total above and links to this page. FP16 badge.

gpt-oss-120b VRAM: 67.7 GB at MXFP4, 8K context

Numbers read from the model files on Hugging Face on . Compare it with other models in the reproducible model and GPU report.