OpenAI · released 2025-08-04
gpt-oss-20b
OpenAI's small open-weight reasoning MoE, about 13 GB in its native MXFP4 format, so it runs on 16 GB GPUs and Macs.
- Parameters
- 21B
- Active / token
- 3.6B
- Context
- 128K
- Memory at Q4
- 12.1 GB
- License
- apache-2.0
- Images
- No
- Thinking mode
- Yes
Cheapest ways to use it $0.03 in / $0.14 out per 1M tokens via DeepInfra (10 providers) · or free on RTX 4060 Ti 16GB or better
Official size: 21B total / 3.6B active. We size memory from the actual files on Hugging Face.
Get started
1 · Try it now
Use via API from $0.03/1M on DeepInfraFree online chats are the quickest way to see if a model suits you before downloading anything.
2 · Download the files
You’ll need about 12.1 GB of memory at 4-bit. Check your machine →
3 · Run it on your machine
Will it run on my computer?
gpt-oss-20b needs roughly 12.1 GB of GPU memory at the usual Q4 quality, but only 3.6B parameters are used per token, so it runs faster than its size suggests and copes better with spilling into system RAM. Check your exact machine →
| Machine | Best file | Fit | Est. speed |
|---|---|---|---|
| RTX 4060 | Q4_K_M | Spills to RAM | ~32 tok/s · Fast |
| RTX 3060 12GB | Q4_K_M | Spills to RAM | ~71 tok/s · Very fast |
| RTX 4060 Ti 16GB | Q4_K_M | Fits in memory | ~70 tok/s · Very fast |
| RTX 3090 | Q4_K_M | Fits in memory | ~154 tok/s · Very fast |
| RTX 4090 | Q4_K_M | Fits in memory | ~160 tok/s · Very fast |
| RTX 5090 | Q4_K_M | Fits in memory | ~207 tok/s · Very fast |
| M4 · 16 GB | — | Too big | — |
| M4 Pro · 48 GB | Q4_K_M | Fits in memory | ~59 tok/s · Fast |
| M4 Max · 128 GB | Q4_K_M | Fits in memory | ~101 tok/s · Very fast |
| M3 Ultra · 512 GB | Q4_K_M | Fits in memory | ~131 tok/s · Very fast |
| DGX Spark | Q4_K_M | Fits in memory | ~67 tok/s · Very fast |
| Ryzen AI Max+ 395 | Q4_K_M | Fits in memory | ~53 tok/s · Fast |
PCs assume 64 GB system RAM. Estimates, not measurements — method.
Ways to run it
Use it through an API 10 providers
Heads up: providers serve this model at different compression levels (bf16, fp4). 4-bit versions are cheaper to run and can be slightly worse.
| Provider | Input / 1M | Output / 1M | Stated precision | Context | |
|---|---|---|---|---|---|
| DeepInfra | $0.03 $0.015 cached | $0.14 | bf16 | 128K | source ↗ |
| Featherless | $0.04 | $0.15 | not stated | 128K | source ↗ |
| SiliconFlow | $0.04 | $0.18 | not stated | 128K | source ↗ |
| Parasail | $0.04 $0.02 cached | $0.20 | not stated | — | source ↗ |
| OVHcloud AI Endpoints | $0.05 | $0.18 | fp4 | 128K | source ↗ |
| Google Vertex AI (Model Garden MaaS) | $0.07 $0.007 cached | $0.25 | not stated | — | source ↗ |
| Amazon Bedrock | $0.07 | $0.30 | not stated | — | source ↗ |
| Replicate | $0.09 | $0.36 | not stated | — | source ↗ |
| Groq | $0.17 $0.09 cached | $0.36 | not stated | 128K | source ↗ |
| Cloudflare Workers AI | $0.20 | $0.30 | not stated | — | source ↗ |
Prices in USD from each provider’s own pricing page, checked 2026-12-04. Cheapest highlighted.
Rent a GPU and run it yourself
| Setup | From | Per hour | File | Est. speed | Per 1M tokens* |
|---|---|---|---|---|---|
| 1× RTX A5000 24GB | RunPod community | $0.16 | 8-bit 12.1 GB | ~138 tok/s | $0.32 |
| 1× RTX 3090 24GB | Vast.ai marketplace | $0.21 | 8-bit 12.1 GB | ~154 tok/s | $0.38 |
| 1× RTX 3090 Ti 24GB | Vast.ai marketplace | $0.27 | 8-bit 12.1 GB | ~160 tok/s | $0.47 |
| 1× L4 24GB | Vast.ai marketplace | $0.32 | 8-bit 12.1 GB | ~72 tok/s | $1.24 |
*For one conversation at a time. Serving many users at once (batching, e.g. with vLLM) cuts the cost per token by 10× or more, which is how API providers get so cheap. Rental prices checked 2026-12-04. All GPU prices →
On your own machine
Free after the hardware. See the table above for which GPUs and Macs can run it, or check your exact machine. Easiest apps: Ollama and LM Studio.
Memory by quality level
| File | Quality | Weights | + 8K context | Total |
|---|---|---|---|---|
| Q3_K_M | Noticeably worse | 10.2 GB | 0.1 GB | 11.2 GB |
| Q4_K_M | Good — the usual pick | 11.1 GB | 0.1 GB | 12.1 GB |
| Q5_K_M | Very close to full | 11.1 GB | 0.1 GB | 12.1 GB |
| Q6_K | Near lossless | 11.1 GB | 0.1 GB | 12.1 GB |
| Q8_0 | Practically lossless | 11.1 GB | 0.1 GB | 12.1 GB |
| FP16 | Full precision | 11.1 GB | 0.1 GB | 12.1 GB |
Ships natively in MXFP4 (~4.25 bits), so the native file is already about Q4-sized.
Test answers
gpt-oss-20b is queued for our test suite. See tested models →