μSmith:用智能体工厂自动构建专用 LLM 推理引擎
$μ$Smith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
让 coding agent 从源码层面为特定模型和硬件写专用推理引擎,GB300 上吞吐最高 16 倍于 vLLM 和 SGLang。做推理优化的工程师应该看看 kernel 图这个设计,做算法定价的团队也值得评估成本含义。
arXiv 论文提出 μSmith,一个面向智能体的推理引擎工厂框架,让 coding agent 为特定模型、硬件和场景从零构建专用 serving 引擎,替代 vLLM、SGLang 这类通用引擎。其核心设计是把每个推理步骤表示为从源码编译的显式 kernel 图,agent 可以自行决定每个 kernel 的实现方式、哪些 kernel 做融合以及如何重叠执行,从而施加人类工程师难以穷尽优化的手段。
在 NVIDIA GB300 上对六个模型的实验中,agent 构建的专用引擎在整个 Pareto 前沿上超过已发表的 vLLM、SGLang 和 TensorRT-LLM 最优结果:同等单用户速度下每 GPU 吞吐最高提升 16.0 倍,单用户延迟最高降低 1.70 倍。
μSmith 还覆盖通用引擎不支持的场景:在旧的 NVIDIA A100 上,agent 用 3 天为 DeepSeek-V4.1-Flash 构建的引擎,每 GPU 吞吐达到已发表 vLLM 在更新的 H100 上最优结果的 1.72 倍。这为"按需定制"专用推理引擎的智能体化生产方式提供了实证。
$μ$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 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.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include μSmith, vLLM, SGLang, TensorRT-LLM.
Primary source verification: published directly by arXiv: DeepSeek with first-party authority.