Can I run gpt-oss-20b on the GeForce RTX 4090?
Runs greatMXFP4 fits in VRAM with 10.5 GB to spare: Runs great, 225.2 tok/s measured at 2k context (1 run; 8k estimate 198.3 tok/s, 158.7–238.0, calibrated estimate ±20%).
24 GB VRAM · 1,008.0 GB/s · FP16 82.6 TFLOPS. Assumes 32 GB of DDR5-5600 system RAM, Windows with this GPU driving the display, 8k context and an f16 KV cache. The GeForce RTX 3090 Ti has the same memory setup (24 GB, 1,008.0 GB/s), so its generation-speed estimate is the same; only prompt processing differs. Prompt processing: about 11,564 tok/s (6,938–16,190, rough estimate ±40%) here vs about 5,600 tok/s (3,360–7,840, rough estimate ±40%) on the GeForce RTX 3090 Ti.
Every quant of gpt-oss-20b on the GeForce RTX 4090
| Quant | File size | Verdict | Speed | Memory | Runs as | Notes |
|---|---|---|---|---|---|---|
| MXFP4baseline | 12.11 GB | Runs great | 225.2 tok/s8k estimate 198.3 tok/s (158.7–238.0, calibrated estimate ±20%)measured (1 run, 2k context) | 13.5 / 24.0 GB | Full GPU | — |
Reasoning models spend extra tokens thinking, so their speed thresholds are 1.5× stricter (30 / 12 / 3 tok/s).
Where the memory goes at MXFP4
- Weights
- 12.1 GB
- KV cache
- 0.2 GB
- Compute buffer
- 0.6 GB
- OS reserve
- 0.6 GB
- Free
- 10.5 GB
Context length vs. KV cache
| Context | KV f16 | KV q8_0 | KV q4_0 |
|---|---|---|---|
| 4k | 12.7 GBRuns great est. 207.4 tok/s166.0–248.9calibrated estimate ±20% | 12.7 GBRuns great est. 212.0 tok/s169.6–254.4calibrated estimate ±20% | 12.7 GBRuns great est. 214.5 tok/s171.6–257.4calibrated estimate ±20% |
| 8k | 12.9 GBRuns great 225.2 tok/s8k estimate 198.3 tok/s (158.7–238.0, calibrated estimate ±20%)measured (1 run, 2k context) | 12.8 GBRuns great est. 206.8 tok/s165.4–248.1calibrated estimate ±20% | 12.7 GBRuns great est. 211.6 tok/s169.3–254.0calibrated estimate ±20% |
| 16k | 13.2 GBRuns great est. 182.3 tok/s145.8–218.7calibrated estimate ±20% | 13.0 GBRuns great est. 197.1 tok/s157.7–236.5calibrated estimate ±20% | 12.9 GBRuns great est. 206.1 tok/s164.9–247.3calibrated estimate ±20% |
| 32k | 13.7 GBRuns great est. 156.9 tok/s125.5–188.3calibrated estimate ±20% | 13.3 GBRuns great est. 180.2 tok/s144.2–216.3calibrated estimate ±20% | 13.1 GBRuns great est. 195.9 tok/s156.7–235.1calibrated estimate ±20% |
| 64k | 14.8 GBRuns great est. 122.7 tok/s98.2–147.3calibrated estimate ±20% | 14.1 GBRuns great est. 153.9 tok/s123.1–184.7calibrated estimate ±20% | 13.7 GBRuns great est. 178.2 tok/s142.6–213.9calibrated estimate ±20% |
| 128k | 17.0 GBRuns great est. 85.5 tok/s68.4–102.6calibrated estimate ±20% | 15.5 GBRuns great est. 119.1 tok/s95.3–142.9calibrated estimate ±20% | 14.7 GBRuns great est. 151.0 tok/s120.8–181.2calibrated estimate ±20% |
S = Runs great · A = Runs well · B = Runs slowly · F = Won't run
At MXFP4 the verdict stays Runs great up to 128k context with an f16 KV cache, and up to 128k with q8_0.
Estimated speed
- Generation
- 225.2 tok/s measured at 2k context (1 run; 8k estimate 198.3 tok/s, 158.7–238.0, calibrated estimate ±20%)
- Prompt processing
- about 11,564 tok/s (6,938–16,190, rough estimate ±40%)
Measured on this exact combination
Public benchmarks we calibrate against. Their conditions (context, backend, flags) can differ from the estimates above.
| Hardware | Quant | Backend | Context | Prompt (tok/s) | Generation (tok/s) | Flags | Source | Measured |
|---|---|---|---|---|---|---|---|---|
| GeForce RTX 4090 | MXFP4 | llama.cpp | 2k | 8,078.0 | 225.2 | — | github.com | 2025-08-15 |
If this is not enough
A larger model that also runs well on the GeForce RTX 4090
Runs greatQwen3.5 35B-A3B: Runs great, est. 220.6 tok/s (176.5–264.7, calibrated estimate ±20%)
How to run it
Commands for the MXFP4 file. Both tools download from Hugging Face on first run.
File: gpt-oss-20b-MXFP4.gguf (12.11 GB) from ggml-org/gpt-oss-20b-GGUF.
llama-server -hf ggml-org/gpt-oss-20b-GGUF:MXFP4 -c 8192 -ngl all -fa on- -ngl all loads every layer on the GPU.
- -fa on enables flash attention (needed for KV cache quantization).
- --cache-type-k q8_0 --cache-type-v q8_0 shrinks the KV cache to 0.11 GB at 8k context.
PowerShell (quit the Ollama tray app first):
$env:OLLAMA_CONTEXT_LENGTH="8192"; ollama serve
ollama run hf.co/ggml-org/gpt-oss-20b-GGUF:MXFP4- Ollama defaults to 4k context on GPUs under 24 GB. Set OLLAMA_CONTEXT_LENGTH when starting the server, or /set parameter num_ctx inside the chat.
/set parameter num_ctx 8192
Related pages
Guide: How much VRAM do local LLMs need? 8–32 GB tiers (2026)
Other models on the GeForce RTX 4090
gpt-oss-20b on other hardware
Frequently asked questions
Can I run gpt-oss-20b on the GeForce RTX 4090?
MXFP4 fits in VRAM with 10.5 GB to spare: Runs great, 225.2 tok/s measured at 2k context (1 run; 8k estimate 198.3 tok/s, 158.7–238.0, calibrated estimate ±20%). MXFP4 needs 12.9 GB at 8k context; this setup has 23.4 GB of usable memory and 28.0 GB of free system RAM.
How much context can gpt-oss-20b use on the GeForce RTX 4090?
At MXFP4 the verdict stays Runs great up to 128k context with an f16 KV cache (3.2 GB of KV) and up to 128k with a q8_0 KV cache (1.7 GB). The model supports up to 128k.
Which quant should I use, and how fast is it?
MXFP4 (12.11 GB) is the only tracked file: Runs great, 225.2 tok/s measured at 2k context (1 run; 8k estimate 198.3 tok/s, 158.7–238.0, calibrated estimate ±20%).
Speeds are estimates from memory bandwidth, calibrated against public benchmarks, and each one comes with an error band and a confidence label. Real results vary with drivers, backend, context length and thermals.