OpenAI · 2025-08 · Sparse MoE

GPT-OSS 120B

GPT-OSS 120B is a grouped-query attention (GQA) transformer released by OpenAI in 2025-08, with 36 layers, hidden size 2880 and a context window of 131,072 tokens.

Layer stack

Sliding window ×18 Attention ×18 · Layers 36

Key facts

FamilyOpenAI
Released2025-08
Params116.8 B
Active5.1 B
Context131,072 tokens
AttentionGQA (64:8)
Layers36
Hidden2,880
Heads64
Vocab201,088
PositionRoPE
NormRMSNorm
Activationsilu
DtypeMXFP4
Architecture classGptOssForCausalLM

Architecture overview

t₁ t₂ t₃ t₄ input tokens Embedding · Vocab 201,088 → Hidden 2,880 Q1 Q2 Q3 Qn KV1 KV2 KV3 KVn Heads 64 KV heads 8 head dim 64 · RoPE Router E1 E2 E3 E4 E5 E6 E7 E8 +120… top-4 of 128 experts · ≈ 5.1B params active per token × 36 transformer block Attention Feed-forward / MoE RMSNorm pre-norm Final norm · RMSNorm LM head → Vocab 201,088 p p p → next token Position RoPE Dtype MXFP4 Context 128K tok
Drawn from the shipped config.json · 36 layers / width 2,880 / context 131,072. Original diagram by this atlas.

Attention

grouped-query attention (GQA) — 64 q-heads / 8 kv-heads. RoPE θ=150,000.

Feed-forward / MoE

It is a sparse mixture-of-experts with 128 routed experts and top-4 routing; about 5.1B parameters are active per token.

Field-level comparison

Compared against the previous model of the same lab; where none exists, against the structurally closest model. The ratio column is this model divided by the comparison model.

Full-field comparison vs predecessor GPT-3 175B (paper)
ModelGPT-OSS 120BGPT-3 175B (paper)Ratio
model_typegpt_ossgpt3-paper
architecturesGptOssForCausalLM
hidden_size288012288×0.234
num_hidden_layers36
num_attention_heads6496×0.667
num_key_value_heads8
head_dim64
intermediate_size2880
hidden_actsilu
num_experts_per_tok4
rope_theta150000
max_position_embeddings1310722048×64.00
sliding_window128
rms_norm_eps0.00001
vocab_size20108850257×4.00
attention_biastrue
attention_dropout0
eos_token_id200002
experts_per_token4
initial_context_length4096
initializer_range0.02
layer_typessliding_attention×18 + full_attention×18
num_local_experts128
output_router_logitsfalse
pad_token_id199999
router_aux_loss_coef0.9

Most similar architectures

Similarity values range from 0 (no shared categorical features) to 1 (identical profiles).

Raw config fields

30 fields
architecturesGptOssForCausalLM
attention_biastrue
attention_dropout0
eos_token_id200002
experts_per_token4
head_dim64
hidden_actsilu
hidden_size2880
initial_context_length4096
initializer_range0.02
intermediate_size2880
layer_typessliding_attention×18 + full_attention×18
max_position_embeddings131072
model_typegpt_oss
num_attention_heads64
num_experts_per_tok4
num_hidden_layers36
num_key_value_heads8
num_local_experts128
output_router_logitsfalse
pad_token_id199999
rms_norm_eps0.00001
rope_theta150000
router_aux_loss_coef0.9
sliding_window128
swiglu_limit7
tie_word_embeddingsfalse
transformers_version4.55.0.dev0
use_cachetrue
vocab_size201088