Model reference · open weights

gpt-oss

LLMs openai Text gen 7 builds Open weights 6.5M dl/mo

gpt-oss is an open-weight language model from OpenAI. gpt-oss-120b-essential (MXFP4) weighs 69.2 GB in vLLM, 65.2 GB of files; the smallest configuration that runs it is H100 80 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • gpt-oss-20b is an open-weight text generation model developed by OpenAI for low-latency and local use cases.
  • It features 20.9 billion parameters with 3.6 billion active parameters and supports English.
  • The model is licensed under Apache 2.0 and can run within 16GB of memory using MXFP4 quantization.

Summary of the openai/gpt-oss-20b model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byOpenAI
Released2025-08-04
Parameters20.9B
VRAM69.2 GB in vLLM, 65.2 GB of files for the weights

What it runs on

Memory and cards for gpt-oss-120b-essential (MXFP4)

69.2 GB in vLLM, 65.2 GB of filesweights, file size
37 MBcache per 1K tokens
156 MBwindow cache per request
706 MBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … L40S 48 GB
6 smaller cards
A100 80 GB
FP4 without its speed-up here
186all 128K78.2 GB
H100 80 GB
FP4 without its speed-up here
6280K78.1 GB
RTX PRO 6000 Blackwell 96 GB3210all 128K93.8 GB
DGX Spark (GB10) 128 GB unified5418all 128K107 GB
H200 141 GB
FP4 without its speed-up here
10534all 128K138 GB
B200 180 GB16741all 128K176 GB
2× L40S 48 GB
tensor parallel · FP4 without its speed-up here
3712all 128K44.0 GB a card
4× RTX 4090 24 GB
tensor parallel · FP4 without its speed-up here
4615all 128K23.4 GB a card
4× RTX 3090 24 GB
tensor parallel · FP4 without its speed-up here
4715all 128K23.4 GB a card
4× RTX 5090 32 GB
tensor parallel
11338all 128K31.0 GB a card
2× H100 80 GB
tensor parallel · FP4 without its speed-up here
12642all 128K78.1 GB a card
2× A100 80 GB
tensor parallel · FP4 without its speed-up here
18762all 128K78.2 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
170.3 GB71.2 GB
572.2 GB76.7 GB
873.5 GB80.8 GB
1677.2 GB91.7 GB
3284.5 GB114 GB
6499.2 GB157 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
gpt-oss-20b ↗ 20.9BMXFP4 14.6 GB2× RTX 3060 12 GB
gpt-oss-120b ↗ 116.8BMXFP4 69.2 GBH100 80 GB
gpt-oss-20b-GGUF ↗
packaged by unsloth
16 builds: Q3_K_S 11.5 GB … F16 13.8 GB
GGUF 11.6 GBRTX 4060 Ti 16 GB
gpt-oss-20b-BF16 ↗
packaged by unsloth
20.9BBF16 41.8 GBL40S 48 GB
gpt-oss-20b-unsloth-bnb-4bit ↗
packaged by unsloth
20.9BINT4 12.5 GBRTX 4060 Ti 16 GB
gpt-oss-120b-Eagle3-v3 ↗
packaged by nvidia
a draft head for speculative decoding that runs beside the full model
787MBF16 1.6 GB
gpt-oss-120b-essential (above) ↗
packaged by RedHatAI
116.8BMXFP4 69.2 GBH100 80 GB

From the model card

What OpenAI says about gpt-oss

Read the model card

Welcome to the gpt-oss series, OpenAI’s open-weight models designed for powerful reasoning, agentic tasks, and versatile developer use cases.

We’re releasing two flavors of these open models:

  • gpt-oss-120b — for production, general purpose, high reasoning use cases that fit into a single 80GB GPU (like NVIDIA H100 or AMD MI300X) (117B parameters with 5.1B active parameters)
  • gpt-oss-20b — for lower latency, and local or specialized use cases (21B parameters with 3.6B active parameters)

Both models were trained on our harmony response format and should only be used with the harmony format as it will not work correctly otherwise.

