GLM's Infra Agent built the stack that serves GLM

Share
GLM's Infra Agent built the stack that serves GLM

Z.ai published the engineering log behind GLM-5.3-Flash today, and the news is not the cluster — it is who did the systems work. The lab says a GLM-5.3-powered "Infra Agent" wrote much of the inference stack that now serves that model, and it frames the result as an early, limited form of recursive self-improvement.

Z.ai says all production inference for GLM-5.3-Flash runs on a cluster of more than 100,000 Chinese-made accelerators, and that much of the work of getting it there was done by a GLM-5.3-powered Infra Agent rather than by a team of infrastructure engineers. The stack was built from scratch to support a new architecture, a 1-million-token context window and multimodal requests on hardware with limited memory capacity and bandwidth, an immature kernel ecosystem and almost no documentation.

The payoff was roughly three times the end-to-end serving performance of the initial baseline, with hardware utilization and per-token cost reaching levels Z.ai describes as comparable to mainstream Nvidia GPUs. That traffic is real and public: the same engine ran anonymously as Ox-Alpha on OpenCode and OpenRouter, became the most-used model on both platforms within a week, and processed more than 62 trillion tokens in six days. We covered what that chip economics meant for the market in August — GLM-5.3-Flash proves frontier intelligence is now a Chinese-chip economics story — and this post is the missing half: how the serving stack got built, and by what.

The mechanism is the part worth stealing. Z.ai's argument is that code generation was never the bottleneck; the bottleneck was feedback. An agent that understands an entire codebase still cannot act on "numerical accuracy test failed" or "time to first token rose 30 percent," because those signals do not say which layer — kernel, parallelism strategy, communication, memory, serving orchestration — is responsible. So the lab rebuilt the loop around what it calls dense feedback: results that are local (tied to a specific kernel, input shape, thread or code path), cheap enough to get on every hypothesis rather than only after a full deployment, and objectively verifiable through reference implementations and controlled experiments. Engineers kept objectives, system boundaries and review of risky changes; the agent ran analysis, hypotheses and code changes against that environment.

Three fixes show what it caught. In a context-parallelism path of the KDA kernel, tl.dot was silently defaulting to TF32 even on FP32 inputs, so error accumulated during state merging and grew with context length — the fix, explicitly setting input_precision="tf32x3", has been merged upstream into Flash Linear Attention. In the serving path, the gap between prefill-plus-KV-transfer and prefill alone ran above 20 percent against a 5 percent acceptance criterion; the agent traced it to DeepEP v1.2.1, where the intra-node dispatch and combine calls never released the Python GIL while waiting on the GPU, starving the thread submitting Mooncake transfers. Releasing the lock during those intervals brought the gap under 1 percent. In a KDA decode kernel, the agent found the implementation tiling along the V dimension and repeating the same FP32 normalization four times, merged the tiles into one thread block and replaced the redundant work with a warp-level reduction for a 1.71× speedup.

Z.ai is careful with the RSI framing, and readers should be too. It says the endpoint would be a system that designs and trains its own successor autonomously, that we are not there, and that choosing objectives, setting boundaries and assessing risk stay human responsibilities. The less dramatic claim is also the more useful one: the validated optimizations flowed back into a reusable library of "optimization skeletons," so each deployment lowers the cost of the next. The model optimized the system; the system now runs the model.


Rhodium Group estimates every Chinese AI model combined earns about a tenth of what OpenAI and Anthropic do, while trading at far higher multiples of that revenue. In figures published Thursday, DeepSeek's annual recurring revenue sits near $500 million, MiniMax at $800 million and Moonshot at $1 billion, with ByteDance at $4 billion and Alibaba at $2.4 billion — against $40 billion for OpenAI and $65 billion for Anthropic. The multiples invert the picture: roughly 163x revenue for DeepSeek and 50x for Moonshot, versus 34x for OpenAI and 21x for Anthropic. Rhodium's read is a financing gap rather than a demand gap: more than 60 percent of equity investment in Chinese AI chips and servers came from state-affiliated sources, and partner Logan Wright argues the frontier labs will depend on a favorable equity market to scale. It is a fair caution, and worth holding next to the counter-evidence — Z.ai raised its own year-end ARR forecast to $3 billion the day before, Moonshot and DeepSeek are both moving toward listings, and adoption of Chinese open-weight models keeps climbing. Low revenue today is not the same claim as low revenue forever.


ByteDance put its Doubao assistant inside the car, launching a cockpit agent with SAIC as its first partner. The Doubao Cabin Assistant, built with ByteDance's cloud arm Volcano Engine, runs full-duplex conversation — interrupt, follow up, or have it start a topic — with four-zone voice recognition that tracks who is speaking and to whom, long-term memory of each occupant's habits, and control that reaches hundreds of vehicle signals and thousands of car functions. It can decompose a request like "nap until one" into seat, shade, climate, music and massage actions, and it can direct navigation or the driver-assistance system itself, including lane changes and a power-saving route when the battery is low. The first car to carry it, SAIC's Roewe Jiayue 07, opens presales this month, with SAIC Audi models due within the year. It follows BYD's new cockpit agent runs on Alibaba's Qwen — Chinese automakers have now handed the cabin to two different model vendors in a fortnight, which is the competitive question worth watching.

What to watch: whether the Infra Agent pattern spreads beyond one lab's serving stack — the reusable part is the feedback environment, not the model — and whether Z.ai's chip economics survive outside scrutiny.

If a model can build the infrastructure that serves it, at what point does that stop being a productivity story? Tell us in the comments.

Sources: Flash Linear Attention PR #1180

Read more

Byteification turns Qwen3 and Llama 3 into byte-level models

Byteification turns Qwen3 and Llama 3 into byte-level models

The tokenizer is the last piece of the language-model pipeline that was never learned end to end — and a Nature paper out this week shows it can be swapped out for less than one percent of a pretraining budget. Researchers have retrofitted four open subword language models into true byte-level models using less than 1% of a typical pretraining budget, and the result — published 7 October in Nature — closes the performance gap that has kept byte-level models a niche curiosity for nearly a decad

OpenAI's dots go mobile and can start your Codex work

OpenAI's dots go mobile and can start your Codex work

One product update and two benchmark papers this hour, all circling the same question: how much of the work can you actually hand over, and what happens to the part you didn't? OpenAI's dots — the always-on agents that get their own cloud computer — can now be created and configured entirely from the ChatGPT app on iOS and Android, and a dot can start Codex work or pick up an existing Codex thread on your behalf. The October 9 release, billed as the first of a fresh run of updates for dots, mo

Coding agents as a hospital: Cockroach's five-month results

Coding agents as a hospital: Cockroach's five-month results

The agentic-coding debate keeps being framed as speed versus trust. Cockroach Labs just published the most detailed trust-first ledger yet — five months of numbers, including the parts that didn't work. Cockroach Labs ran its codebase like a teaching hospital for five months and says the pipeline merged well over a million lines of code with seven total reverts. In the setup the company calls MOLT Sinai, GitHub issues are patients, merging is discharge, and the humans in charge are Chiefs of M

Today in AI — October 10, 2026

Today in AI — October 10, 2026

A day where the boring machinery took center stage: proof checkers, order books, warehouses and the humble text message — plus fresh arguments about who gets to declare any of it safe. Models & Research * Mathematicians get a reliability primer for the Lean Theorem Prover. A guest post by Thomas Hales on Terence Tao's blog walks through what Lean actually guarantees — and devotes itself to the "Summer of Soundness Bugs," the string of kernel bugs found this summer that let false proofs thr