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
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
Related papers
Presage: Server-Aware Configuration and Predictive Scheduling for LLM Agent Serving
Shared title terminologycs.DCBotao Zhu, Xiaoyi Fan, Yifei Zhu
TokenSimV3: Full-Stack Simulation for Agentic LLM Serving and Hardware-Software Co-Design
Shared title terminologycs.DCZhuohang Bian, Songhan Huang, Zhuoran Li et al.
RePrism: Joint Request and Representation Scheduling for LLM Agent Serving
Shared title terminologycs.DCXijiang Shen, Aoli Zhu, Yanbo Tan et al.
Contexture: Runtime Context Eviction for High-Throughput Agent Serving
Shared title terminologycs.DCColin Hong, Bryan Shan, Wei Siong Pang et al.
ForkTide: Lineage-Aware Placement for Branching Code-Agent Sandboxes
Shared title terminologycs.DCQibin Gu
HPC Navigator: A Researcher's App for Using Shared GPU Clusters with AI Agents
Shared title terminologycs.DCSebastian Haan