gpt-oss-120b & gpt-oss-20b Model Card
TL;DR. gpt-oss-120b (36 layers, 116.8B total, 5.1B active) and gpt-oss-20b (24 layers, 20.9B total, 3.6B active) are Apache-2.0 open-weight reasoning models. They are MoE transformers in the GPT-2/GPT-3 lineage, post-trained with chain-of-thought RL similar to o3. Expert weights are quantized to MXFP4, so the 120b fits on one 80 GB GPU and the 20b runs in 16 GB.
Key idea
Section titled “Key idea”Make a reasoning model cheap to run locally. Experts hold over 90% of parameters and are stored at 4.25 bits each. Only 4 experts per token are active (of 128 or 32). Attention alternates between 128-token banded windows and dense layers, with GQA and a learned sink bias in each head:
Results and discussion. The card reports results mainly in figures: gpt-oss-120b comes close to o4-mini on coding and tool use (Codeforces, SWE-bench, τ-bench retail). Accuracy rises roughly log-linearly with average CoT length across the three reasoning levels (Fig. 3). The 20b uses over 20K CoT tokens per AIME problem on average and lags on knowledge-heavy GPQA. Exact pretraining token counts and data mix are not disclosed.
Connections
Section titled “Connections”- Mixtral and Switch Transformers for top-k MoE.
- GQA, YaRN, FlashAttention.
- CoT monitorability, on why the CoT was left unoptimized.
- Test-time compute and Gemma 3 (local/global attention).
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Table 1 gives gpt-oss-120b 114.71B MoE parameters, 0.96B attention parameters and 1.16B embedding + unembedding parameters, with a 60.8 GiB checkpoint. Assuming MoE weights in MXFP4 (4.25 bits per parameter) and everything else in BF16, reproduce the checkpoint size, and explain why it fits on one 80 GB GPU.
What a strong answer covers
- MoE: 114.71e9 × 4.25 / 8 ≈ 60.9e9 bytes ≈ 56.8 GiB.
- Other weights: (0.96 + 1.16)e9 × 2 bytes ≈ 4.24e9 bytes ≈ 3.9 GiB.
- Total ≈ 60.7 GiB, matching the reported 60.8 GiB.
- The 0.25 bits above 4 per parameter are the shared scale factors of each MXFP4 block.
- In BF16 the same model would need about 234 GB, so MXFP4 on the 90%+ of parameters in experts is what makes a single 80 GB GPU possible.
- Mechanism
Each gpt-oss attention head has a learned bias in the softmax denominator. Write the modified softmax, explain what problem it solves, and connect it to the 128-token banded attention layers.
What a strong answer covers
- Attention becomes exp(s_j) / (exp(b) + Σ_k exp(s_k)), where b is a learned per-head bias, like an extra "sink" key with no value.
- This lets a head put most of its probability on nothing, instead of being forced to spread a full unit of attention over tokens.
- Without it, models learn to dump attention on the first token (attention sinks), which breaks when early tokens fall outside a sliding window.
- Layers alternate between 128-token banded attention and dense attention; the sink keeps the banded layers well behaved when no nearby token is relevant.
- Critique
The model card says OpenAI put no direct optimization pressure on the chain of thought, and that pretraining data was filtered for hazardous content. Assess what an open-weight release gains and risks under these choices.
What a strong answer covers
- Unoptimized CoT keeps it useful for monitoring, following OpenAI's finding that pressure on CoT can teach models to hide misbehavior.
- The cost: the CoT can contain hallucinations or unsafe content, so developers should not show it to users directly.
- Open weights let anyone fine-tune away safety training, so the card evaluates worst-case adversarial fine-tuning as well as the released model.
- Data filtering limits knowledge at pretraining time but cannot be verified by outsiders, since the data and much of the training detail are not released.