Back to GLM-5.4 in the gallery

Z.ai

GLM-5.4 runs decoder layers 27–54 twice. The 26 layers before the loop and the 24 after it run once, giving 106 layer applications per token from 78 distinct layers.

GLM-5.4 architecture diagram
GLM-5.4 architecture diagram. Select the diagram to view it at full size.

Architecture and specifications

Scale
~750B total
Context (tokens)
1M
Vocabulary
~155k in the GLM-5 base model
License
Not announced
Date
2026-11-23
Decoder type
Sparse MoE
Attention
Multi-head latent attention (MLA) with DeepSeek Sparse Attention and a 128-token sliding window on the second pass
Layer mix
26 layers run once, 28 run twice, and 24 run once
KV cache / token (bf16) info
93 KiB (growing prefix only, estimated from GLM-5 widths) · Moderate
Key detail
On its second pass, each middle layer attends to the sparse keys and values selected on the first pass and to its own 128-token window. A separate gate for each pass controls how much of its update enters the residual stream.

Training and benchmarks

Pretraining data
Not disclosed Z.ai converted the pretrained GLM-5 base to a looped decoder through continued training. It did not report the additional token count. GLM-5.4 release
Post-training methods
Not disclosed The release describes continued training for the loop conversion. Z.ai did not specify the post-training recipe for the served model. GLM-5.4 release

Further reading and tools