Grok 2.5
xAI · Grok · open weights
- GQA
- RoPE
- MoE
Facts and where they come from
| Released | 2025-08 | config.jsonconfig.jsonHugging Face repository creation date (api.createdAt) |
|---|---|---|
| Licence | not disclosed | not disclosed |
| Total parameters | not disclosed | not disclosed |
| Active parameters | not disclosed | not disclosed |
| Context length | 128K tokens | config.jsonconfig.jsonmax_position_embeddings |
| Norm placement | not disclosed | not disclosednot checked in the modelling code |
| Norm type | not disclosed | not disclosednot checked in the modelling code |
| QK-norm | no | codemodelling codeno q/k normalisation in the attention block |
| Positional encoding | RoPE | codemodelling coderotary on the full head (default) |
Architecture, drawn from the data
GQA 64q/8kv. Each column is one layer: its token mixer above, its feed-forward block below. Paler columns reuse another layer’s keys and values.
Modelled costs
From the cost model, batch size 1. Totals the lab states are in the table above; differences come from rounding, from what a lab counts, or from parts the model does not describe (listed on the about page).
| Parameters (modelled) | 270B |
|---|---|
| Active per token (modelled) | 115B |
| Without embeddings and output head | 267B total, 113B active |
| KV cache per token, BF16 (layers that grow with context) | 256 KiB |
| KV cache + state at 128K tokens, BF16 | 32 GiB |
| Decode FLOPs per token at 4K context | 236 GFLOP |
| Prefill FLOPs for a 4K prompt | 941 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 8,192 | config.jsonconfig.jsonhidden_size |
| vocab | 131,072 | config.jsonconfig.jsonvocab_size |
| tied_embeddings | false | codemodelling codetransformers 5.18.0: PretrainedConfig.tie_word_embeddings defaultnot in config |
| mixers.full.type | attn | codemodelling codeattention block |
| mixers.full.heads | 64 | config.jsonconfig.jsonnum_attention_heads |
| mixers.full.kv_heads | 8 | config.jsonconfig.jsonnum_key_value_heads |
| mixers.full.head_dim | 128 | config.jsonconfig.jsonhead_dim |
| ffns.moe.type | moe | codemodelling codeMoE block |
| ffns.moe.experts | 8 | config.jsonconfig.jsonnum_local_experts |
| ffns.moe.active | 2 | config.jsonconfig.jsonnum_experts_per_tok |
| ffns.moe.d_expert | 16,384 | config.jsonconfig.jsonmoe_intermediate_size |
| ffns.moe.gated | true | codemodelling codeexperts are gated MLPs |
| ffns.moe.dense_parallel_d_ff | 32,768 | config.jsonconfig.jsonintermediate_size |
| layout | 64× full/moe | config.jsonconfig.jsonnum_hidden_layers |
Sources
- config.json @ daf4395
- model card
- modelling code · transformers 5.18.0 modelling code, or the model repository's own modelling file at the pinned revision
Listed in the LLM Architecture Gallery checklist as “Grok 2.5 (270B)” (name only; see about).