Loading...
Flagship coding model with extended autonomous capability for long-horizon, engineering-grade tasks
Take GLM 5.1 apart, layer by layer. The 3D teardown below shows its 78 transformer layers (3 dense + 75 MoE), MLA attention, and expert routing, with values from the public model config.
Founded in 2019 as a Tsinghua University spinout, the company was known internationally as Zhipu AI until it rebranded as Z.ai in July 2025; it is headquartered in Beijing and has been listed on the Hong Kong Stock Exchange since January 2026. The lab develops the GLM (General Language Model) family, released under the MIT licence since GLM-4.5 in July 2025 and focused on coding and agentic tasks, alongside the GLM-V vision line and the AutoGLM phone agent.
more about Z.ai (Zhipu AI) โ6144-dim vectors over the same 154,880-token vocabulary as GLM-5. GLM-5.1 reuses the GLM-5 backbone unchanged.
The GLM-5 stack as-is: 3 dense-FFN layers followed by 75 MoE layers, with one Multi-Token Prediction layer on top for speculative decoding. Every architecture field in config.json matches GLM-5.
Multi-head Latent Attention with 64 heads, a 2048-dim query LoRA and a 512-dim KV latent. A DSA indexer (32 heads, 128 dims) keeps the top 2048 cached tokens for each query, so long agentic sessions stay affordable.
A sigmoid router picks 8 of 256 routed experts per token, plus 1 shared expert (expert FFN 2048). 40B of 744B parameters fire per token.
Final RMSNorm then an untied projection to 154,880 logits. What changed is post-training: GLM-5.1 is tuned to stay effective over hundreds of rounds and thousands of tool calls in agentic coding.