AI DevelopmentNew Release7 min readPublished · Updated

Who Can Use GLM-5.4, and Why Does It Run 28 Layers Twice?

Z.ai’s November 23 release gave coding subscribers access to its first flagship with repeated layers. A diagram of one pass explains the design. The access table explains which teams can try it.

DA
Digital Applied
PublishedNovember 23, 2026
Read time7 min
SourcesZ.ai · ZCode

GLM-5.4 became available to Z.ai’s coding subscribers on November 23, 2026. A developer could open ZCode and give it a real edit that day. An engineering manager looking for a model to embed in a product faced a different answer. Z.ai listed the general API as forthcoming and said it intended to publish weights after further safety work. The architecture announcement, the desktop release and the model license are different pieces of evidence.

The reason to try this particular release is a change inside the network. Z.ai sends information through the same group of 28 layers twice. The second trip gives the model another opportunity to work on what it has already computed. For a coding team, the interesting question is whether that extra work results in a better patch within the time and quota it has available. Z.ai’s November 23 announcement

Key takeaways
  1. 01
    The middle of the network runs againA block of 28 layers processes the updated state a second time. Z.ai reuses the weights and attention selections while making room for new information.
  2. 02
    Subscribers have a route inGLM Coding Plan accounts can use the model through supported tools. ZCode 4.0.0 ships with the model preconfigured for those accounts.
  3. 03
    API and weights have separate conditionsZ.ai tied its general Model API to a security assessment and future weight publication to safety hardening. The November release gave neither a delivery date nor an API tariff.
  4. 04
    Read the 30B trial at its own scaleThe controlled comparison keeps parameter count fixed. It uses additional training compute and reports results from a smaller model, including shorter answers on several tests.

01 — Release dayWhere you could use it on November 23

Start with what you need to do. A coding subscription might be enough to find out whether a model can fix a failing test. If you need to dispatch that task from your product’s own server, the identity, billing and service terms on that request matter. If the repository must stay on your own infrastructure, neither a desktop login nor a hosted endpoint supplies a local copy of the model.

Z.ai’s model and access guide and the ZCode changelog. Availability checked November 27.
RouteWhat the publisher offeredWhat a team could decide
GLM Coding PlanAccess for all plan users through supported coding toolsTrial an actual edit within the subscription.
ZCodeVersion 4.0.0 preconfigured GLM-5.4 for Coding Plan usersTry the desktop coding environment using that account.
General Model APIAvailability to follow a security assessmentLeave a production integration contingent on an endpoint and terms.
Downloadable weightsAnnounced as planned after safety hardeningA self-hosting decision still needs an actual release and license.

Z.ai also lists its own Chat interface in the launch announcement. That offers a way to explore the model conversationally. A code change that needs file access, a test command and a diff has more dependencies than a question in a chat box. A useful trial records which interface performed the work, how the repository reached it and who was responsible for accepting the result. Our earlier guide to the ZCode development environment

02 — Model designFollow a token through both passes

A transformer keeps a changing numerical representation of each token. Each layer reads that representation, combines information and writes an update. In a conventional stack, successive layers have their own learned weights. Z.ai adapted an already trained GLM-5 base so a block of its middle layers can be visited again. The operations in that block keep the same learned weights on their second visit.

One forward pass through GLM-5.4’s repeated block
  1. Earlier layers prepare the current token representations.
  2. A block of 28 layers processes them. The first iteration selects which positions in the context deserve attention.
  3. The same block runs on the updated representations. Separate gates control how much of the candidate update to write back at this iteration.
  4. Later layers receive the result of the two passes and continue toward the output prediction.

Think about an input containing a failing test and the helper it calls. An early representation can collect evidence that the two pieces of code refer to the same option. An updated representation can carry that relationship into another computation. That is an illustration of why effective depth might help. The published architecture does not assign one named software-engineering task to each pass. Z.ai’s explanation of the shared layers and per-token gates

03 — Long contextWhat the second pass remembers

Running layers again raises an obvious systems question. Does the serving machine have to keep another complete copy of the information it uses to look back through the prompt? Attention uses stored keys and values to retrieve relevant earlier information. With a long repository in context, these stored representations can matter to the cost of serving a request.

Z.ai reports that its second pass reuses the first pass’s selection of relevant positions and its sparse stored keys and values. The second pass also has fresh keys and values of its own within a local sliding window. A nearby token can therefore contribute an updated representation, while the model retains access to the earlier sparse selection. The extra cache for this design grows by one sliding window per loop, according to Z.ai’s description.

The guide lists a one-million-token context and up to 128,000 output tokens. Those figures describe different limits. An input that fits is still an input that the application has to assemble and the service has to process. For a single-file correction it may be quicker and easier to give the model the failing test, its caller and the relevant helper. Keep a much larger task for the part of the trial where broad context earns its keep. Model limits and cache design

04 — Controlled trialThe clearest comparison used a smaller model

To learn whether repeated layers were doing useful work, the researchers compared versions of a 30-billion-parameter model with the same parameter count. They say this model used the same architecture as their roughly 750B-scale base. They evaluated the smaller models after long-context supervised fine-tuning with thinking mode enabled. The looped version used about 10% more total training compute.

This is a useful experiment precisely because the authors say what they held constant. The model did not get a larger set of weights to store facts. It did get more computation. On most of the cited tests, including GPQA-Diamond and MMLU-Pro, average output length fell by roughly 10–14%. A model can perform more computation inside its network while producing fewer visible tokens in an answer.

