---
format: "aidr-story-markdown/v1"
id: "2f3ef0ead000ffc6df4c17bddb4bbd69aa6f10770ae15b80b7c292d6bae401e2"
canonical_url: "https://aidr.today/2f3ef0ea?lang=en"
title: "GLM-5.4: Toward Generalized Coding with Our First Loop Transformer"
lang: "en"
requested_lang: "en"
available_langs: ["en","vi"]
translation_fallback: null
fallback_fields: []
published_at: "2026-11-23T23:40:49.000Z"
category: "Models"
topics: ["llm"]
source_urls: ["https://simonwillison.net/2026/Nov/23/glm-54/"]
summary: "GLM-5.4: Toward Generalized Coding with Our First Loop Transformer GLM 5.4 is now available from Chinese AI lab Z.ai. It's their first model to use a looped transformer architecture, which they describe like this: In a standard Transformer, each layer runs once per forward pass. In a Loop Transformer, a group of weight-shared layers runs for multiple iterations, refining the hidden states from the previous pass. This gives us a deeper network without increasing the parameter count. This is the second mention of looped transformers I've seen in the past week - the first was Inkling 2 Mini from Thinking Machines Lab on November 20th, who said: Inkling 2 Mini is a looped transformer, running the middle layers of the model three times for every token. This allows the model to apply more reasoning and reach the right answer with fewer tokens, especially on tasks such as agentic coding that depend on reasoning quality. GLM 5.4 is not (yet?) available as open weights. I tried it out using the Z.ai API, for which I had to sign up for their Coding Plan subscription because 5.4 cannot currently be accessed through the regular API."
---

# GLM\-5\.4: Toward Generalized Coding with Our First Loop Transformer

> [Open the canonical story](<https://aidr.today/2f3ef0ea?lang=en>)

**Published:** 2026-11-23T23:40:49.000Z
**Category:** Models
**Topics:** llm

## Summary

GLM\-5\.4: Toward Generalized Coding with Our First Loop Transformer GLM 5\.4 is now available from Chinese AI lab Z\.ai\. It's their first model to use a looped transformer architecture, which they describe like this: In a standard Transformer, each layer runs once per forward pass\. In a Loop Transformer, a group of weight\-shared layers runs for multiple iterations, refining the hidden states from the previous pass\. This gives us a deeper network without increasing the parameter count\. This is the second mention of looped transformers I've seen in the past week \- the first was Inkling 2 Mini from Thinking Machines Lab on November 20th, who said: Inkling 2 Mini is a looped transformer, running the middle layers of the model three times for every token\. This allows the model to apply more reasoning and reach the right answer with fewer tokens, especially on tasks such as agentic coding that depend on reasoning quality\. GLM 5\.4 is not \(yet?\) available as open weights\. I tried it out using the Z\.ai API, for which I had to sign up for their Coding Plan subscription because 5\.4 cannot currently be accessed through the regular API\.

## Sources

- [Story source](<https://simonwillison.net/2026/Nov/23/glm-54/>)

