# GLM-5.1 (744B)

> Post-trained GLM refresh that keeps the GLM-5 backbone intact but targets stronger long-horizon agentic coding.

| Property | Value |
| --- | --- |
| Lab | Z.ai (China) |
| Released | 2026-04-07 |
| Decoder type | Sparse MoE |
| Family | Sparse MoE |
| Scale | 744B total, 40B active (5.4% active) |
| Context window | 202,752 tokens |
| Attention | MLA with DeepSeek Sparse Attention |
| Layer mix | 78 MLA |
| KV cache / token (bf16) | 87.8 KiB (Moderate) |
| License | MIT License |

**Key detail:** Architecture stays aligned with GLM-5, including its MTP-capable backbone; the main shift is post-training.

## Architecture concepts

- [Multi-Head Latent Attention (MLA)](https://llm-atlas-7or.pages.dev/concepts/mla.md): Keys and values are compressed into a small latent vector that is cached instead of full K/V.
- [Mixture of Experts (MoE)](https://llm-atlas-7or.pages.dev/concepts/moe.md): Many feed-forward experts, but a router sends each token to only a few of them.
- [DeepSeek Sparse Attention (DSA)](https://llm-atlas-7or.pages.dev/concepts/deepseek-sparse-attention.md): A lightweight indexer scores past tokens and each query attends only to its top-k picks.
- [Multi-Token Prediction (MTP)](https://llm-atlas-7or.pages.dev/concepts/mtp.md): Extra heads learn to predict several future tokens, and can draft tokens at inference.

## Benchmark (Artificial Analysis Intelligence Index)

- AA Intelligence Index v4.3.2: total 26.1 (General 34.7, Scientific 17.3, Coding 23.4, Agents 25.3)

## Links

- Architecture diagram: https://sebastianraschka.com/llm-architecture-gallery/images/architectures/glm-5-1.webp
- config.json: https://huggingface.co/zai-org/GLM-5.1/blob/main/config.json
- Tech report: https://arxiv.org/pdf/2602.15763
- Source card (source of truth): https://sebastianraschka.com/llm-architecture-gallery/#card-glm-5-1
- Web page: https://llm-atlas-7or.pages.dev/models/glm-5-1/
- JSON: https://llm-atlas-7or.pages.dev/api/models/glm-5-1.json

_Data from Sebastian Raschka's LLM Architecture Gallery (https://sebastianraschka.com/llm-architecture-gallery/). Synced 2026-11-04._