[!NOTE] This model card is dedicated to the smaller gpt-oss-20b model. Check out gpt-oss-120b for the larger model.

Highlights

  • Permissive Apache 2.0 license: Build freely without copyleft restrictions or patent risk—ideal for experimentation, customization, and commercial deployment.
  • Configurable reasoning effort: Easily adjust the reasoning effort (low, medium, high) based on your specific use case and latency needs.
  • Full chain-of-thought: Gain complete access to the model’s reasoning process, facilitating easier debugging and increased trust in outputs. It’s not intended to be shown to end users.
  • Fine-tunable: Fully customize models to your specific use case through parameter fine-tuning.
  • Agentic capabilities: Use the models’ native capabilities for function calling, web browsing, Python code execution, and Structured Outputs.
  • MXFP4 quantization: The models were post-trained with MXFP4 quantization of the MoE weights, making gpt-oss-120b run on a single 80GB GPU (like NVIDIA H100 or AMD MI300X) and the gpt-oss-20b model run within 16GB of memory. All evals were performed with the same MXFP4 quantization.

Inference examples

Transformers

You can use gpt-oss-120b and gpt-oss-20b with Transformers. If you use the Transformers chat template, it will automatically apply the harmony response format. If you use model.generate directly, you need to apply the harmony format manually using the chat template or use our openai-harmony package.

To get started, install the necessary dependencies to setup your environment:

pip install -U transformers kernels torch

Once, setup you can proceed to run the model by running the snippet below:

from transformers import pipeline
import torch

model_id = "openai/gpt-oss-20b"

pipe = pipeline(
    "text-generation",
    model=model_id,
    torch_dtype="auto",
    device_map="auto",
)

messages = [
    {"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
]

outputs = pipe(
    messages,
    max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])

Alternatively, you can run the model via Transformers Serve to spin up a OpenAI-compatible webserver:

transformers serve
transformers chat localhost:8000 --model-name-or-path openai/gpt-oss-20b

Learn more about how to use gpt-oss with Transformers.

vLLM

vLLM recommends using uv for Python dependency management. You can use vLLM to spin up an OpenAI-compatible webserver. The following command will automatically download the model and start the server.

uv pip install --pre vllm==0.10.1+gptoss \
    --extra-index-url https://wheels.vllm.ai/gpt-oss/ \
    --extra-index-url https://download.pytorch.org/whl/nightly/cu128 \
    --index-strategy unsafe-best-match

vllm serve openai/gpt-oss-20b

Learn more about how to use gpt-oss with vLLM.

PyTorch / Triton

To learn about how to use this model with PyTorch and Triton, check out our reference implementations in the gpt-oss repository.

Ollama

If you are trying to run gpt-oss on consumer hardware, you can use Ollama by running the following commands after installing Ollama.

# gpt-oss-20b
ollama pull gpt-oss:20b
ollama run gpt-oss:20b

Learn more about how to use gpt-oss with Ollama.

LM Studio

If you are using LM Studio you can use the following commands to download.

# gpt-oss-20b
lms get openai/gpt-oss-20b

Check out our awesome list for a broader collection of gpt-oss resources and inference partners.


Download the model

You can download the model weights from the Hugging Face Hub directly from Hugging Face CLI:

# gpt-oss-20b
huggingface-cli download openai/gpt-oss-20b --include "original/*" --local-dir gpt-oss-20b/
pip install gpt-oss
python -m gpt_oss.chat model/

Reasoning levels

You can adjust the reasoning level that suits your task across three levels:

  • Low: Fast responses for general dialogue.
  • Medium: Balanced speed and detail.
  • High: Deep and detailed analysis.

The reasoning level can be set in the system prompts, e.g., "Reasoning: high".

Tool use

The gpt-oss models are excellent for:

  • Web browsing (using built-in browsing tools)
  • Function calling with defined schemas
  • Agentic operations like browser tasks

Fine-tuning

Both gpt-oss models can be fine-tuned for a variety of specialized use cases.

This small

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms