TL;DR

GLM-5.4 reuses a shared block of 28 layers for two passes to add computational depth. Z.ai’s controlled 30B study and selected creative demos are useful evidence, but they do not establish flagship benchmark scores or production reliability. Test the finished artifact, its revisions and total completion time.

A coding agent can produce a page that looks finished and still leave you with most of the work. The layout breaks on a phone. The animation drifts out of sync. The CAD model looks convincing until someone checks its joints.

That gap between producing code and finishing a usable artifact is a good place to start with GLM-5.4. Z.ai’s new flagship reuses a block of model layers to increase computational depth. Its launch demonstrations also reach beyond familiar repository tasks into video, interactive graphics, games and mechanical design.

Those are related developments, but a demonstration alone cannot establish that the architecture caused the result. To judge the release, we need to separate the mechanism, the experimental evidence and the work a developer might actually hand to the model.

The short assessment GLM-5.4 is an interesting candidate for tasks that require several connected decisions and a visible result. Its looped design offers a way to spend more computation without duplicating a large block of weights. Whether it saves you time depends on the quality of the finished artifact, the tools around it and how long it takes to stop thinking.

Conceptual redraw based on Z.ai’s November 23 architecture description. The repeated block adds computational depth; it does not turn the whole network into two independent copies.
Two passes through the same 28 shared layers, with gated residual updates, shared sparse global KV, a separate local KV window and reused attention indices.

When the deliverable is more than a code diff

Z.ai calls this broader direction “Generalized Coding”: using code as the means to create and control many kinds of output. A scene can be described through geometry and shaders. A video can be assembled from timed, rendered elements. A mechanical part can be represented by a CAD program.

The practical attraction is editability. When an artifact has a useful programmatic representation, a revision can target its rules: change the motion, tighten a constraint, replace a material or adjust a sequence. That can make follow-up work more precise than starting again from a prompt.

The launch examples illustrate four different demands on a coding agent. Each also suggests a better test than asking whether the first result looks impressive.

Keep a sequence coherent

Z.ai presents a self-narrated music video called “Hello World.” The useful engineering question is how reliably a model can coordinate visual events, timing and later revisions.

Try a revision: change one scene’s duration and check that everything after it still lines up.

Build a scene you can inspect

A bird-watching demo uses mathematical geometry and custom GLSL shaders. Procedural construction exposes details that can be adjusted in code, from shape to lighting.

Try a revision: change the camera and lighting, then inspect the scene from an unflattering angle.

Preserve relationships between parts

A six-axis robotic arm built in FreeCAD puts dependencies at the center of the task. A plausible render says little about whether dimensions, joints and motion remain consistent.

Try a revision: alter a link dimension and verify the assembly. A demo does not establish physical safety.

Make the systems agree

The game demonstration spans movement, physics, maps, combat and assets. Integration is the hard part: a change to one system can create failures elsewhere.

Try a revision: change movement speed and check collisions, combat timing and the win condition.

These are proposed evaluation tasks, not results from tests conducted for this article. They make the same point: the second request often tells you more than the first. A model that can repair a specific weakness without breaking the rest of the project is much easier to work with.

More computation from a shared block of weights

In a conventional Transformer forward pass, a representation moves through each layer once. Z.ai describes GLM-5.4 as running 28 layers from the GLM-5 base model through two iterations. The layers share weights across those iterations; the hidden state changes as it passes through them again.

This distinction matters. Reusing weights increases the computation performed by that block without adding another independent set of those weights. It does not make the extra pass free. There is still more work to schedule, more intermediate state to manage and an inference cost to control.

It also differs from asking a model to write a longer explanation. A loop changes computation inside the network. A longer generated response adds tokens outside it. Both may affect the result, and their costs do not move together in a simple way.

Z.ai adapted an already pretrained base through continued training. Its release notes describe a reason for that choice: in the research it discusses, looped models trained from scratch had not matched unshared models under an equal pretraining compute budget. Starting with an existing base allowed the team to explore extra depth without repeating the entire pretraining process.

Shared weights reduce duplication. The remaining problem is how to make another pass productive.

For a developer, the plausible benefit is better handling of dependencies across a long task. A visual specification, an implementation constraint and a later correction may all need to remain consistent. That is an interpretation of why the design could help; it is not a guarantee that every long task will improve.

