OpenAI · 2025-08 · Sparse MoE
GPT-OSS 20B
GPT-OSS 20B is a grouped-query attention (GQA) transformer released by OpenAI in 2025-08, with 24 layers, hidden size 2880 and a context window of 131,072 tokens.
Layer stack
Sliding window ×12 Attention ×12 · Layers 24
Key facts
| Family | OpenAI |
|---|---|
| Released | 2025-08 |
| Params | 20.9 B |
| Active | 3.6 B |
| Context | 131,072 tokens |
| Attention | GQA (64:8) |
| Layers | 24 |
| Hidden | 2,880 |
| Heads | 64 |
| Vocab | 201,088 |
| Position | RoPE |
| Norm | RMSNorm |
| Activation | silu |
| Dtype | MXFP4 |
| Architecture class | GptOssForCausalLM |
Architecture overview
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 32 routed experts and top-4 routing; about 3.6B 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-OSS 120B
| Model | GPT-OSS 20B | GPT-OSS 120B | Ratio |
|---|---|---|---|
| model_type | gpt_oss | gpt_oss | = |
| architectures | GptOssForCausalLM | GptOssForCausalLM | = |
| hidden_size | 2880 | 2880 | ≈1 |
| num_hidden_layers | 24 | 36 | ×0.667 |
| num_attention_heads | 64 | 64 | ≈1 |
| num_key_value_heads | 8 | 8 | ≈1 |
| head_dim | 64 | 64 | ≈1 |
| intermediate_size | 2880 | 2880 | ≈1 |
| hidden_act | silu | silu | = |
| num_experts_per_tok | 4 | 4 | ≈1 |
| rope_theta | 150000 | 150000 | ≈1 |
| max_position_embeddings | 131072 | 131072 | ≈1 |
| sliding_window | 128 | 128 | ≈1 |
| rms_norm_eps | 0.00001 | 0.00001 | ≈1 |
| vocab_size | 201088 | 201088 | ≈1 |
| attention_bias | true | true | = |
| attention_dropout | 0 | 0 | = |
| eos_token_id | 200002 | 200002 | ≈1 |
| experts_per_token | 4 | 4 | ≈1 |
| initial_context_length | 4096 | 4096 | ≈1 |
| initializer_range | 0.02 | 0.02 | ≈1 |
| layer_types | sliding_attention×12 + full_attention×12 | sliding_attention×18 + full_attention×18 | ≠ |
| num_local_experts | 32 | 128 | ×0.250 |
| output_router_logits | false | false | = |
| pad_token_id | 199999 | 199999 | ≈1 |
| router_aux_loss_coef | 0.9 | 0.9 | ≈1 |
Most similar architectures
- GPT-OSS 120B (OpenAI, 2025-08) 0.994
- Hunyuan-TurboS 30B A3B (Hunyuan, 2026-05) 0.994
- Qwen3 30B A3B (Qwen, 2025-04) 0.994
- GLM-4.5-Air (GLM, 2025-07) 0.992
- Qwen3.6 35B A3B (Qwen, 2026-04) 0.992
- Qwen3-Next 80B A3B (Qwen, 2025-09) 0.985
Similarity values range from 0 (no shared categorical features) to 1 (identical profiles).
Raw config fields
30 fields
| architectures | GptOssForCausalLM |
|---|---|
| attention_bias | true |
| attention_dropout | 0 |
| eos_token_id | 200002 |
| experts_per_token | 4 |
| head_dim | 64 |
| hidden_act | silu |
| hidden_size | 2880 |
| initial_context_length | 4096 |
| initializer_range | 0.02 |
| intermediate_size | 2880 |
| layer_types | sliding_attention×12 + full_attention×12 |
| max_position_embeddings | 131072 |
| model_type | gpt_oss |
| num_attention_heads | 64 |
| num_experts_per_tok | 4 |
| num_hidden_layers | 24 |
| num_key_value_heads | 8 |
| num_local_experts | 32 |
| output_router_logits | false |
| pad_token_id | 199999 |
| rms_norm_eps | 0.00001 |
| rope_theta | 150000 |
| router_aux_loss_coef | 0.9 |
| sliding_window | 128 |
| swiglu_limit | 7 |
| tie_word_embeddings | false |
| transformers_version | 4.55.0.dev0 |
| use_cache | true |
| vocab_size | 201088 |