Loading...
Latest flagship with 1M context, stronger coding and long-horizon agentic reasoning
Take GLM 5.2 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.2 keeps the 744B backbone and stretches the context window to 1,048,576 tokens.
Still 3 dense-FFN layers then 75 MoE layers, plus one Multi-Token Prediction layer that Z.AI tuned for up to 20% longer speculative accept length. The new part is the indexer pattern: 21 layers run a full DSA indexer and the other 57 share one, in groups of four after the first three layers.
Multi-head Latent Attention with 64 heads and a 512-dim KV latent. A full layer runs the DSA indexer (32 heads, 128 dims) to pick the top 2048 cached tokens per query; the next three layers reuse that selection instead of scoring again. Z.AI reports 2.9x fewer per-token FLOPs at 1M context. RoPE theta also moves from 1e6 to 8e6 alongside the longer window.
Unchanged from GLM-5: a sigmoid router picks 8 of 256 routed experts per token, plus 1 shared expert (expert FFN 2048), so 40B of 744B parameters fire per token.
Final RMSNorm then an untied projection to 154,880 logits. With sparse attention and IndexShare, the 1M-token window is built for long-horizon agentic work.