A second pass creates three practical problems

The headline describes repetition. The more revealing part of the release is how Z.ai makes repetition compatible with a large pretrained model and long contexts.

1. Control how much each pass changes

Running an existing block repeatedly can push activation magnitudes outside the range later layers expect. Z.ai uses separate per-token gates for each iteration to control how much of a candidate update enters the residual stream.

The company describes a division of labor after training: the first pass usually makes restrained updates while building context; the second uses that state to make fuller refinements. Gate values also vary with token difficulty. This is control over the size of an update. The release does not say that difficult tokens already receive a variable number of loop iterations.

2. Avoid duplicating the entire context cache

A KV cache stores attention keys and values so the model can reuse information about previous tokens during generation. Keeping a full, separate cache for every loop iteration would increase memory use sharply, particularly at long context lengths.

GLM-5.4 instead lets the second pass reuse sparse global KV from the first pass and maintain its own newly generated KV within a local sliding window. Z.ai says this makes the extra cache cost a window rather than another full context. It is a specific memory-saving design, not a promise that long-context inference has become cheap.

3. Reuse the attention selection work

The base model uses sparse attention, which selects positions to attend to. The second loop reuses the first loop’s attention indices. According to Z.ai, its experiments found nearly the same performance as recomputing those indices on each pass.

Removing that repeated indexing work addresses one source of overhead. The second pass still performs computation. Z.ai also describes fused kernels that reduce intermediate memory traffic, reinforcing how much the serving system matters alongside the model design.

The 30B experiment and the flagship answer different questions

The most useful controlled experiment described in the release uses a 30B model. Z.ai compares versions with identical parameter counts, with the looped version using about 10% more total training compute. The stated evaluation setting is after 200K long-context supervised fine-tuning, with thinking enabled.

The company reports larger benefits on mathematics, scientific reasoning and long-context tasks. It also reports shorter average outputs across several benchmarks. These findings support further investigation of looped depth. They do not provide a GLM-5.4 flagship score on those same benchmarks, and they do not compare two training runs with identical compute budgets.

Evidence map · Z.ai’s November 23, 2026 technical release · Vendor-reported, not independently reproduced here

EvidenceWhat it supportsWhat remains unresolved
Controlled 30B comparisonAt equal parameter count, the looped model improved reported results with roughly 10% more training compute.The experiment does not isolate an advantage at equal compute or establish flagship benchmark scores.
Shorter outputs in the 30B studyBetter reported results can coexist with fewer generated reasoning tokens in that setting.Fewer tokens alone do not establish lower latency or a lower bill.
Creative and engineering demosThe selected projects illustrate a wider range of artifacts the model can help produce.Success rates, retries, human intervention and behavior on unseen tasks.
Claimed 2T–3T-level capabilityZ.ai positions the model as competitive with much larger models.A reproducible comparison with named versions, tasks and evaluation conditions.
Reported serving speedsZ.ai reports up to 200 tokens/s off peak and 70–80 tokens/s at peak.Latency and throughput under your context lengths, tools, concurrency and service conditions.

The original article also describes Z.ai’s own 200-task coding comparison. That is a separate type of evidence from the 30B architecture study. A preference judgment on selected programming outputs and an academic benchmark score measure different things; neither should be presented as a universal model ranking.

No benchmark scores are assigned in this article. The “2T–3T” phrase is a vendor capability claim, not GLM-5.4’s parameter count. Task selection, model versions, tool permissions and judging rules matter whenever a comparison is used to make a buying decision.

Choose a coding workflow around the work you need to finish.

Exploring open models for everyday development? Compare our multi-model Coding Plans, then check the current model list, usage allowance and tool compatibility. GLM-5.4 support should be confirmed on the plan page before purchase.

Explore Coding Plans ↗

Fast tokens and fast completion are different measurements

Z.ai’s reported generation speeds are encouraging, but tokens per second capture only part of an agent session. A user also waits for the first useful output, reasoning, tool calls, rendering, tests and revisions.

The release acknowledges a tendency toward excessively long “marathon thinking.” That can coexist with shorter average outputs in the 30B experiment. The figures concern different settings and summarize different behavior; an average also says little about the slowest individual tasks.

