XNews

Z AI and Zhipu Use GLM-5.3 to Optimize Its Own Inference System

Z AI and Zhipu Use GLM-5.3 to Optimize Its Own Inference System

Zhipu AI disclosed that GLM-5.3-Flash's production inference now runs on over 100,000 domestic AI accelerators, with a 3.2x throughput increase achieved by an AI agent powered by GLM-5.3 itself. The agent fixed three critical issues including precision drift and GIL bottleneck, using a layered verification feedback system.

Key insights

Engineering Constraints and Trade-offs

The deployment environment was challenging: limited memory and bandwidth on domestic accelerators, 1M token context, multimodal requests, and immature software stack. Every optimization involved trade-offs: ReplaySSM (compute for memory), intra-node tensor parallelism (communication for memory), mixed INT8/FP8/BF16 cache (precision for capacity), and encode-prefill-decode separation (flexibility for scheduling).

Dense Feedback System as the Key Enabler

The bottleneck was not code generation but diagnosing why performance degraded. Zhipu built a layered verification interface providing three types of dense feedback: correctness (is the computation right?), system behavior (where is time spent?), and performance (which solution wins under what conditions). Each signal is local, cheap, and objectively verifiable, effectively designing an environment for the agent rather than augmenting its capabilities.

Three Real-World Problems Fixed by the Agent

The agent discovered and fixed: (1) KDA context parallel path precision drift due to TF32 rounding error accumulation in chain state matrix merging; (2) KV transfer and DeepEP dispatch not overlapping because the intra-node path did not release the GIL; (3) a decode kernel computing the same normalization four times due to blocking. Each case demonstrates a distinct capability: numerical correctness attribution, cross-language system debugging, and cross-codebase pattern migration.

Implications for Recursive Self-Improvement

Zhipu CEO Tang Jie emphasized that the feedback environment serves dual purposes: it is both the agent's working environment and training data for future models. Each completed task becomes a training example for successors. He stated that while full recursive self-improvement is far away, the smallest closed loop already exists: 'model optimizes system, system serves model.'

Source posts