Skip to content

Z.ai releases GLM-5.4, its first looped transformer model

Short answer

Chinese lab Z.ai has released GLM-5.4, its first model built as a looped transformer, where shared layers run several passes to deepen the network without adding parameters. For now it is reachable only with the Coding Plan subscription, and open weights have not been released.

What this means for operators

If your team runs coding assistants or agent workflows through an OpenAI-compatible client, GLM-5.4 can be tried by pointing that client at Z.ai's endpoint with a Coding Plan key, so a trial costs a subscription and an afternoon rather than an integration project. Run it on a handful of your own recurring tasks, such as report scripts, CRM clean-up or support macros, and compare results at several effort levels before you change any production setup. Do not plan around self-hosting, because open weights are not available at this point.

Chinese AI lab Z.ai has made GLM-5.4 available, and Simon Willison's write-up is the source for the details below. It is the lab's first model built as a looped transformer.

What a looped transformer changes

A standard transformer passes data through each layer once. In the looped design Z.ai describes, a group of layers sharing the same weights runs several times, and each pass refines the hidden states left by the previous one. According to Z.ai, the result is a deeper network without a larger parameter count.

Willison notes this is the second looped model he has seen in a week. Thinking Machines Lab described Inkling 2 Mini on November 20th as running its middle layers three times for each token. The lab's claim is that the extra passes let the model reason more and reach correct answers with fewer tokens, particularly in agentic coding. That is the vendor's claim, and the source does not show independent measurements for either model.

How to get at it

GLM-5.4 is not available as open weights, and the source leaves open whether that will change. Willison could not reach it through Z.ai's regular API. He had to sign up for the Coding Plan subscription. Both the coding plan and the regular API use the same OpenAI-compatible Responses API, at api.z.ai/api/v1, and the coding plan key gave him access to the new model.

He wrote a plugin called llm-glm for his own command-line tool. A plugin called llm-zai, by Tommy Hughes, already exists but does not yet support the new model. Willison says he will probably retire his version once that plugin catches up.

What the quick test showed

Willison ran his usual image-drawing test at low, high and max effort levels. He had skipped GLM-5.3 earlier, so he ran it at the same levels. The output of 5.4 looks similar in quality to 5.3. He also observes that the 5.3 and 5.4 results look much closer to what OpenAI or Anthropic models produce, while GLM 5.1 and 5.2 had a distinctly different style. This is an informal visual check and says little about coding quality or business tasks.

What is still unknown

The source gives no pricing for the Coding Plan, no benchmark results and no timeline for open weights. Anyone considering GLM-5.4 should treat those points as open until Z.ai publishes them.

Source: Simon Willison

The tools in this story

Next step

Visibility Analyzer

An AI news item will not tell you how assistants see your own site. The Visibility Analyzer checks that on your live site: which answers cite you, which pages an engine cannot retrieve, and what to fix first. Free to run.

Run a free visibility audit

Free to run. No card.

Fee
Free
Length
One run, minutes

Free tier: two analyses a day, no card required.