For a substantial project, spending longer on an initial attempt may be worthwhile if it prevents several repair cycles. For a small edit, the same delay may be annoying. Neither outcome follows automatically from the architecture.

A useful evaluation therefore measures time to an accepted result. If one model produces a polished scene quickly but cannot repair its interaction bugs, its initial speed is a poor guide to the total effort. The result that matters is the artifact you can use after review.

Test the revision, then count the work it took

A small set of real tasks can reveal more about fit than another broad ranking. Use work you understand well enough to review, and keep the instructions, environment and acceptance criteria stable across models.

  1. Define acceptance before generating. For a page, specify layout, responsive behavior, interactions and accessibility expectations. For a CAD task, name the dimensions and relationships that must hold. Avoid a single “looks good” judgment.
  2. Give competing models the same starting point. Use the same repository state, screenshots, dependencies and tool permissions. Record model identifiers, date, client and any reasoning or time limits so the comparison can be understood later.
  3. Run the artifact and inspect it. Build the project, exercise its controls, resize the browser or inspect the assembly. Save the failures you actually observe. Successful code generation is only one stage of acceptance.
  4. Request one targeted change. Change a layout constraint, animation duration or component dimension. Check whether the model preserves the parts that already worked. This tests its ability to maintain a coherent project through revision.
  5. Count attempts and intervention. Record elapsed time, retries, tool failures, manual edits and usage where visible. If usage or cost is unavailable, leave it unknown. Repeat enough tasks to avoid building a conclusion around one lucky run.

This is a proposed evaluation method, not a claim that GLM-5.4 has passed it. It is especially useful for the kinds of visual and integrated work featured in the launch, where a screenshot can conceal substantial defects.

Try the available product; keep deployment plans conditional

At its November 23 announcement, Z.ai lists GLM Coding Plan, ZCode and Z.ai Chat as ways to use GLM-5.4. The technical release lists API access as coming soon and plans a weights release after safety hardening. Availability through a subscription product does not establish that a general API endpoint or a downloadable checkpoint is ready.

The original article reports a 1.5× GLM-5.4 allowance for Coding Plan V2, V3 and Team users. Treat that as a dated, plan-specific entitlement statement. It is not an API price, and it should not be assumed to apply to every provider or subscription. Check your account’s current terms before planning around it.

The architecture also leaves a useful research question open: how much extra computation should each token receive? Z.ai says it is exploring adaptive iteration counts and how looping scales alongside larger models. The released two-pass description should be kept separate from that future work.

For now, the sensible next step is a bounded trial on a task with a visible, inspectable result. Ask for a change after the first version. If the model preserves the structure, fixes the defect and reduces the work left for you, that is evidence you can act on.

Before you switch models

Does looping double GLM-5.4’s parameter count?

No. Z.ai describes two passes through a shared block of 28 layers. Those passes reuse weights, while adding computation. That does not mean the complete model has no additional serving overhead.

Is GLM-5.4 a 2T–3T-parameter model?

The release uses that range as a claim about comparable capability. It discusses its architecture at the 750B scale. Capability comparisons and parameter counts should not be treated as interchangeable specifications.

Do the 30B results give GLM-5.4’s benchmark scores?

No. They describe a controlled architecture experiment on a 30B model, with equal parameter counts and about 10% more total training compute for the looped version. They should retain that scope when quoted.

Can it replace a dedicated video or CAD system?

The demos show code being used to create artifacts through appropriate tools. They do not establish that every supporting tool is unnecessary, that all output is production-ready or that a mechanical design is safe to manufacture.

Will shorter reasoning output make it cheaper?

That cannot be concluded from output length alone. Extra internal computation, pricing, retries and tool execution all affect the total. Measure the cost of an accepted result where the necessary usage data is available.

Are the API and weights available?

The November 23 technical release lists the API as coming soon and weights as planned after safety hardening. Confirm current availability before building an integration or planning a local deployment.

Editorial note. Based on the original V4 Dev Hub article and Z.ai’s November 23, 2026 technical announcement. Architecture descriptions, experiments, demonstrations and serving figures are attributed to the vendor. The workflow analysis is our interpretation. No independent timing, capability or reliability tests were performed for this article.