Skip to content

Try local GPU's before you buy them at Vast.ai

Vast.ai

The local AI publication

OpenAI · Released August 2025

gpt-oss-20b

What it takes to run gpt-oss-20b locally: memory by quantization, the GPUs that handle it, and how fast it runs.

Updated

Parameters
20.9B (3.6B active)
Architecture
Mixture of experts
Context
128K tokens
License
Apache 2.0 license
Memory at MXFP4
~15GB

What do you need to run gpt-oss-20b?

gpt-oss-20b needs about 15GB of VRAM at MXFP4 with 8K context (14GB for the weights plus KV cache and overhead). The smallest GPU that can hold it is a 16GB card like the RTX 4060 Ti 16GB, with little memory to spare. For a good balance of price and speed we recommend the RTX 3090 (~120 tokens/sec). Because it is a mixture-of-experts model with 3.6B active parameters, it generates text much faster than a dense model of the same size, and it tolerates partial CPU offload better.

See the full hardware guide for gpt-oss-20b

What to buy

GPUs for gpt-oss-20b

Full hardware guide

Cheapest that runs it

RTX 4060 Ti 16GB

16GB · ~$380 used

Quant
MXFP4
Speed (est.)
~51 tok/s
Fits, tight

Best value

RTX 3090

24GB · ~$1,050 used

Quant
MXFP4
Speed (est.)
~120 tok/s
Runs well

Fastest

RTX 5090

32GB · ~$4,300

Quant
MXFP4
Speed (est.)
~190 tok/s
Runs well

Speeds are estimates at the quantization shown with 8K context. We may earn a commission when you buy through these links. Learn more.

Memory

gpt-oss-20b VRAM requirements by quantization

gpt-oss-20b ships natively in MXFP4, so there is no need to pick a quantization. Totals include the KV cache for the context length shown plus runtime overhead.

Memory needed for gpt-oss-20b at each quantization level
QuantizationQualityWeightsTotal @ 8K ctxTotal @ 32K ctx
MXFP4NativeDefault14 GB15 GB16 GB

KV cache note: 24 layers alternate between a 128-token sliding window and full attention, so only the 12 full-attention layers grow with context: 2 x 12 x 8 KV heads x 64 dims x 2 bytes = 24,576 bytes (24 KiB) per token, about 3.2GB at the full 128K. The sliding layers add a negligible fixed buffer.

Performance

How fast gpt-oss-20b runs

All GPUs

Single-user generation speed at 8K context on popular GPUs that fit the model entirely in memory, at the best quantization each can hold. Measured values require the exact hardware, model, and quantization at that context; other rows use estimates.

  1. RTX 5090

    MXFP4 · 32GB · 8K context

    ~190tok/s

  2. RTX PRO 6000

    MXFP4 · 96GB · 8K context

    ~190tok/s

  3. RTX PRO 5000 72GB

    MXFP4 · 72GB · 8K context

    ~160tok/s

  4. RTX 4090

    MXFP4 · 24GB · 8K context

    ~135tok/s

  5. RTX 5080

    MXFP4 · 16GB · 8K context

    ~130tok/s

  6. RTX 6000 Ada

    MXFP4 · 48GB · 8K context

    ~130tok/s

  7. RTX 5070 Ti

    MXFP4 · 16GB · 8K context

    ~125tok/s

  8. RTX 3090

    MXFP4 · 24GB · 8K context

    ~120tok/s

  9. RTX 4080 Super

    MXFP4 · 16GB · 8K context

    ~110tok/s

  10. M5 Ultra 512GB

    MXFP4 · 512GB · 8K context

    ~105tok/s

Estimated (method)

Measured

gpt-oss-20b benchmarks

