The Evolution of GLM
Z.ai (Zhipu AI) has shipped a GLM model every year since 2021. Below is one transformer diagram that redraws itself for each release. Pick a model, and everything that changed from the one before lights up and is listed on the right. Then scroll, and a sentence moves through that model one stage at a time. Tap any part of the diagram, or a card further down, to go inside it: blank infilling, the position schemes, the norms, key/value sharing, sparse attention, the experts, multi-token prediction and where every parameter sits.
Go inside any part
Notes
- Every number comes from the model's published config file on Hugging Face, its model card, or the paper linked under each model. Where a source only gives a rough figure, the diagram says so.
- Parameter counts are worked out from each config file and checked against the released checkpoints where they are published. For ChatGLM2-6B, GLM-4-9B, GLM-4-32B, GLM-4.5 and GLM-5 they match exactly, once the extra copies GLM-4.5 stores in its MTP layer are counted.
- The numbers inside the click-in drawings (router scores, indexer scores, the norm simulation) are made up so each part behaves the way it really does. The sizes and formulas are real.
- From 2023 to mid 2025, Z.ai's strongest models (for example GLM-4 in January 2024) were API only, with no config published. For those years the switcher shows the strongest open model. The GLM-4 report describes the same block design as GLM-4-9B: no biases except QKV, RMSNorm, SwiGLU, RoPE and grouped-query attention.
- ChatGLM3-6B (October 2023) has the same architecture as ChatGLM2-6B, so it shares that entry.
- Release months are when the weights went up on Hugging Face, except GLM-10B and GLM-130B, which use their paper and launch dates.
- GLM-5.4 (November 23, 2026) loops 28 layers of the GLM-5 base twice, with per-token write gates. It isn't a plain transformer and its weights aren't out yet, so it isn't drawn here.