Views
No views yet
Note: This repository is an archived mirror and not the original upstream source.
The original model, weights, and documentation are developed and maintained by OpenAI.All hosted model weights are unmodified.The model is released under the Apache License, Version 2.0, a copy of which is included in this repository.This repository is not affiliated with or endorsed by OpenAI.
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)[!NOTE] This model card is dedicated to the smallergpt-oss-20bmodel. Check outgpt-oss-120bfor the larger model.
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.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.pip install -U transformers kernels torch 1from transformers import pipeline
2import torch
3
4model_id = "openai/gpt-oss-20b"
5
6pipe = pipeline(
7 "text-generation",
8 model=model_id,
9 torch_dtype="auto",
10 device_map="auto",
11)
12
13messages = [
14 {"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
15]
16
17outputs = pipe(
18 messages,
19 max_new_tokens=256,
20)
21print(outputs[0]["generated_text"][-1])Transformers Serve to spin up a OpenAI-compatible webserver:transformers serve
transformers chat localhost:8000 --model-name-or-path openai/gpt-oss-20b1uv pip install --pre vllm==0.10.1+gptoss \
2 --extra-index-url https://wheels.vllm.ai/gpt-oss/ \
3 --extra-index-url https://download.pytorch.org/whl/nightly/cu128 \
4 --index-strategy unsafe-best-match
5
6vllm serve openai/gpt-oss-20b1# gpt-oss-20b
2ollama pull gpt-oss:20b
3ollama run gpt-oss:20b1# gpt-oss-20b
2lms get openai/gpt-oss-20b1# gpt-oss-20b
2huggingface-cli download openai/gpt-oss-20b --include "original/*" --local-dir gpt-oss-20b/
3pip install gpt-oss
4python -m gpt_oss.chat model/gpt-oss-20b can be fine-tuned on consumer hardware, whereas the larger gpt-oss-120b can be fine-tuned on a single H100 node.1@misc{openai2025gptoss120bgptoss20bmodel,
2 title={gpt-oss-120b & gpt-oss-20b Model Card},
3 author={OpenAI},
4 year={2025},
5 eprint={2508.10925},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2508.10925},
9}