Loop transformers explained: how GLM-5.4 and Inkling 2 Mini reuse their layers, what the extra passes cost, and what is still unproven Z.ai's GLM-5.4, a 750B-parameter loop transformer that runs 28 layers of its GLM-5 base twice, and Thinking Machines' Inkling 2 Mini, a 26.4B-total/3.4B-active model that runs its middle layers three times, shipped this week as two designs that reuse layers per token to add depth without adding weights. Z.ai says an extra loop costs only one sliding window of KV cache because the second pass reuses the first pass's sparse cache and attention picks, keeping cost at 1 million token context close to GLM-5.3, and reports average output drops of 10 to 14 percent on most benchmarks in its 30B test model. Z.ai claims GLM-5.4 matches 2T to 3T parameter models, but its published benchmark gains come from that 30B test model, while Inkling 2 Mini's scores are for the released model, which ships open weights under Apache 2.0 at about 20 GB, mostly in NVFP4. Loop transformers explained: how GLM-5.4 and Inkling 2 Mini reuse their layers, what the extra passes cost, and what is still unproven Two labs shipped models this week that run some of their layers more than once per token. We put the two designs side by side, explain why the extra pass does not double memory, and separate what each lab measured from what it only claims. This explains reporting by Z.ai: Toward Generalized Coding with Our First Loop Transformer GLM-5.4 , published 23 November 2026 https://z.ai/blog/glm-5.4 . Read the original first: https://z.ai/blog/glm-5.4 https://z.ai/blog/glm-5.4 In one minute - A loop transformer runs a block of shared layers more than once for each token, so the network gets deeper without adding weights. - Z.ai's GLM-5.4 750B loops 28 layers of its GLM-5 base twice. Thinking Machines' Inkling 2 Mini 26.4B total, 3.4B active runs its middle layers three times. - Z.ai says an extra loop costs only one sliding window of KV cache, because the second pass reuses the first pass's sparse cache and attention picks. - Z.ai claims GLM-5.4 matches 2T to 3T parameter models, but its published benchmark gains come from a 30B test model. Inkling 2 Mini's scores are for the released model. What a loop is, in plain words A normal transformer is a stack of layers. Each token's numbers pass through layer 1, then layer 2, and so on, once each. A loop transformer takes a block of those layers and sends the token's numbers through the same block again, refining what the first pass produced. Because the second pass reuses the same weights, the model does more computation per token without getting bigger on disk. Z.ai's post credits the idea to the 2018 Universal Transformer and notes that looped models trained from scratch have trailed normal models at the same training budget. Z.ai's way around that: start from an already trained base model and convert it with continued training, instead of training a looped model from zero. The two designs side by side - GLM-5.4 Z.ai : 750B parameters. Loops 28 layers of the GLM-5 base, layers 27 to 54 per The Decoder, for two passes. Mixture of experts is not stated in the post. Available in Z.ai's coding plan, ZCode and chat; API and weights to follow. - Inkling 2 Mini Thinking Machines : 26.4B total parameters, 3.4B active, 5.4B weight activations per token once loops are counted. Runs the middle layers three times. Open weights under Apache 2.0, about 20 GB, mostly in NVFP4. - Shared reason: both labs say looping helps reasoning-heavy work more than memory-heavy work. Z.ai frames it as reasoning needs compute while memorized knowledge needs parameters. - Shared side effect: both report shorter written reasoning. Z.ai says average output drops 10 to 14 percent on most benchmarks in its 30B test; Thinking Machines says chains of thought got shorter with more loops but stayed readable. Why the second pass does not double memory When a model reads a long prompt it keeps a KV cache, a stored summary of every earlier token, so it does not redo that work for each new word. A naive looped model would keep a full cache for each pass, so two passes would mean two full caches. Z.ai says GLM-5.4 avoids that. The second pass reuses the sparse cache the first pass already picked, and keeps its own new entries only for a short sliding window of recent tokens. So an extra loop costs one window of cache, not a second full copy, which Z.ai says keeps the cost at a 1 million token context close to GLM-5.3. It does the same with attention. GLM-5.4 uses sparse attention, which picks the most relevant earlier tokens instead of reading all of them. The second pass reuses the first pass's picks, so choosing costs nothing extra. Z.ai says results were nearly the same as picking again each pass. There is one more piece. Z.ai found that simply overwriting the numbers on each pass makes them grow out of range for the layers after the loop. So each pass has a per-token gate that decides how much of its update to write back. After training, Z.ai says, the first pass writes small, careful updates and the second writes full ones, and harder tokens get bigger first-pass updates. What was measured, and on which model Z.ai's controlled test is on a 30B model with the same design as the 750B base. With the same parameter count and about 10 percent more training compute, the looped version beat the plain one on all five benchmarks in its chart. The Decoder reads the chart as AIME25 up from 19.2 to 30.4 and GPQA-Diamond up from 47.6 to 56.3. Z.ai has not published benchmark scores for the 750B GLM-5.4 itself, and there are no independent evaluations yet. The line about matching 2T to 3T parameter models is Z.ai's claim. Inkling 2 Mini's numbers are for the model you can download: 48.2 percent on DeepSWE v1.1 and 46.5 percent on Vals Index v2.2, which Thinking Machines says leads open models under 100B total parameters. Its research variant with a variable loop count kept improving on a serial reasoning test out to ten loops, twice what it was trained with. The monitoring question If more of the reasoning happens inside the loop, less of it is written out where a person or a monitor can read it. Z.ai describes this shift as reasoning moving from output tokens into the loop's depth. Thinking Machines tested this directly. It says its variable-loop model's no-chain-of-thought time horizon grew from 16 seconds at one pass to 37 seconds at three, its chain of thought stayed legible, and it did not trend higher on agentic sabotage tests as loops were added. That is the lab's own test on its own model. Z.ai names one weakness: GLM-5.4 can get stuck in overly long reasoning, though it says the extra checking improves accuracy. Who is affected | Case | Status | |---|---| | Teams wanting to run a looped model locally | Inkling 2 Mini: open weights, about 20 GB, Apache 2.0. | | Teams wanting GLM-5.4 by API or as weights | Not yet. Z.ai says an API and weights come later; pricing is not announced. | | Anyone comparing GLM-5.4 to frontier models | Wait. No 750B benchmark scores or independent evaluations are published. | What to do - If you run agents on a laptop or a small box, try Inkling 2 Mini from Hugging Face on one of your own tasks and compare tokens per task, not just pass rate. - Treat GLM-5.4's 2T to 3T claim as a claim until Z.ai or a third party publishes scores for the 750B model. - If you rely on reading chains of thought to supervise agents, note that looped models write less of their reasoning down, and test your monitor on them first. What is still unknown - GLM-5.4's scores on any public benchmark at 750B. - GLM-5.4's API price, weight license and release date. - Whether the 30B test gains hold at 750B, since Z.ai shows them only at 30B. - Inkling 2 Mini's monitorability results come from Thinking Machines' own tests, not outside reviewers. Sources - Z.ai: Toward Generalized Coding with Our First Loop Transformer GLM-5.4 , published 23 November 2026 https://z.ai/blog/glm-5.4 — the original report - Thinking Machines: Inkling 2 Mini https://thinkingmachines.ai/news/inkling-2-mini/ - The Decoder: Z.ai follows OpenAI into loop transformer territory with its new 750B flagship model https://the-decoder.com/z-ai-follows-openai-into-loop-transformer-territory-with-its-new-750b-flagship-model/ - Hugging Face: Inkling 2 Mini model card https://huggingface.co/thinkingmachines/Inkling-2-Mini AI News Report https://theainewsreport.com/ · every headline, every morning.