Skip to content
AI Learning Ground Start learning

News ·

GLM-5.4: Toward Generalized Coding with Our First Loop Transformer

Z.ai released GLM 5.4, its first model using a looped transformer architecture that reuses weight-shared layers across multiple iterations. Open weights are planned but not yet released, and access currently requires Z.ai's Coding Plan subscription.

GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
Image: Simon Willison

Chinese AI lab Z.ai has released GLM 5.4, the first of its models to use a looped transformer architecture. In this design, a group of weight-shared layers runs for multiple iterations per forward pass, refining hidden states each time, which gives the network more depth without increasing parameter count.

The model is not yet available as open weights; Z.ai says it plans to open-source the weights after completing necessary safety hardening. It is currently only accessible through Z.ai's Coding Plan subscription rather than the regular API, though Simon Willison found that both plans share the same OpenAI-compatible Responses API endpoint, so his coding plan key worked there. He built an llm-glm plugin to access it, noting that the existing llm-zai plugin by Tommy Hughes does not yet support the new model.

Looped transformers appear to be gaining traction: Thinking Machines Lab released Inkling 2 Mini on November 20th, a looped transformer that runs its middle layers three times per token, which the company said lets the model apply more reasoning per token, particularly on reasoning-heavy tasks like agentic coding. For developers building with AI, the looped approach suggests a new efficiency direction in model design, and GLM 5.4's coding focus makes it a practical option to test now via the API, with open weights potentially following later.

References

Read the full story at Simon Willison ↗Like, save or discuss on Buzz

#tooling #prompting