arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.06288cs.LGcs.AIcs.DC
收藏

AIConfigurator: 多框架LLM服务的闪电式配置优化

AIConfigurator: Lightning-Fast Configuration Optimization for Multi-Framework LLM Serving

NVIDIA
Tianhao Xu, Yiming Liu, Xianglong Lu, Yijia Zhao, Xuting Zhou, Aichen Feng, Yiyi Chen, Yi Shen, Qin Zhou, Xumeng Chen, Ilya Sherstyuk, Haorui Li, Rishi Thakkar,… 展开作者

Tianhao Xu, Yiming Liu, Xianglong Lu, Yijia Zhao, Xuting Zhou, Aichen Feng, Yiyi Chen, Yi Shen, Qin Zhou, Xumeng Chen, Ilya Sherstyuk, Haorui Li, Rishi Thakkar, Ben Hamm, Yuanzhe Li, Xue Huang, Wenpeng Wu, Anish Shanbhag, Harry Kim, Chuan Chen, Junjie Lai

AI总结:

AIConfigurator通过统一性能建模系统实现多框架LLM服务的快速配置优化,提升性能40%-50%并缩短搜索时间至30秒。

摘要:

在生产系统中优化大型语言模型(LLM)推理日益困难,由于动态工作负载、严格的延迟/吞吐量目标以及快速扩展的配置空间。这种复杂性不仅涵盖分布式并行策略(张量/流水线/专家),还涉及复杂的框架特定运行时参数,如CUDA图的启用、可用KV缓存内存分数和最大令牌容量,这些参数对性能有重大影响。现代推理框架(如TRT-LLM、vLLM、SGLang)各不相同,每个都采用不同的内核和执行策略,这使得手动调优既框架特定又计算上不可行。我们提出了AIConfigurator,一个统一的性能建模系统,能够快速、框架无关地进行推理配置搜索,而无需GPU基于的分析。AIConfigurator结合(1)一种将推理分解为可分析的原始语义(GEMM、注意力、通信和内存操作)的方法,同时捕捉框架特定的调度动态;(2)一个校准的内核级性能数据库,这些原始语义在广泛硬件平台和流行开放权重模型(GPT-OSS、Qwen、DeepSeek、LLama、Mistral)上;以及(3)一个抽象层,自动解析目标后端的最佳启动参数,无缝集成到生产级编排系统中。在生产LLM服务负载上的评估表明,AIConfigurator识别出的超优服务配置可将性能提高多达40%(如Qwen3-32B密集模型)和50%(如DeepSeek-V3 MoE架构),同时在平均30秒内完成搜索。使对大规模设计空间的快速探索成为可能,从集群拓扑到引擎特定标志。

英文摘要:

Optimizing Large Language Model (LLM) inference in production systems is increasingly difficult due to dynamic workloads, stringent latency/throughput targets, and a rapidly expanding configuration space. This complexity spans not only distributed parallelism strategies (tensor/pipeline/expert) but also intricate framework-specific runtime parameters such as those concerning the enablement of CUDA graphs, available KV-cache memory fractions, and maximum token capacity, which drastically impact performance. The diversity of modern inference frameworks (e.g., TRT-LLM, vLLM, SGLang), each employing distinct kernels and execution policies, makes manual tuning both framework-specific and computationally prohibitive. We present AIConfigurator, a unified performance-modeling system that enables rapid, framework-agnostic inference configuration search without requiring GPU-based profiling. AIConfigurator combines (1) a methodology that decomposes inference into analytically modelable primitives - GEMM, attention, communication, and memory operations while capturing framework-specific scheduling dynamics; (2) a calibrated kernel-level performance database for these primitives across a wide range of hardware platforms and popular open-weights models (GPT-OSS, Qwen, DeepSeek, LLama, Mistral); and (3) an abstraction layer that automatically resolves optimal launch parameters for the target backend, seamlessly integrating into production-grade orchestration systems. Evaluation on production LLM serving workloads demonstrates that AIConfigurator identifies superior serving configurations that improve performance by up to 40% for dense models (e.g., Qwen3-32B) and 50% for MoE architectures (e.g., DeepSeek-V3), while completing searches within 30 seconds on average. Enabling the rapid exploration of vast design spaces - from cluster topology down to engine specific flags.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