Qwen2.5 72B
Alibaba Cloud (Qwen) · Qwen2.5 · open weights
- GQA
- RoPE
- Pre-norm
Facts and where they come from
| Released | 2024-09 | config.jsonconfig.jsonHugging Face repository creation date (api.createdAt) |
|---|---|---|
| Licence | other | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 72.7B | labmodel cardREADME: Number of Parameters: 72.7B |
| Active parameters | not disclosed | not disclosed |
| Context length | 128K tokens | labmodel cardREADME: Context Length: 131,072 tokens |
| Norm placement | pre | codemodelling codetransformers 5.18.0 / repo modelling code for qwen2: input_layernorm before attention, post_attention_layernorm before the MLP |
| Norm type | RMSNorm | codemodelling codetransformers 5.18.0 / repo modelling code for qwen2: input_layernorm before attention, post_attention_layernorm before the MLP |
| QK-norm | no | codemodelling codeno q/k normalisation in the attention block |
| Positional encoding | RoPE | codemodelling coderotary on the full head (default) |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 / repo modelling code for qwen2: input_layernorm before attention, post_attention_layernorm before the MLP |
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) | 72.7B |
|---|---|
| Active per token (modelled) | 72.7B |
| Without embeddings and output head | 70.2B total, 70.2B active |
| Published weights (Hugging Face count) | 72.7B |
| KV cache per token, BF16 (layers that grow with context) | 320 KiB |
| KV cache + state at 128K tokens, BF16 | 40 GiB |
| Decode FLOPs per token at 4K context | 154 GFLOP |
| Prefill FLOPs for a 4K prompt | 597 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 8,192 | config.jsonconfig.jsonhidden_size |
| vocab | 152,064 | config.jsonconfig.jsonvocab_size |
| tied_embeddings | false | config.jsonconfig.jsontie_word_embeddings |
| 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 | codemodelling codetransformers 5.18.0: head_dim = hidden_size / num_attention_heads |
| mixers.full.bias | true | codemodelling codetransformers 5.18.0 qwen2: q/k/v projections have biases |
| ffns.dense.type | dense | codemodelling codeMLP block |
| ffns.dense.d_ff | 29,568 | config.jsonconfig.jsonintermediate_size |
| ffns.dense.gated | true | codemodelling codeMLP: gated (SwiGLU/GeGLU) |
| layout | 80× full/dense | config.jsonconfig.jsonnum_hidden_layers |
Sources
- config.json @ efba10c
- model card
- arXiv 2412.15115
- modelling code · transformers 5.18.0 modelling code, or the model repository's own modelling file at the pinned revision