gpt-oss-20b is OpenAI's open-weight reasoning model from August 2025, released under Apache 2.0. It is a mixture of experts with 21B parameters, of which about 3.6B work on each token, and it ships already quantized to MXFP4.
OpenAI built it to run within 16 GB of memory; we estimate about 13.5 GB with an 8K conversation. Half of its layers only look at the last 128 tokens, so even the full 128K tokens token window adds little cache memory.
Reasoning: low, medium or high in the system prompt.ollama run gpt-oss:20bIt must be used with OpenAI's harmony chat format. Ollama, LM Studio and recent llama.cpp builds apply it for you.
Last reviewed · How we calculate
gpt-oss:20bThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M the longest conversation this device can hold is about 78K tokens.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | 32K | Quality |
|---|---|---|---|---|---|---|
| Q4_K_Mrecommended | 12.7 GB | 13.4 GB | 13.5 GB | 13.7 GB | 14.1 GB | Small loss, best default |
| Q5_K_M | 14.9 GB | 15.6 GB | 15.7 GB | 15.9 GB | 16.3 GB | Very close to Q8 |
| Q6_K | 17.1 GB | 17.9 GB | 18.0 GB | 18.2 GB | 18.6 GB | Hard to tell from Q8 |
| Q8_0 | 22.2 GB | 22.9 GB | 23.0 GB | 23.2 GB | 23.6 GB | Near full quality |
| F16 | 41.8 GB | 42.5 GB | 42.6 GB | 42.8 GB | 43.2 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Slow, uses RAM | Slow, uses RAM | about 16 tok/s | Doesn't fit | |
| RTX 3060 12GB | Slow, uses RAM | Slow, uses RAM | about 30 tok/s | Doesn't fit | |
| RTX 4070 12GB | Slow, uses RAM | Slow, uses RAM | about 35 tok/s | Doesn't fit | |
| RTX 4060 Ti 16GB | Runs well | Slow, uses RAM | about 43 tok/s | 78K | |
| Radeon RX 7600 XT 16GB | Runs well | Slow, uses RAM | about 43 tok/s | 78K | |
| RTX 5060 Ti 16GB | Runs well | Slow, uses RAM | about 67 tok/s | 78K | |
| Intel Arc A770 16GB | Runs well | Slow, uses RAM | about 83 tok/s | 78K | |
| Radeon RX 9070 XT 16GB | Runs well | Slow, uses RAM | about 95 tok/s | 78K | |
| RTX 4070 Ti Super 16GB | Runs well | Slow, uses RAM | about 100 tok/s | 78K | |
| RTX 4080 Super 16GB | Runs well | Slow, uses RAM | about 109 tok/s | 78K | |
| RTX 5080 16GB | Runs well | Slow, uses RAM | about 143 tok/s | 78K | |
| RTX 3090 24GB | Runs well | Slow, uses RAM | about 139 tok/s | 128K, full | |
| Radeon RX 7900 XTX 24GB | Runs well | Slow, uses RAM | about 143 tok/s | 128K, full | |
| RTX 4090 24GB | Runs well | Slow, uses RAM | about 150 tok/s | 128K, full | |
| RTX 5090 32GB | Runs well | Runs well | about 266 tok/s | 128K, full | |
| Mac mini M4 16GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 24GB | Runs well | Won't run | about 41 tok/s | 113K | |
| Mac M4 Pro 48GB | Runs well | Runs well | about 41 tok/s | 128K, full | |
| Mac M4 Max 64GB | Runs well | Runs well | about 81 tok/s | 128K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 81 tok/s | 128K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run gpt-oss:20b
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkInstall Ollama 0.11 or newer and run ollama run gpt-oss:20b. The download is about 14 GB, already quantized to MXFP4 by OpenAI.
Yes. OpenAI designed it to run within 16 GB of memory, so 16GB cards such as the RTX 4060 Ti 16GB, 5060 Ti or 4080 run it fully on the GPU with a moderate context.
Put Reasoning: low, Reasoning: medium or Reasoning: high in the system prompt. Higher effort gives better answers on hard problems but uses more tokens and time.
OpenAI trained both gpt-oss models only on its harmony chat format, and they do not work correctly without it. Ollama, LM Studio and the Transformers chat template apply it automatically.
Yes. It is released under Apache 2.0, with OpenAI's usage policy on top.
About 13.5 GB at Q4_K_M with an 8K conversation, 15.7 GB at Q5_K_M, 23.0 GB at Q8_0 and 42.6 GB at full F16 precision. Longer conversations add about 0.2 GB for every 8,000 tokens.
Only partly. It doesn't fit in 8 GB, so part of it moves to system RAM and speed drops to roughly 16 tokens a second.
Only partly. It doesn't fit in 12 GB, so part of it moves to system RAM and speed drops to roughly 30 tokens a second.
Yes. The RTX 4060 Ti 16GB runs gpt-oss 20B fully on the GPU at Q4_K_M at about 43 tokens a second.
Yes. A Mac with 24 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.