Architecture
Retrieved 2026-09-01 at pinned commit 711ad2ea6aa4; parameter count from the safetensors index at the same revision.
- Architecture
- qwen2
- Layers
- 64
- Hidden size
- 5,120
- Attention heads
- 40
- KV heads
- 8
- Feed-forward width
- 27,648
- Vocabulary
- 152,064
- Context ceiling
- 131,072
- Sliding window
- 131,072
- RoPE theta
- 1,000,000
Where the memory goes
Grouped-query attention shares each key/value head across 5 query heads, so the KV cache is 20% of what multi-head attention would need at the same context.