Can I run gpt-oss 120B locally?

gpt-oss 120B ships in MXFP4, a 4-bit format, so there is one main GGUF file of about 59 GB. It is a mixture-of-experts model with about 5.1B active parameters per token, which makes it fast for its size once it fits in memory.

Half of its 36 layers use a 128-token sliding window, so the KV cache stays small: about 0.3 GB at 8K tokens and about 1.1 GB at 32K.

Estimates with default assumptions: 10% runtime overhead, ~90% usable VRAM (~72% on Macs), FP16 KV cache, one sequence. Model data synced from Hugging Face on 2026-11-23. Methodology.

gpt-oss 120B (MoE): memory by quantization

117B parameters, 36 layers. Weights are real GGUF file sizes from ggml-org/gpt-oss-120b-GGUF.

QuantizationWeightsTotal at 8K contextTotal at 32K context
MXFP459.0 GB65.2 GB66.1 GB

Which hardware runs gpt-oss 120B (MoE)?

Highest-quality quantization that fits fully. “Offload” means it runs only with part of the model in system RAM (64 GB assumed).

Hardware8K context32K context
NVIDIA GeForce RTX 4090Offload MXFP4 (~11 layers on GPU)Offload MXFP4 (~11 layers on GPU)
NVIDIA GeForce RTX 5090Offload MXFP4 (~15 layers on GPU)Offload MXFP4 (~15 layers on GPU)
2× NVIDIA GeForce RTX 5090Offload MXFP4 (~30 layers on GPU)Offload MXFP4 (~29 layers on GPU)
NVIDIA RTX PRO 6000 Blackwell (96 GB)MXFP4 (65.2 GB)MXFP4 (66.1 GB)
Mac Studio M5 Max (64 GB)Doesn’t fitDoesn’t fit
Mac Studio M5 Max (128 GB)MXFP4 (65.2 GB)MXFP4 (66.1 GB)
NVIDIA H100 SXM (80 GB)MXFP4 (65.2 GB)MXFP4 (66.1 GB)

Try your own setup

Model
Your hardware
Context length (tokens)
Assumptions

Result

Fits fully

gpt-oss 120B (MoE) · MXFP4 · 32K → Mac Studio M5 Max (128 GB). 26.1 GB of headroom.

Bar: memory needed vs. usable memory (marker).
Memory breakdown
ComponentMemory
Weightsactual GGUF file: MXFP459.0 GB
KV cache32K tokens × 1 seq, F161.13 GB
Runtime overhead10% of weights5.90 GB
Total needed66.1 GB
Usable on your hardware72% of 128.0 GB92.2 GB
  • Mixture-of-experts: all experts must be in memory, so memory uses total parameters. Speed depends on active parameters.

Run it

Starting point, not a guarantee. Downloads the GGUF from Hugging Face.

llama.cpp
llama-server -hf ggml-org/gpt-oss-120b-GGUF:MXFP4 -c 32768 -ngl 999
ollama
OLLAMA_CONTEXT_LENGTH=32768 ollama serve
ollama run hf.co/ggml-org/gpt-oss-120b-GGUF:MXFP4
Model details
Parameters
117B (5.1B active)OpenAI gpt-oss model card: 117B total parameters
Layers
36
Attention
Sliding-window + global layers18× window 128 (8 KV × 64) · 18× full (8 KV × 64)
Max context
128K
License
apache-2.0
Config source
openai/gpt-oss-120bsynced 2026-10-18

Questions

Does gpt-oss 120B fit on an RTX 4090 or 5090?

Not fully: it needs about 65 GB with overhead. It runs with partial CPU offload (about 11 of 36 layers on a 4090, 15 on a 5090). For a mixture-of-experts model, keeping expert weights in RAM with llama.cpp’s --n-cpu-moe is usually faster than offloading whole layers.

What hardware runs it fully on the GPU?

A single 80 GB H100 or a 96 GB RTX PRO 6000. On Macs, 128 GB of unified memory is enough with the default 72% usable; 64 GB is not.

Should I quantize it further?

Usually not: MXFP4 is the format the model was released in. The calculator lists only the MXFP4 file for this model.