$μ$Smith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
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…
- arXiv
- 2612.02898
- Authors
- Yaoyao Ding, Qidong Su, Baorun Mu, Yang Hu, Zihao Ye and 4 more
- Categories
- cs.DC · cs.SE