# gpt-oss

CreateWithAI Hub page: https://createwithaihub.com/ai-models/gpt-oss
Latest version of this file: https://createwithaihub.com/ai-models/gpt-oss.md

- Type: AI model · Category: AI Models
- Publisher: OpenAI
- Pricing: Free · License: Apache-2.0
- Runs on: macOS, Windows, Linux

OpenAI's Apache-2.0 open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, for local and self-hosted use.

gpt-oss is OpenAI's open-weight model family: gpt-oss-120b (117B total, 5.1B active parameters, fits on a single 80GB GPU) and gpt-oss-20b (21B total, 3.6B active, runs within 16GB of memory), plus gpt-oss-safeguard variants for safety classification. They are text-only mixture-of-experts reasoning models with a 128k context, released under Apache-2.0. They run through Transformers, vLLM, Ollama, LM Studio and llama.cpp and are offered on Amazon Bedrock, Amazon SageMaker JumpStart, Azure AI Foundry and other hosts, but not in the OpenAI API.

Useful for: Running a reasoning model with tool use entirely on your own machine or server, for example gpt-oss-20b on a laptop through Ollama.

## Key features

- gpt-oss-120b and gpt-oss-20b mixture-of-experts models
- 128k context window
- Apache-2.0 license
- gpt-oss-safeguard models for policy-based safety classification
- Runs in Transformers, vLLM, Ollama, LM Studio and llama.cpp
- Reference implementations in the official gpt-oss repo

## Connection

- Capability: Reasoning, Coding, Chat
- Modality: Text
- Weights: Open-weight
- Local or hosted: Can run locally, Hosted
- Free usage: Free usage available
- Provider: OpenAI

## Before you start

- 16GB of memory for gpt-oss-20b, one 80GB GPU for gpt-oss-120b

## Install steps from the official documentation

Run with Ollama:

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

Install reference package:

```
pip install gpt-oss
```

Transformers:

```
pip install -U transformers kernels torch
```

## Limitations

- Requires the harmony response format to work correctly
- Text only, no image input
- Not served through the OpenAI API
- The reference PyTorch implementation needs at least 4x H100 GPUs

## Official links

- Website: https://openai.com/open-models
- Source repository: https://github.com/openai/gpt-oss
- Documentation: https://openai.com/index/introducing-gpt-oss
- Source: https://openai.com/index/introducing-gpt-oss (Model sizes, 128k context, Apache-2.0, partners; API support only 'may' come later)
- Source: https://openai.com/open-models (Open-weight model lineup including gpt-oss-safeguard)
- Source: https://github.com/openai/gpt-oss (README install/run commands, harmony requirement, 4x H100 reference note; LICENSE is Apache 2.0; USAGE_POLICY file)
- Source: https://huggingface.co/openai/gpt-oss-120b (Official weights, license:apache-2.0)
- Source: https://aws.amazon.com/about-aws/whats-new/2025/08/openai-amazon-bedrock-sagemaker-jumpstart (gpt-oss in Amazon Bedrock and SageMaker JumpStart, 128K context)
- Source: https://azure.microsoft.com/en-us/blog/openais-open-source-model-gpt-oss-on-azure-ai-foundry-and-windows-ai-foundry/ (gpt-oss on Azure AI Foundry; gpt-oss-20b on Windows AI Foundry)
- Source: https://developers.openai.com/api/docs/models/gpt-oss-120b (131,072-token context; zero API rate limits on every tier and no API price)
