GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Z.ai's GLM-5.4 adopts the looped transformer architecture that Thinking Machines also just shipped, signaling the technique is moving from research curiosity into production coding models.
Chinese AI lab Z.ai has released GLM-5.4, an AI model for writing code. It is the company's first to use a 'loop transformer', a design where some layers of the network run multiple times per step, making the model think harder without making it bigger. Notably, Thinking Machines Lab released a looped model the same week. Anyone building coding assistants now has another option, though the model is not free to download.
Z.ai launched GLM-5.4, available only through its paid Coding Plan subscription rather than open weights or the standard API. Its headline change is a looped transformer architecture, a design Thinking Machines Lab's Inkling 2 Mini also adopted days earlier, suggesting a competitive shift toward this approach for reasoning-heavy coding work. Teams evaluating coding models gain a new option, but must subscribe to Z.ai's plan; no pricing details are given.
GLM-5.4 uses a loop transformer: weight-shared layers run multiple iterations per forward pass, refining hidden states and adding effective depth without raising parameter count. It is Z.ai's first such model, following Thinking Machines' Inkling 2 Mini, which loops middle layers three times per token. The model is closed-weights, API-only via the Coding Plan, though the key works against Z.ai's OpenAI-compatible Responses API endpoint at api.z.ai/api/v1.
Questions this answers
The article above answers these:
- What is a loop transformer and why does GLM-5.4 use one?
- How do I access GLM-5.4 through the Z.ai API?
- Is GLM-5.4 open weights or subscription only?
Read the original
This summary exists to save you time, not to replace the source.
Key terms
GLM-5.4 Z.ai Inkling 2 Mini Thinking Machines Lab Tommy Hughes llm-zai Ladybird
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.
The next generation of bionic hands is here, and they can feel
Very little changes for practitioners today, this is an early clinical trial, but a two-way neural interface prosthetic that one user can operate independently at home is a concrete milestone toward insurable, FDA-approved bionic limbs.