AI coding agents write model-serving software that outruns vLLM and SGLang
An NVIDIA and University of Toronto team let coding agents write a separate serving engine for each model and GPU. On a public agentic benchmark, every engine beat the best published vLLM, SGLang and TensorRT-LLM results, at a heavy cost in GPU time.
scienceunderway.com/articles/ai-coding-agents-write-model-serving-software-that-outruns-vllm-and-sglang


What the study shows
A serving engine is the software that runs a language model and answers requests. Popular engines such as vLLM, SGLang and NVIDIA's TensorRT-LLM are general purpose: one codebase serves many models and many GPUs. The authors argue that this reuse costs speed, because shared parts cannot be shaped for one model's exact needs.
Their system, µSmith, hands the job to coding agents instead. A human writes a goal such as "optimise model X on GPU Y". A lead agent then spawns helper agents that write GPU code, measure it and keep a change only if it is faster and passes correctness checks. Every attempt, failed or not, goes into a shared log that later rounds read. All engines were built with Claude Code running Claude Opus 5.5.
The test was SemiAnalysis's AgentX benchmark, which replays 393 recorded Claude Code sessions. The comparison was 83 published records from vLLM, SGLang and TensorRT-LLM on NVIDIA GB300 GPUs. The authors report that, for all six open-weight models, their engines delivered more throughput per GPU at every per-user speed the published results reached. At equal per-user speed, the gain ranged from about 1.1 times to 16 times, depending on model and load.
Part of that gain came from choosing a better layout, such as whether to split the prompt-reading and answer-writing stages onto separate GPUs. Part came from faster code. Comparing like-for-like layouts only, gains were still about 1.5 to 5 times on two models. For a single user, five of the engines produced tokens about 1.4 to 1.7 times faster than the best published record on the same number of GPUs, and the sixth about 1.2 times faster.
In the single-user DeepSeek campaign, most of the saving came from the joins between GPU programs, called kernels. On one DeepSeek-V4.1-Flash setup, vLLM ran 1,576 kernels per serving step; the agent-built engine ran 603 and finished about a third sooner. The agents merged neighbouring kernels, let kernels start before the previous one finished, and built GPU-to-GPU communication into the compute code.
The agents also ported the DeepSeek engine to older chips. No general-purpose engine runs that model on NVIDIA's A100. The agents had one working within a day, and it roughly matched or beat published vLLM results on the newer H100. Accuracy on GSM8K, a set of school maths word problems, stayed within 0.2 points of the benchmark's reference on average. The paper is a preprint and has not been peer reviewed.

Our reading
In our reading, the striking claim is not that a hand-tuned engine beats a general one. Specialists have always known that. It is that agents did the tuning across a whole engine, for six different models, in days rather than engineer-months. The 16-fold figure is the eye-catcher, but it sits at the far end of the curve. The steadier signal is that every model improved everywhere the curves overlap.
The comparison deserves care. The baselines are published benchmark records and stock settings, not engines tuned by experts with the same time and GPU budget the agents had. The DeepSeek campaigns alone reserved about 8,000 GPU-hours over 16 days. Speculative decoding, where a small draft model guesses tokens for the main model to check, was scored at a fixed simulated success rate, as the benchmark requires. With real guessing on DeepSeek, the agent engine accepted fewer guesses than vLLM did.
On our four-level readiness scale, this sits at level II, Benchmarked. The results are on a public benchmark. No code, engines or weights have been released, so it does not yet reach level III.

The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/ai-coding-agents-write-model-serving-software-that-outruns-vllm-and-sglang
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | A working system and agent-built engines are described and measured on GB300, H100 and A100 GPUs. |
| II Benchmarked | Met | Results are reported on the public SemiAnalysis AgentX benchmark and compared with 83 published InferenceX records from vLLM, SGLang and TensorRT-LLM. |
| III Open source | Not yet | The paper says the factory lets the community build engines, but gives no link to released code, engines or weights. |
| IV In production | Not yet | The paper documents no use of the engines in production by a named organisation. |
What would move it up
Public release of the µSmith graph IR, runtime and agent loop, ideally with the agent-built engines, would meet level III. Documented production use by a named organisation would be needed for level IV.
The study
Yaoyao Ding, Qidong Su, Baorun Mu et al. μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines. arXiv, 1 December 2026. arXiv:2612.02898
Notes
- Ding, Su et al. µSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines. arXiv preprint, December 2026, not peer reviewed. CC BY 4.0. Source
- No code, engines or weights are linked in the paper at the time of writing.
- SemiAnalysis InferenceX, which publishes the AgentX benchmark records used as baselines. Source
- Exact figures: throughput per GPU at equal p90 interactivity was 1.09 to 16.0x on DeepSeek-V4.1-Flash, 2.2 to 12.7x on MiniMax-M3, 2.1 to 9.9x on Qwen3.8-Flash-Next, 1.29 to 2.4x on Kimi-K3, 1.67 to 3.3x on Muse-Spark-Open and 1.30 to 3.4x on GLM-5.3 against GLM-5.2. Single-user speed-ups were 1.42 to 1.70x (1.19x on Muse-Spark-Open).
- DeepSeek-V4.1-Flash on four GB300 GPUs: 1,576 kernels in 5.57 ms per step with vLLM, against 603 kernels in 3.71 ms for the agent-built engine. Campaigns took 16 days and about 7,971 reserved GPU-hours.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.239 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
No corrections to this article. Found an error? Report it.


