GLM-5.4 Runs Layers Twice
7 stories · ~7 min read

Listen
If You Only Read One Thing
One fewer round trip to an AI model ought to save time. Z.ai’s GLM-5.4 sends each token through 28 layers twice, yet cutting its tool calls in one early coding trial barely changed how long the fix took. OpenAI and Cisco’s Shirudo goes after a different delay. Operators can apply a temporary defense to a running Linux service while they test the permanent fix.
GLM-5.4 Adds a Second Pass Through 28 Layers
Z.ai’s GLM-5.4 spends more computation without adding weights. In the November 23 release, each token runs through 28 of the model’s existing layers twice. Both passes use the same learned weights. The second gets to work on what the first found. Z.ai shipped it through the GLM Coding Plan, ZCode and its own chat, with a general API and downloadable weights still to come.
The second pass is another way to get more out of weights that are already in memory. Saturday’s Inkling 2 Mini story looked at the same idea on a Mac. Z.ai is using it at flagship scale, where the question is whether the extra work lets a model stand in for one that would take far more memory to serve. Z.ai says the design can compete with much larger models. To compare the cost of serving those models, a provider would need to run the same jobs and measure accelerator memory and accepted fixes per hour.
Z.ai also says GLM-5.4 can spend too long thinking. The costs can stack in two places when each token takes more computation and the model spends more tokens thinking before it finishes. A faster server could offset the first cost. Someone waiting for a straightforward edit can still lose time while the agent reconsiders it.
The AnyCode maintainer’s first comparison timed a bug fix with and without tool batching. They added a script tool that can find a file and read it before asking the model what to do next. On one bug, GLM-5.4 averaged 39 calls with the feature and a prompt reminder, down from about 61 without them. All eight runs in each setting passed the same hidden test. The batches saved about two requests to the model per run. Average time edged up from 10 minutes 13 seconds to 10 minutes 28 seconds. MiniMax finished nearly three minutes faster with the same intervention, so the result depended on which model drove the tools.
A repeat on several multi-file fixes could hold the model, repository and acceptance tests fixed while changing the batching setting. Batching would pay off for GLM-5.4 if it cut the median time to a passing patch. In the AnyCode trial, a big drop in tool calls never translated into a faster fix from that model.
Shirudo Shields a Running Service While Its Patch Waits
A coding agent can draft a security fix in minutes and still leave a service exposed while its owners test and deploy the patch. OpenAI and Cisco’s Shirudo release gives operators another option during that gap. In the partners’ controlled test, a small defense written with Codex blocked a test attack while Elasticsearch kept running. The permanent fix still has its own release cycle.
The November 19 issue covered why faster discovery strains the patching process. Shirudo lets operators start protecting the service while the patch is still in testing. An operator can assess and approve a narrow rule while the service keeps taking requests. Shirudo uses eBPF, which lets small programs run at specific points inside Linux, and can observe what a proposed rule would affect before enforcing it. An ordinary request and a dangerous one can reach the same part of a service, so operators can use that preview to see what else they might block. Broad blocking can make the service unavailable to its real users.
The project gives the model a drafting job and leaves deployment authority with the people responsible for uptime. The runtime checks that a rule carries an approved signature before accepting it. A hardware security chip supports a record of which protections a machine loaded or removed. The incident lead can use the record to see whether a host received the rule. Whether it was a good rule still depends on what happened to real requests.
The public repository is a pre-release. Its production requirements include a Linux kernel with Shirudo’s patches and a TPM 2.0 security chip. If a fleet has to change kernels before it can use the runtime, the preparation happens well before the emergency. For some services, a rolling deployment that replaces one replica at a time may still get the permanent patch out faster than the team can approve an interim rule.
Shirudo earns its place on a prepared fleet if teams can approve and apply a temporary defense before the permanent patch reaches production. Ordinary requests still have to meet the service’s existing latency and error limits while the rule is active. A controlled block establishes that the runtime can intervene on a live service. Across a whole fleet, operators would still need to see how ordinary requests fare under the rule.
The Contrarian Take
Z.ai argues that GLM-5.4 can match models several times its size. That could matter for inference providers buying hardware. A smaller set of weights can be easier to fit across accelerators, and reusing layers may be a better bargain than adding more of them. For a subscriber, the more meaningful comparison is what fits into the hour they have to finish a job.
In a batch of code migrations that can run overnight, a slower model can win by producing more acceptable patches by morning at the same cost. During a pairing session, the same model makes every extra clarification take longer. The two jobs can ask for the same edit. An untimed benchmark could show which model finds the fix while leaving open which one to run overnight or use in a pairing session.
Under the Radar
- Several Claude models failed in the same window. Anthropic’s incident report puts the November 23 impact at 17 minutes, across the API, Claude Code, the web app and Cowork. Opus, Sonnet, Haiku and other models saw elevated errors. Switching siblings might still serve some requests. For jobs that can wait, a queue that retains the task and retries later gives the workflow a recovery option when several models are impaired together.
- LocalCode keeps inference on the Mac. The Apple Silicon coding agent reads and edits a project with a locally loaded model and can offer that model to other apps through a local endpoint. That’s a way to compare clients while keeping model and hardware fixed. Even with the model running locally, web tools and external connectors can still send data off the machine.
Quick Takes
- Claude Ship brings approval policy into GitHub review. Anthropic’s launch combines its existing Code Review with two betas for Claude Team and Enterprise. One works through review feedback and failed checks. The other can approve a pull request when a policy in the repository allows it. Teams can keep approval in observe-only mode and see which changes Claude would wave through before giving it a say in branch protection. (Source)
- Paid ChatGPT gets a chat-tuned GPT-6.2. OpenAI began rolling out a version of GPT-6.2 tuned for the Chat tab on Plus, Pro, Business and Enterprise. In OpenAI’s image-understanding test in that tab, the score rose to 71.7% from 47.4% for GPT-6. That gives subscribers on those plans more reason to try the Chat tab for screenshot questions. (Source)
- Xing4.1 gives self-hosters a new option. China Telecom released a preview with downloadable weights and a context window of up to a million tokens. The model has 285 billion parameters and uses about 17 billion per token. The active parameters help explain how much computation the model uses for each token. Serving the full model still means finding room for all the weights. (Source)
The Thread
A faster coding agent can make the review queue longer. Give a team enough compute to open twice as many pull requests and the people who can approve them may spend more of their day sorting through routine changes. Claude Ship gives a repository a place to say which of those changes can pass automatically. Shirudo puts a different limit on the same delegation problem by requiring a signed rule before a running service accepts it. Which approval is worth keeping depends on who pays for a bad decision. A cosmetic edit can be reverted in the next commit. A bad rule on a busy server can make customer requests fail before anyone has time to remove it. Teams get more out of faster generation when they can sort routine changes quickly and spend their review time on changes that could break a service.
Predictions
By December 24, 2026, Z.ai will publish a general API model ID and per-token rates for GLM-5.4. Medium confidence. Z.ai already lists the API as forthcoming and serves the model on its own products. This resolves on a documented general-purpose endpoint with published rates. Coding Plan access alone falls outside the test.
Issue date: November 24, 2026. Generated at 03:23 AM ET.
Tomorrow morning in your inbox.
Subscribe for free. 10-minute read, every weekday.