gpt-oss-20b

OpenAI · open-weight model

21B · 3.6B activeCommercial use OK24 GB GPU / 32 GB Mac

OpenAI's smaller open-weight model, made for local and low-latency use. It reasons with adjustable effort (low, medium, high), handles tool calls well and can even be fine-tuned on consumer hardware.

What computer do you need?

At 4-bit (MXFP4 (official weights)), gpt-oss-20b needs about 13 GB of memory: 16 GB GPU (e.g. RTX 4070 Ti Super) or Mac, 32 GB.

FormatWeightsMemory needed*Fits on
BF16 / FP16
Full precision, as published. Best quality, biggest.
about 42 GBabout 47 GB1x 80 GB data-center GPU (H100) or Mac, 128 GB; CPU only: PC, 64 GB RAM (slow)
MXFP4 (official weights)
4-bit format the model was released in; the realistic size to plan for.
about 11 GBabout 13 GB16 GB GPU (e.g. RTX 4070 Ti Super) or Mac, 32 GB; CPU only: PC, 32 GB RAM (slow)
Q8_0
8-bit. Practically the same quality as full precision.
about 22 GBabout 26 GB32 GB GPU (e.g. RTX 5090) or Mac, 64 GB; CPU only: PC, 64 GB RAM (slow)
Q6_K
6-bit. Very close to full quality.
about 17 GBabout 20 GB24 GB GPU (e.g. RTX 4090) or Mac, 32 GB; CPU only: PC, 32 GB RAM (slow)
Q5_K_M
5-bit. Small quality loss, good balance.
about 15 GBabout 17 GB24 GB GPU (e.g. RTX 4090) or Mac, 32 GB; CPU only: PC, 32 GB RAM (slow)
Q4_K_M
4-bit. The usual default for running at home; noticeable but small loss.
about 13 GBabout 15 GB16 GB GPU (e.g. RTX 4070 Ti Super) or Mac, 32 GB; CPU only: PC, 32 GB RAM (slow)

* Estimate = parameters × bits ÷ 8, plus about 10% overhead and about 1.0 GB for an 8K-token conversation. Longer contexts need more. CPU-only means it runs from normal RAM without a graphics card, which works but is much slower. How we calculate this.

Mixture of experts: all 21B parameters must fit in memory (RAM + VRAM together), but only about 3.6B work on each token. That is why it runs much faster than a dense model of the same size, and why tools like llama.cpp can keep the experts in normal RAM and only the busy parts on the GPU.

The official weights are already 4-bit (MXFP4), so the normal download is close to the Q4 size below. It must be used with OpenAI's harmony chat format, which Ollama and LM Studio handle for you.

Key facts

Made byOpenAI
Hugging Faceopenai/gpt-oss-20b
GitHubopenai/gpt-oss
Hugging Face repo createdAugust 4, 2025
LicenseApache 2.0: Free for personal and commercial use, including modifying and redistributing it. Keep the license and copyright notices.
Parameters21B total, 3.6B active per token
ArchitectureMixture of experts (only part of the model works on each token)
Context length131,072 tokens
InputText → text output
LanguagesNot listed on the model card
Reasoning / thinking modeYes (thinking by default)
Popularity5,357,474 downloads in the last month, 5,351 likes (Hugging Face, November 25, 2026)
Works withOllama, LM Studio, vLLM, Transformers

Compare

Which hardware runs gpt-oss-20b?

How to run gpt-oss-20b

With Ollama (easiest)

  1. Install Ollama from ollama.com/download (Windows, Mac, Linux).
  2. Open a terminal and download + start the model:
ollama run gpt-oss:20b

Ollama picks a ready-made quantized version (usually 4-bit). Library page: ollama.com/library/gpt-oss.

With LM Studio (no terminal)

  1. Install LM Studio.
  2. Open the search (Discover) tab and search for gpt-oss-20b; pick a GGUF or MLX version that fits your memory (see the table above).
  3. Click Download, then Load and start chatting.

On a GPU server with vLLM

pip install -U vllm
vllm serve openai/gpt-oss-20b

This gives you an OpenAI-compatible API on port 8000. Big models need several GPUs (add --tensor-parallel-size N) and the exact flags from the model card.

Can I run gpt-oss-20b?

Can I run gpt-oss-20b on laptop or PC with 16 GB RAM?

Not fully. It needs about 13 GB even at 4-bit, more than the roughly 11 GB a Laptop or PC with 16 GB RAM can use.

Can I run gpt-oss-20b on an RTX 3060 12 GB?

Not fully. It needs about 13 GB even at 4-bit, more than the roughly 11.5 GB an RTX 3060 12 GB can use. Because it is a mixture-of-experts model, llama.cpp-based tools can keep part of it in normal RAM, which works but is slower.

Can I run gpt-oss-20b on an RTX 4090?

Yes. By our estimate it fits at Q6_K (about 20 GB) in the roughly 23.5 GB an RTX 4090 can use.

Can I run gpt-oss-20b on a Mac with 32 GB?

Yes. By our estimate it fits at Q6_K (about 20 GB) in the roughly 23 GB a Mac with 32 GB can use.

What is the minimum hardware for gpt-oss-20b?

At 4-bit it needs about 13 GB of memory: 16 GB GPU (e.g. RTX 4070 Ti Super) or Mac, 32 GB. These are estimates; longer conversations need more.

Sources

Similar-size models

← All open-source models