Z.ai unveiled GLM-5.4 on Monday, featuring a Loop Transformer architecture designed to increase computational depth by running identical layers repeatedly without expanding the parameter count.

According to Z.ai, "The company claims its 750-billion-parameter model can match the reasoning performance of models with 2 trillion to 3 trillion parameters," though comprehensive benchmarks validating this claim have not been released.

The model, developed through continued training of GLM-5, executes a shared block of 28 layers twice during inference. The architecture targets computationally intensive coding and agentic applications.

Achieving depth without parameter expansion

Z.ai opted to adapt an existing pretrained model after discovering that looped Transformers trained from the beginning underperformed standard models when given equivalent pretraining resources.

Implementing repeated layers at this magnitude introduced challenges with activation stability and attention caching. To address these issues, Z.ai implemented per-token gates that control updates to the residual stream and prevent activation norms from escalating across multiple passes.

GLM-5.4 reuses the KV cache from the initial pass and employs a distinct sliding window for the second iteration, eliminating the memory overhead of storing the full attention history when handling context windows up to one million tokens. The model also recycles sparse attention indices between passes, which Z.ai reports had minimal performance implications in testing.

"Z.ai developed fused inference kernels to reduce intermediate memory reads and writes during repeated layer execution."

Results from 30-billion-parameter testing

Z.ai evaluated the architecture across 1 billion, 4 billion, 30 billion, and 750 billion parameters, with detailed results available only from the 30-billion-parameter variant.

In these evaluations, the looped architecture surpassed a standard Transformer of equivalent size on mathematical reasoning, scientific problem-solving, and extended-context tasks, despite consuming roughly 10% more training compute.

The model also produced 10% to 14% fewer output tokens on assessments such as MMLU-Pro and GPQA-Diamond. Z.ai attributes this reduction in output length to reasoning occurring within the repeated layers rather than being expressed through additional generated text.

From code to robot arms

Z.ai brands its methodology as Generalized Coding. Demonstrations of GLM-5.4 showcase game development with physics and combat mechanics, 3D environment creation using GLSL shaders, and six-axis robotic arm design in FreeCAD.

Z.ai head Zixuan Li posted on X that GLM-5.4 shows improvements relative to GLM-5.3 in test authoring, code review, feature implementation, bug resolution, and shell-based operations, though Z.ai has not disclosed the specific evaluations behind these claims.

Throughput has fluctuated since the model's release. Z.ai reports throughput reaching 200 tokens per second during low-traffic periods, declining to 70 to 80 tokens per second when traffic peaks.

One developer initially observed speeds of 150 to 170 tokens per second, with subsequent reports showing 40 to 50 tokens per second and service errors later in the day. Standardized measurements comparing inference speed and operational cost have not been made available.

"Z.ai also acknowledges that GLM-5.4 can spend excessive time reasoning through tasks." The company is investigating adaptive computation methods to restrict additional iterations to tokens requiring them.

GLM-5.4 is accessible via the GLM Coding Plan, ZCode, and Z.ai Chat, offering vision capabilities and support for a one-million-token context window.