# 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.

- Category: Efficiency
- Readiness level: II (Benchmarked) on Science Underway's four-step scale, as proposed
- Published: 2026-12-04
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/ai-coding-agents-write-model-serving-software-that-outruns-vllm-and-sglang

## The study

μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines (preprint, not peer reviewed). arXiv 2612.02898. https://arxiv.org/abs/2612.02898

## At a glance

- What it shows: AI coding agents built custom software to run six large language models on NVIDIA GPUs. Each one served more users per GPU than the best published results from the standard tools, sometimes many times more.
- What it does not show: It does not show these engines running a real service with live users. It also does not show that a fair, expert-tuned version of the standard tools would lose by as much.
- Why it matters: Running models is a large share of AI cost. If agents can tailor the serving software to each model and chip, the same hardware could carry far more traffic.

## 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 the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/ai-coding-agents-write-model-serving-software-that-outruns-vllm-and-sglang

## 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.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
