> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/automodel/_mcp/server.

# GPT-OSS

[GPT-OSS](https://huggingface.co/openai/gpt-oss-20b) is OpenAI's open-weight model family featuring QuickGELU activations and activation clamping for training stability.

|                  |                                         |
| ---------------- | --------------------------------------- |
| **Task**         | Text Generation                         |
| **Architecture** | `GptOssForCausalLM`                     |
| **Parameters**   | 20B – 120B                              |
| **HF Org**       | [openai](https://huggingface.co/openai) |

## Available Models

* **gpt-oss-20b**: 20B parameters
* **gpt-oss-120b**: 120B parameters

## Architecture

* `GptOssForCausalLM`

## Example HF Models

| Model        | HF ID                                                               |
| ------------ | ------------------------------------------------------------------- |
| GPT-OSS 20B  | [`openai/gpt-oss-20b`](https://huggingface.co/openai/gpt-oss-20b)   |
| GPT-OSS 120B | [`openai/gpt-oss-120b`](https://huggingface.co/openai/gpt-oss-120b) |

## Example Recipes

| Recipe                                                                                                                    | Description        |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------ |
| [gpt\_oss\_20b.yaml](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/gpt_oss/gpt_oss_20b.yaml)   | SFT — GPT-OSS 20B  |
| [gpt\_oss\_120b.yaml](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/gpt_oss/gpt_oss_120b.yaml) | SFT — GPT-OSS 120B |

## Try with NeMo AutoModel

**1. Clone and install from source** ([full instructions](/get-started/installation)):

```bash
git clone https://github.com/NVIDIA-NeMo/Automodel.git
cd Automodel
uv sync --locked --all-groups --all-extras
```

**2. Run the recipe** from inside the repo:

```bash
uv run automodel --nproc-per-node=8 examples/llm_finetune/gpt_oss/gpt_oss_20b.yaml
```

**1. Pull the container** and mount a checkpoint directory:

```bash
docker run --gpus all -it --rm \
  --shm-size=8g \
  -v $(pwd)/checkpoints:/opt/Automodel/checkpoints \
  nvcr.io/nvidia/nemo-automodel:26.06.00
```

**2.** Navigate to the AutoModel directory (where the recipes are):

```bash
cd /opt/Automodel
```

**3. Run the recipe**:

```bash
automodel --nproc-per-node=8 examples/llm_finetune/gpt_oss/gpt_oss_20b.yaml
```

See the [Installation Guide](/get-started/installation) and [LLM Fine-Tuning Guide](/recipes-e2e-examples/sft-peft).

## Fine-Tuning

See the [LLM Fine-Tuning Guide](/recipes-e2e-examples/sft-peft).

## Hugging Face Model Cards

* [openai/gpt-oss-20b](https://huggingface.co/openai/gpt-oss-20b)
* [openai/gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b)