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.

Read this as

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