Applying that percentage to a coding budget would require more evidence. A tool-using session can read files, call a shell, repeat a test and revise its patch. The experimental output-length result covers another model and another workload. The earlier GLM-5.3 release also changed how Z.ai trained its coding agents, which is another reason a release-to-release comparison cannot isolate the contribution of the loop. Z.ai’s experiment · The earlier GLM-5.3 training changes

05 — Serving loadHow fast is a finished answer?

Z.ai gives two serving figures for the released flagship. It reports up to 200 output tokens per second off peak and 70–80 at peak. These figures describe generation while tokens are arriving. A developer also waits for the first token, tools to respond and a complete answer that satisfies the request. The provider itself notes that the model can sometimes spend a long time thinking.

For an illustrative calculation, 800 output tokens at a sustained 80 tokens per second take ten seconds to emit. At a sustained 200 they take four. Neither figure includes the wait before generation, repository search or the test the agent runs. When the result that matters is a passing patch, time the full task as well as the output stream. A shorter answer with a second test run could finish later than a longer one that succeeds immediately. Z.ai’s load-dependent figures · How first-token delay differs from output speed

06 — SubscriptionWhat the larger allowance buys

For users on weekly quota plans, Z.ai says the GLM-5.4 allowance is 1.5 times that for GLM-5.3. A relative allowance needs a reference point. If an allowance were expressed as 100 units for the old model, the ratio would imply 150 corresponding units for the new one. Those are illustrative units. The statement supplies neither an ordinary API price per million tokens nor a fixed number of completed repository changes.

One developer with an active plan
Run the same bounded change on the old and new model and retain the resulting diffs.
Subscription trial
A team embedding model calls
Confirm the public endpoint, authentication, supported model ID and billing terms together.
Service access
A repository that must stay on site
Ask for the released weights, license and a supported serving path before sizing hardware.
Self-hosting

Changing the route can change the economics even when two tools show the same model name. A plan can include an allowance for interactive coding, while a general endpoint can have separate metering. Z.ai’s previous launches illustrate why the name displayed in a model picker is insufficient to settle a procurement question. How GLM’s earlier API and coding routes differed

07 — Repository taskLet one edit decide the next step

Give the model a parser whose documented default is to preserve blank fields and a command-line wrapper that currently discards them. Ask it to fix the behavior in both paths, preserve existing flags and add a test for the empty last column. An evaluator can write the expected output before choosing a model. A solution that merely changes the documentation is easy to recognize even if the explanation sounds confident.

Start both trials from the same clean commit. Record the model route, the prompt, time to the first proposed edit, test results, human corrections and total elapsed time. If one tool enjoys access to a build cache that the other lacks, keep that fact with the timing. A second task can ask the model to follow the same convention across a wider repository. That makes the long-context claim relevant to work the team actually has. Digital Applied’s AI transformation services

A subscriber who gets a passing result has grounds to extend the experiment to another developer. A product team still needs service access before that same result can inform a release date. Keeping the patch and the access record side by side gives each decision the evidence it requires.

Decision

Choose the access route before estimating the rollout

A Coding Plan can answer whether GLM-5.4 helps a developer land a particular edit. A production application needs separate evidence that it can call the service under acceptable terms. A local installation needs the weights themselves. Those are three decisions a team can make on three different dates.

Developer workflows

Evaluate a coding model on a change you need

Define a comparable repository task, review the resulting patch and account for the access route your team can use.

Repository trialsModel selectionCost and access
For a trial

Bring one representative edit

  • →A known starting commit
  • →A test that proves the change
  • →The intended runtime or coding tool
Answers

Frequently asked questions

Z.ai’s model guide checked November 27 said its general Model API would follow a security assessment. A subscriber’s ability to use the model in a coding tool establishes access under that plan.

Digital Applied newsletter

Deep dives on AI, marketing and development.

Practical guides and fresh insights by email. No recycled takes.

Related dispatches

Related reading

AI Development

Should You Run Inkling 2 Mini on a 32 GB Mac or Use an API?

See what fits on a 32 GB Apple silicon Mac, how much the same coding task costs on Tinker, and when to keep repository work on your own machine.

November 21, 2026 · 9 minRead
AI Development

Gemini 4 Neon vs GPT-6.2 Sol vs Claude Sonnet 5.5 Pricing

Compare direct API prices, the 272K-token cutoff, cache costs and independent coding scores. See the bill for 100 jobs on Gemini 4 Neon, GPT-6.2 Sol and Sonnet.

November 19, 2026 · 9 minRead
AI Development

Microsoft MAI Code 2 and Flash: Price, Quality, Access

Compare MAI Code 2 and Flash in GitHub Copilot, including who gets each model, what Microsoft measured, and how token prices change on May 17, 2027.

November 19, 2026 · 8 minRead
AI Development

Which AI Coding Agents Let You Intercept Tool Calls?

Claude Code, Codex, Cursor, Gemini CLI, Copilot and seven more compared: which events each hook system exposes, what it can block or rewrite, where it runs.

October 3, 2026 · 6 minRead
AI Development

Kimi K2.8 Preview: What Changes for Kimi Code Users?

Check Kimi K2.8 Preview access, context limits and reasoning settings, then plan a coding trial that separates official specifications from performance claims.

September 13, 2026 · 7 minRead
AI Development

Building Games With Astra: A Practical Playtest Guide

Plan an Astra-assisted game around a playable loop, repeatable checks and human feedback. Use a practical playtest method before investing in more polish.

September 9, 2026 · 6 minRead
Google Search

See more Digital Applied analysis in your Google results by adding us as a preferred source.

Add as a preferred source