Training

Pinned sources gpt‑oss‑120b & gpt‑oss‑20b model card (arXiv 2508.10925v1) · Hugging Face card (openai/gpt‑oss‑120b @ b5c939d) · no training code is published

  1. Start of training
  2. Pre‑trainingNTPWhat trains: all
  3. Pre-trained model
  4. Post‑trainingreasoning and toolsRLWhat trains: allMXFP4
  5. gpt-oss-120b

Not stated for any stage: tokens, context length.

  • the architecture changes
  • checkpoint
  • checkpoint, weights published

Pre-training

×

A text-only dataset of trillions of tokens, weighted toward STEM, coding and general knowledge and filtered for harmful content, on H100 GPUs for 2.1 million H100-hours.

Next-token prediction

L=−1T∑i=2T+1log⁡Pi[ti]\mathcal L=-\frac1T\sum_{i=2}^{T+1}\log P_i[t_i]
In words

At every position the model gives each token of the vocabulary a probability of coming next; the loss is the negative logarithm of the probability it gave the token that does come next, averaged over the sequence.

tit_i: the token at position ii; Pi[ti]P_i[t_i]: the probability the model, reading the tokens before it, gave that token; TT: the sequence length.

Compute
2.1M H100-hours
Tokenizer
o200k_harmony
Filtering
CBRN filters of GPT-4o

Not disclosed Tokens · Context · Learning rate · Batch · Optimizer

All settings7
Data
A text-only dataset with trillions of tokens, with a focus on STEM, coding and general knowledge; knowledge cut off in June 2024
Filtering
Harmful content filtered out, especially hazardous biosecurity knowledge, with the CBRN pre-training filters of GPT-4o
Tokenizer
o200k_harmony, 201,088 tokens, in every training stage
Compute
2.1 million H100-hours; gpt-oss-20b needed almost ten times fewer
Software
PyTorch with expert-optimized Triton kernels, and Flash Attention
Objective
Next-token prediction, the default for an autoregressive language model
Trainable
All parameters, the default
Sources2