Benchmark database
  • RTX PRO 5000 Blackwell 48GBgpt-oss-20b · MXFP4 · llama.cpp · CUDA · About 4K tokens already in the cache · Build: llama-bench with CUDA 12.8; exact build not statedHardware proxy for RTX PRO 5000 72GB
    Source notes

    48GB card, 4K context.

    The tested card is the 48GB RTX PRO 5000 Blackwell. The 72GB model has the same GPU configuration, 384-bit bus and 1,344 GB/s of bandwidth, so single-stream generation should match, but these numbers were not measured on a 72GB card. Hardware Corner says it measures with llama.cpp llama-bench on Ubuntu 24.04 and CUDA 12.8, using Unsloth Q4_K_XL GGUFs for the Qwen and Llama models (https://www.hardware-corner.net/gpu-ranking-local-llm/). Figures are the page's 4K context column, so generation runs with about 4K tokens already in the cache. The page says the benchmarks were updated in March 2026 but gives no day, so the 1st is used.

    215 tok/s Hardware Corner: RTX Pro 5000 Blackwell LLM Performance
  • MacBook Pro M4 Max 64GBgpt-oss-20b · MXFP4 · llama.cpp · Metal · pp2048 / tg128 · Context depth not reported · Build: 5da766496 (7030)Hardware proxy for M4 Max 128GB
    Source notes

    Metal on a MacBook Pro with M4 Max and 64GB, not a Mac Studio. The 64GB M4 Max has the same 40-core GPU and 546 GB/s as the Mac Studio M4 Max 128GB. Build 5da766496 (7030), -ub 2048. ggml-org gpt-oss-20b MXFP4, 11.27 GiB. Posted by spamshaker: https://github.com/ggml-org/llama.cpp/discussions/16578#discussioncomment-14980101 (2025-11-16).

    Individual user comments in the DGX Spark discussion that compare gpt-oss on several machines. Each result names its backend, build and comment link. All runs use llama-bench with flash attention on.

    120 tok/s llama.cpp discussion #16578: Performance of llama.cpp on NVIDIA DGX Spark
  • RX 9060 XT 16GBgpt-oss-20b · MXFP4 · llama.cpp · Vulkan · pp512 / tg128 · Context depth not reported · Build: Various builds; the commit is listed in each result
    Source notes

    Flash attention on (-fa 1), RADV 26.2.2, build f1cee99. From ozdogar2's HIP vs Vulkan table: https://github.com/ggml-org/llama.cpp/discussions/15021#discussioncomment-18709095 (2026-10-02).

    Scoreboard maintained by netrunnereve, read on 2026-10-14. Scoreboard rows are llama-bench on Llama 2 7B Q4_0 (3.56 GiB) with all layers on the GPU, pp512 and tg128. genTps is the flash-attention-off tg128 column; the flash-attention-on figure is in each result's notes. A few extra results from user comments are added at the end, each with its own link.

    105 tok/s llama.cpp discussion #10879: Performance of llama.cpp with Vulkan
  • RX 9060 XT 16GBgpt-oss-20b · MXFP4 · llama.cpp · ROCm (HIP) · pp512 / tg128 · Context depth not reported · Build: Various builds; the commit is listed in each result
    Source notes

    Flash attention on (-fa 1), ROCm 7.2.4, build f1cee99. Same comment (discussioncomment-18709095); Vulkan on the same card gave 105.8 t/s.

    Scoreboard read on 2026-10-14. Scoreboard rows are llama-bench on Llama 2 7B Q4_0 (3.56 GiB) with all layers on the GPU, pp512 and tg128. genTps is the flash-attention-off tg128 column; the flash-attention-on figure is in each result's notes. Newer results from user comments are added at the end, each with its own link.

    93 tok/s llama.cpp discussion #15021: Performance of llama.cpp on AMD ROCm (HIP)
  • DGX Sparkgpt-oss-20b · MXFP4 · llama.cpp · CUDA · pp2048 / tg128 · Context depth not reported · Build: c7b7db044 (7067)
    Source notes

    CUDA on DGX Spark, build c7b7db044 (7067), -ub 2048. Same comment as the M4 Max result (discussioncomment-14980101).

    Individual user comments in the DGX Spark discussion that compare gpt-oss on several machines. Each result names its backend, build and comment link. All runs use llama-bench with flash attention on.

    86 tok/s llama.cpp discussion #16578: Performance of llama.cpp on NVIDIA DGX Spark
  • DGX Sparkgpt-oss-20b · MXFP4 · llama.cpp · CUDA · pp2048 / tg32 · 0-token starting context · Build: 11fb327bf (build 7941)
    Source notes

    ggml-org/gpt-oss-20b-GGUF, 11.27 GiB. tg32 at 32K depth: 61.65 t/s.

    Published by ggerganov in commit 3795cc1 (PR #19359). DGX Spark (GB10), Ubuntu with kernel 6.11, CUDA 13.0, driver 580.95.05. llama-bench with all layers on the GPU, -ub 2048, flash attention on, mmap off and direct I/O on. genTps is tg32 at zero context depth and promptTps is pp2048; the source also lists results at 4K to 32K depth.

    83 tok/s llama.cpp repository: benches/dgx-spark/dgx-spark.md
  • RTX 4060 Ti 16GBgpt-oss-20b · MXFP4 · llama.cpp · CUDA · About 4K tokens already in the cache · Build: llama-bench with CUDA 12.8; exact build not stated
    Source notes

    4K context. 57.8 t/s at 16K and 31.1 t/s at 128K.

    Hardware Corner says it measures with llama.cpp llama-bench on Ubuntu 24.04 and CUDA 12.8, using Unsloth Q4_K_XL GGUFs for the Qwen models (https://www.hardware-corner.net/gpu-ranking-local-llm/). The figures here are the page's 4K context column, so generation runs with about 4K tokens already in the cache and is a few percent slower than a short-prompt tg128 run. The page says the benchmarks were updated in March 2026 but gives no day, so the 1st is used.

    63 tok/s Hardware Corner: RTX 4060 Ti 16GB LLM Performance

Overview

About gpt-oss-20b

gpt-oss-20b is OpenAI's small open-weight reasoning model, a 21B mixture-of-experts with 3.6B active parameters whose expert weights ship natively in 4-bit MXFP4. OpenAI has not released a successor, and it remains one of the best reasoning and tool-calling models that fits a 16GB GPU. The native weights take about 14GB, so 16GB cards and Macs with 24GB or more run it fully in memory, and 12GB cards run it with a little CPU offload. Reasoning effort is adjustable (low, medium, high) but cannot be turned off.

Strengths

  • +Strong math, reasoning, and tool calling for a model that fits 16GB
  • +Ships in native MXFP4, so there is no quantization quality loss to manage
  • +Very fast: 3.6B active parameters and a tiny KV cache (24 KiB per token)
  • +Apache 2.0 license

Weaknesses

  • −Thin world knowledge and more hallucination than dense models of similar size
  • −Reasoning cannot be disabled, which adds latency to simple requests
  • −Text only, and it relies on the harmony chat format, which some tools mishandle
ReasoningCodingAgents & toolsMathChatReasoning model

Setup

How to run gpt-oss-20b

Ollama
$ ollama run gpt-oss:20b
llama.cpp
$ llama-server -hf ggml-org/gpt-oss-20b-GGUF -c 8192 -ngl 99
MLX (Mac)
$ mlx_lm.chat --model mlx-community/gpt-oss-20b-MXFP4-Q8

Weights: openai/gpt-oss-20b · GGUF: ggml-org/gpt-oss-20b-GGUF

Alternatives

All models

Frequently asked questions

How much VRAM do you need to run gpt-oss-20b?

About 15GB at MXFP4 with 8K tokens of context: 13.8GB of weights, 0.2GB of KV cache, and 1.0GB of runtime overhead. Higher-precision quants and longer contexts need more; see the table above.

What is the cheapest GPU that can run gpt-oss-20b?

The smallest card in our database that can hold it is the RTX 4060 Ti 16GB (16GB), at MXFP4 with little memory to spare, generating ~51 tokens/sec.

Is gpt-oss-20b free for commercial use?

gpt-oss-20b is released under the Apache 2.0 license. That is a permissive license, so commercial use is allowed.

How long a context does gpt-oss-20b support?

Up to 131,072 tokens (128K). Long contexts need a lot of extra memory for the KV cache, so most local setups run 8K to 32K.

Sources: gpt-oss-20b model card (Hugging Face), OpenAI: Introducing gpt-oss. Capability score basis: Placed between the Qwen3 32B and gpt-oss-120b anchors from its Artificial Analysis Intelligence Index v3 standing at high reasoning effort (October 2025).