GLM-5.4 dissected: how looped transformers work at 750B scale with 106 layer passes from 78 layers

TheTuringPost · x · 2026-11-28

TheTuring Post breaks down GLM-5.4 as a case study in making looped transformers work at 750B scale.

The recipe: Zai continued training the pretrained GLM-5 base into a looped model, then loops the middle of the stack — layers 1–26 run once, 27–54 run twice with shared weights, 55–78 run once, yielding 106 layer passes per token from 78 layers of weights.

Three engineering changes: per-token "damp gates" prevent activation blowup (Pass 1 writes smaller updates to build context, Pass 2 opens wider to refine); Pass 2 reuses Pass 1's sparse KV for global context while keeping its own KV only for a 128-token sliding window, so at 1M context the extra pass costs one small window instead of a second full cache; and Pass 2 also reuses the sparse-attention indices, as detailed in the accompanying architecture diagram.

Original post →

More from Models

Models channel →