Z.ai has introduced GLM-5.4, its first flagship model built around a Loop Transformer architecture. Rather than increasing depth only by stacking unique layers, the 750-billion-parameter system runs a shared block of 28 layers twice. The aim is to spend more computation refining a representation without duplicating all of the weights that would normally create a deeper network.

The company positions the model as a step towards “generalised coding”: using code generation and execution as a foundation for software engineering, cybersecurity, video creation, games, 3D work and mechanical design. It is available through Z.ai Chat, ZCode and GLM Coding Plan subscriptions. API access is listed as coming soon, while open weights are planned after further safety hardening.

What looping changes

A conventional Transformer passes information through each layer once. In GLM-5.4, a middle block derived from the GLM-5 base is revisited, letting the second pass refine hidden states created by the first. Z.ai says it adapted an already pretrained model through continued training rather than training the looped architecture from scratch.

Weight sharing makes the approach parameter-efficient, but it introduces engineering problems. Repeatedly overwriting hidden states can cause activation scales to drift. Keeping a separate full key-value cache for every pass would increase memory costs, and recomputing sparse-attention indices would add overhead.

Z.ai addresses these issues with per-token gates that control how strongly each pass writes back to the residual stream. The company says the first pass tends to establish global context conservatively, while the second makes fuller updates. Harder tokens can receive a stronger early write, creating a limited form of difficulty-sensitive computation.

Containing memory and indexing costs

The model combines cross-loop key-value sharing with an independent local sliding window for the second pass. Sparse context selected in the first loop can be reused, while the new pass retains updated local representations. According to Z.ai, an additional loop therefore costs one sliding-window cache rather than a second full-context cache.

That matters at the advertised one-million-token context length, where key-value memory can dominate deployment. The second loop also reuses sparse-attention indices generated by the first, avoiding another indexing step. These choices show that looped depth is as much an inference-systems problem as a model-design idea.

Z.ai reports that a controlled 30-billion-parameter experiment used about 10 per cent more training compute than its non-looped comparison and improved mathematics, scientific reasoning and long-context tasks. It also says output reasoning became 10 to 14 per cent shorter on several benchmarks, suggesting some computation shifted from visible chain-of-thought tokens into the repeated internal block.

Performance claims need context

The company says GLM-5.4 can reach up to 200 tokens per second during off-peak periods and sustain roughly 70 to 80 tokens per second at peak load. Those figures describe Z.ai's serving environment, not a hardware-neutral model speed. Real performance will depend on request size, batching, region, plan and the eventual API implementation.

Z.ai also says the model's intelligence is comparable with systems containing two to three trillion parameters. That is a vendor claim rather than an independent parameter estimate or universally accepted capability measure. Looping changes the amount of compute applied per token, so simple parameter comparisons become less informative; evaluations should include latency, total compute, output quality and cost.

The architecture has a known behavioural drawback. Z.ai says GLM-5.4 can fall into overly long “marathon thinking” loops. Extra reflection may improve accuracy, but it can also increase latency, unpredictability and token use. Production teams will want controls for maximum reasoning time and clear telemetry when the model repeatedly revises its answer.

Availability and practical impact

GLM Coding Plan V2, V3 and Team Edition users receive a 1.5-times usage quota for GLM-5.4 in AutoClaw. Chat and coding products offer the immediate access route. Developers waiting for an API or self-hosted weights should not design around unannounced delivery dates; Z.ai has stated intent but has not made those channels generally available in the launch post.

The release is technically interesting because it treats effective depth as another scaling axis. Bigger models have traditionally meant more unique weights, more memory traffic and more difficult deployment. Reusing a block offers a different balance: additional computation and latency in exchange for parameter efficiency and potentially stronger iterative reasoning.

Whether looped flagship models become common will depend on independent testing and economics. GLM-5.4 provides a large-scale demonstration, along with concrete cache and gating techniques. Its real significance will emerge when developers can compare API cost, reliability and open-weight deployment against conventional architectures under the same workloads.

A new scaling trade-off

Looped depth may be attractive where memory bandwidth is the main constraint because the same weights can be reused after they are loaded. It is less obviously beneficial when latency or energy per token dominates. Buyers will need measurements that separate first-token delay, sustained generation, reasoning duration and total task completion cost. A model that produces fewer visible reasoning tokens can still perform more internal computation. Transparent billing and telemetry will determine whether the architectural efficiency becomes an operational saving.