Z.ai published GLM-5.4: Toward Generalized Coding with Our First Loop Transformer on November 23, 2026, with developer documentation. The Hacker News discussion had more than 1,000 points when checked.
The architecture
"In a Loop Transformer, a group of weight-shared layers runs for multiple iterations, refining the hidden states from the previous pass." The blog credits the 2018 Universal Transformer and recent looped-model work, and notes that "looped models trained from scratch still lag behind unshared models under the same pre-training compute budget." Z.ai's route around that is conversion: it "adapted an already pre-trained base model into a Loop Transformer through continued training." Concretely, "GLM-5.4 loops 28 layers of the GLM-5 base model for two iterations."
Three changes make the conversion work at the 750B scale, per the blog:
- Gated progressive updates. Overwriting hidden states on each pass "causes activation norms to blow up across iterations," so per-token gates control how much each pass writes to the residual stream. The first pass writes conservatively; the second opens the gates.
- Hybrid KV cache. Instead of a full KV cache per iteration, "the second loop reuses the sparse KV selected in the first pass, while retaining its own newly generated KV within the sliding window." As a result, "an extra loop only costs one sliding window of KV cache rather than a full context cache."
- Sparse index reuse. The second loop reuses the first loop's sparse-attention indices, "adding zero indexing overhead."
Reported results
All figures are Z.ai's own. In a 30B iso-parameter ablation "with identical parameter counts and only ~10% more total training compute," the looped model gained most on math, scientific reasoning and long context, and "average output length drops by 10–14%, mostly from shorter chains of thought." The flagship claim is "intelligence levels comparable to 2T-3T parameter models," and serving "up to 200 tokens/s during off-peak hours" and "70–80 tokens/s at peak load." The blog also flags a limitation: the model "tends to get caught in overly long" thinking loops.
Availability is partial. The blog lists chat and coding products, says the API is "Coming Soon," and that Z.ai plans "to open-source the model weights responsibly after completing necessary safety hardening."
Compute moves, memory mostly does not
Calculation from the stated design: two passes over 28 layers means each token runs 28 extra layer computations with no new layer weights to store; only the small per-token gates are added. The memory cost a naive loop would add, a second full-length KV cache for those 28 layers, is replaced by one sliding window per layer. At the 1M-token context the blog cites, a second full cache would grow with all 1M positions; a window grows only to its fixed size, whatever the context. So looping turns a parameter question into a per-token compute question, and the 10–14% shorter outputs partly pay that compute back. The blog does not give the window size or the total layer count, so the exact ratio cannot be computed from public figures. This digest covered another looped design, Thinking Machines' Inkling 2 Mini, on November 23.
Original exercise, not executed: when the API opens, Hansini sends the same 50 CASE-6244 refund-policy questions to GLM-5.3 and GLM-5.4 and records output tokens, end-to-end latency and answer accuracy. If latency rises while output tokens fall, the extra loop depth is costing more than the shorter reasoning saves for that workload.
Sources accessed November 24, 2026. Views are my own and do not represent any employer, past or present.
Sources and evidence
GLM-5.4 reuses 28 layers for a second pass rather than adding parameters, and charges that pass only a sliding-window KV cache. The results are vendor-reported, and the weights and API are not yet available.