# Z.AI's GLM-5.4 is a loop transformer, running shared layers several times per token

> It's the second looped model in a week, after Thinking Machines' Inkling 2 Mini. Simon Willison got access through Z.AI's coding plan.

- URL: https://devisdead.ai/news/z-ai-s-glm-5-4-is-a-loop-transformer-running-shared-layers-several-times-per-tok
- Published: 2026-11-27T15:05:17Z
- Author: DevIsDead Newsroom
- Section: Dev
- Tags: z-ai, glm, models, architecture, china
- Originally reported by Simon Willison's Weblog (https://simonwillison.net/2026/Nov/23/glm-54/).

Chinese lab Z.AI's GLM-5.4 is the company's first model built on a looped transformer architecture, [Simon Willison](https://simonwillison.net/2026/Nov/23/glm-54/) notes. A standard transformer passes through every layer a single time. In GLM-5.4, a group of layers that share weights runs several times, refining what the previous pass produced, which gives a deeper network without adding parameters.

Willison says it's the second looped model he's seen in a week. On November 20, Thinking Machines Lab said its Inkling 2 Mini runs its middle layers three times per token so it can reason more and reach answers with fewer tokens, particularly on agentic coding.

## Trying it

The weights aren't open yet. Z.AI says it will release them after finishing safety hardening. For now GLM-5.4 isn't on the regular API either, so Willison signed up for Z.AI's Coding Plan, then found that both share the same OpenAI-compatible Responses API and the coding plan's key worked there too. He wrote an llm-glm plugin for his LLM tool because the existing llm-zai plugin doesn't support the new model yet.

His usual test, an SVG of a pelican on a bicycle, shows a shift: GLM 5.1 and 5.2 drew strikingly different pelicans from everyone else, while 5.3 and 5.4 now look much like what OpenAI and Anthropic models produce.

**[Scoreboard](/scoreboard) update:** AI +1. The models are learning to think twice with the same weights.

Stay undead.
