VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

How to Deploy gpt-oss 20B Locally

gpt-oss 20B is a small open-weight MoE that OpenAI released in August 2025, and it uses only 3.6B parameters per token. A single 16GB card can run it with the full 128K context, at about 90 to 130 tokens/s. Its expert weights ship in a 4-bit format, so every quant is almost the same size and picking one takes no agonizing; the thing to watch is that it only accepts OpenAI's own harmony chat format.

gpt-oss 20B details

  • Min VRAM at 4-bit13 GB · 8K
  • Parameters20.9B
  • Active params3.6B
  • Max context128K
Architecture
MoE
Experts offloaded
3 GB VRAM + 11 GB RAM
License
Apache-2.0
Launch date
Aug 5, 2025
Vendor
OpenAI
Hugging Face repo
openai/gpt-oss-20b
Ollama tag
gpt-oss:20b
Layers
24
Hidden size
2,880
KV heads
8
Head dim
64

How much VRAM does gpt-oss 20B need for local deployment?

QuantizationWeightsGB8K contextGB32K contextGB128K context (max)GB
1-bit5.3est.6.57.29.6
2-bit8.3est.9.610.212.6
3-bit11.5GGUF12.813.415.8
4-bit11.6GGUF12.913.515.9
5-bit11.7GGUF1313.616
8-bit12.1GGUF13.41416.4
BF16/FP1613.8GGUF15.115.718.1

Full calculation rules are on the Methodology page.

Can a single GPU run gpt-oss 20B?

Yes, a single 16GB card holds it entirely, with the full 128K window. Its expert weights ship in a 4-bit format, so every quant lands around 12 GB and the level you pick barely changes memory use. On 16GB or more, just run 8-bit: the RTX 5060 Ti 16GB does about 90 tokens/s and a 24GB RTX 3090 around 130. 12GB is the borderline case: 4-bit with 8K fits with almost nothing to spare, and if you want a longer window, use llama.cpp to move a few layers of experts into system RAM.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 16GB16 GB$37024 listings129.2128K
GeForce RTX 5060 Ti 16GB16 GB$86958 listings92.5128K
Tesla V100 32GB32 GB$89518 listings129.2128K
Radeon RX 7900 XTX24 GB$1,25029 listings132.5128K
GeForce RTX 309024 GB$1,799107 listings131.2128K
GeForce RTX 409024 GB$3,75868 listings134.9128K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,46420 listings65128K
RTX A600048 GB$4,89916 listings121128K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$7,27412 listings144.4128K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,54920 listings109.2128K
DGX Spark 128GBWhole system · 128 GB$8,24022 listings67.9128K
GeForce RTX 509032 GB$8,395123 listings160.6128K
RTX PRO 600096 GB$22,50011 listings160.6128K

Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.

What PC or server build do you need to run gpt-oss 20B locally?

eBay

GeForce RTX 5070 + Desktop DDR5

Home PC
Generation speed84.3t/s
Memory bandwidth96GB/s
GPU
GeForce RTX 507020 / 24 expert layers in 12 GB VRAM
$899
RAM
32 GB DDR5-60002 × 16 GB sticks
$450
CPU
AMD Ryzen 7 77008 cores / 16 threads · 2-channel
$212
Board
Gigabyte B650 EAGLE AX4 DIMM slots
$114
PSU
Corsair RM750e750 W
$70
Reference build price$1,745

Detailed calculation rules are on the Methodology page.

As an eBay Partner, VRAMGlass may be compensated if you buy through the eBay links on this page. The price you pay stays the same.

What to know before running gpt-oss 20B locally

  1. Every quant is almost the same size

    Its expert weights always stay in a 4-bit format (MXFP4, about 4.25 bits per parameter), so the GGUFs from 3-bit to 8-bit all fall between 11.5 and 12.1 GB, and even the FP16 one is only 13.8 GB. If you have the VRAM, just use 8-bit or FP16. The 1-bit and 2-bit rows in the table (5.3 and 8.3 GB) are estimated from parameter count; no files that small exist, and the speeds in the 2-bit rows of the single-GPU table are estimated from those sizes too. The real 2-bit file is about as big as the 3-bit one; Unsloth says the low quants only compress a few layers such as attention, and results are nearly identical to the original.

  2. It requires the harmony format

    OpenAI says it was trained only on the harmony format and won't work properly with other chat formats. Ollama and llama.cpp (with --jinja, which uses the model's built-in template) apply it automatically; mistakes usually come from building prompts by hand or using a front end that doesn't recognize the template. To hook up tool calling in vLLM, add --tool-call-parser openai --enable-auto-tool-choice.

  3. Reasoning effort and sampling parameters

    Reasoning effort has three levels, low, medium and high; just write “Reasoning: high” in the system prompt. In llama.cpp you can also set a default by passing reasoning_effort through --chat-template-kwargs. Low answers quickly; high thinks longer and outputs more tokens. OpenAI recommends temperature 1.0 and top_p 1.0.

  4. Long context adds almost no VRAM

    Half of its 24 layers only look at the most recent 128 tokens, and their cache doesn't grow with context; the native 4K context is extended to 128K with YaRN. So going from 8K to 128K, 4-bit VRAM rises only from 12.9 GB to 15.9 GB.

Launch commands

Ollama

  • Windows
  • macOS
  • Linux
Terminal
ollama run gpt-oss:20b

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
All on GPU
Terminal
llama-server -hf unsloth/gpt-oss-20b-GGUF:Q4_K_M -c 8192
MoE offloading

Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 11 GB needed).

Terminal
llama-server -hf unsloth/gpt-oss-20b-GGUF:Q4_K_M -c 8192 -ngl 99 \
  --cpu-moe

vLLM

  • Linux
  • NVIDIA
  • AMD
Terminal
vllm serve openai/gpt-oss-20b

MLX

  • Apple Silicon

On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.

Terminal
mlx_lm.server --model mlx-community/gpt-oss-20b-MXFP4-Q8

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the gpt-oss family

ModelTotal paramsActive params4-bit size
gpt-oss Safeguard 20BMoE20.9B3.6B11.6 GB
gpt-oss 120BMoE116.8B5.1B62.8 GB

About gpt-oss