Skip to content

μμSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines

Yaoyao Ding, Qidong Su, Baorun Mu, Yang Hu, Zihao Ye, Caitlin Wang, Junru Shao, Shang Wang, Gennady Pekhimenko

cs.DC

Abstract

Software engineering has long been organized around the scarcity of human expert effort, which leads to generality and modularity that split systems into abstraction layers. As a prime example, general-purpose LLM serving engines such as vLLM and SGLang are split into reusable components to support many models, hardware and use cases from the same codebase. Yet peak performance requires specialization across the boundaries, and general-purpose engines leave much performance on the table. We show that coding agents resolve this tension by circumventing the underlying scarcity of human expert effort. Provided the right guidance, agents can build a specialized serving engine from scratch for a given model, hardware and use case, applying optimizations exhausting to humans, such as sophisticated kernel fusion and overlap. We propose μμSmith, a serving engine factory that contains the engine building blocks and optimization methodology for the agents. In μμSmith, each serving step is an explicit graph of kernels compiled from source, such that the agents control how each kernel is implemented, which kernels are fused and how they overlap. In our experiments with six models on NVIDIA GB300, the agent-built specialized engines outperform the best published vLLM, SGLang and TensorRT-LLM results along the whole Pareto frontier. They deliver up to 16.0x as much throughput per GPU at equal per-user speed and serve a single user up to 1.70x faster. μμSmith also covers deployments that general-purpose engines do not support. For DeepSeek-V4.1-Flash on the older NVIDIA A100, within 3 days, the agents built an engine that delivers up to 1.72x the throughput per GPU of the best published vLLM results on the newer NVIDIA H100. These results herald an agentic future where specialized serving engines are "made-to-order" with astonishing performance compared to today's general-purpose engines.

Create a lesson

Metadata

Categories
cs.DC, cs.SE
Comments
23 pages, 13 figures, 7 tables