Loading...
Enhanced programming and stable multi-step reasoning with agent task execution
Take GLM 4.7 apart, layer by layer. The 3D teardown below shows its 92 transformer layers (3 dense + 89 MoE), GQA 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) โ5120-dim vectors over a 151,552-token vocabulary. GLM-4.7 is the agentic-coding flagship of the GLM-4 line.
A deep pre-norm stack: the first 3 layers use a dense FFN, the remaining 89 are MoE. QK-Norm stabilises attention across the 92-layer depth, and a 1-layer Multi-Token-Prediction head speeds decoding.
96 query heads share 8 KV heads via GQA (head_dim 128) with QK-Norm and 50% partial rotary embeddings.
A router scores 160 experts per token and activates 8 plus 1 shared (expert FFN 1536), spending 32B of 355B per token.
Final RMSNorm then projection to 151,552 logits. GLM-4.7 adds Interleaved and Preserved Thinking for stable multi-turn agentic coding.