# GLM-4.7 (355B)

> Immediate GLM predecessor that stays closer to the older GLM-4.5 style before the MLA shift.

| Property | Value |
| --- | --- |
| Lab | Z.ai (China) |
| Released | 2025-12-22 |
| Decoder type | Sparse MoE |
| Family | Sparse MoE |
| Scale | 355B total, 32B active (9% active) |
| Context window | 202,752 tokens |
| Attention | GQA with QK-Norm |
| Layer mix | 92 GQA |
| KV cache / token (bf16) | 368 KiB (Very high) |
| License | MIT License |

**Key detail:** Serves as the pre-MLA, pre-sparse-attention baseline and uses an MTP-3-style setup.

## Architecture concepts

- [QK-Norm (QK-Norm)](https://llm-atlas-7or.pages.dev/concepts/qk-norm.md): RMSNorm applied to queries and keys before attention to keep logits well-behaved.
- [Grouped-Query Attention (GQA)](https://llm-atlas-7or.pages.dev/concepts/gqa.md): Several query heads share one key/value head, shrinking the KV cache with little quality loss.
- [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.
- [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 17.4 (Scientific 3.2)

## Links

- Architecture diagram: https://sebastianraschka.com/llm-architecture-gallery/images/architectures/glm-4-7-355b.webp
- View in article: https://magazine.sebastianraschka.com/p/the-big-llm-architecture-comparison#%C2%A721-glm-5
- config.json: https://huggingface.co/zai-org/GLM-4.7/blob/main/config.json
- Tech report: https://arxiv.org/pdf/2508.06471
- Source card (source of truth): https://sebastianraschka.com/llm-architecture-gallery/#card-glm-4-7-355b
- Web page: https://llm-atlas-7or.pages.dev/models/glm-4-7-355b/
- JSON: https://llm-atlas-7or.pages.dev/api/models/glm-4-7-355b.json

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