Chinese artificial intelligence lab Z.ai has made GLM-5.4 available, the company’s first model to use a looped transformer architecture. The approach runs the same layers repeatedly, increasing the network’s effective depth without requiring more parameters.
In a conventional transformer, each layer runs once during a forward pass. In the approach used by GLM-5.4, a group of layers sharing the same weights instead runs through multiple iterations, refining the previous pass’s hidden states each time.
Thinking Machines Lab described a similar architecture for Inkling 2 Mini, introduced on November 20. The company said the model’s middle layers run three times for each token, potentially helping it reach correct answers with fewer tokens, particularly on reasoning-intensive tasks such as agentic coding. The source does not say how many iterations GLM-5.4 uses.
Access and initial tests
GLM-5.4’s weights have not been openly released, and the model is not currently accessible through the regular API. The source author tested it with a Z.ai Coding Plan subscription. The author found that the Coding Plan and regular API use the same OpenAI-compatible Responses API, and that the subscription’s API key provided access to the new model.
The author built a plugin called llm-glm for the test, then discovered that Tommy Hughes had already created a plugin called llm-zai. The author released the new plugin because llm-zai did not yet support the model, but may retire it once the other plugin adds support.
The author also tested GLM-5.4 on a pelican task at low, high and maximum effort levels, then repeated the tests with GLM-5.3. In the author’s assessment, the two generations produced results of similar quality. Earlier GLM 5.1 and GLM 5.2 pelicans had a distinctive appearance compared with those from other models, whereas the GLM-5.3 and GLM-5.4 results were more comparable to outputs from OpenAI and Anthropic models. A comparison of all four generations showed a particularly sharp change in style between 5.2 and 5.3.



