arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.04032cs.AIcs.DC
收藏

ROCm InferaSim:降低大语言模型(LLM)服务的试错成本并部署最优配置

ROCm InferaSim: Cut LLM Serving Trial Costs and Deploy the Best Configuration

Advanced Micro Devices Inc. (AMD)(超威半导体公司(AMD))
Anshu Raina, Yao Fu, Zhang Jiejing, Peyman Razaghi, Shiksha Patel, Ravi Gupta, Deval Shah, Adeem Jassani, Subhajit Dutta Chowdhury, Lorri Rao, Kailash Gogineni,… 展开作者

Anshu Raina, Yao Fu, Zhang Jiejing, Peyman Razaghi, Shiksha Patel, Ravi Gupta, Deval Shah, Adeem Jassani, Subhajit Dutta Chowdhury, Lorri Rao, Kailash Gogineni, Zhenyu Gu, Onil Gunawardana, Emad Barsoum

AI总结:

ROCm InferaSim通过少量锚点测量结合分析缩放,可高效预测LLM服务性能,大幅降低试错成本,能快速找到接近最优的部署配置。

摘要:

高效部署大语言模型(LLM)服务依赖于推理引擎、模型在GPU间的划分方式、精度、调度器设置、投机解码、KV缓存管理以及预填-解码分离。最优配置取决于模型、硬件、工作负载和目标,运维人员通常通过反复试错来确定。本研究中,对所有候选配置进行详尽测量将耗费约25000 GPU小时。ROCm InferaSim通过少量短时长测量来预测服务性能。批量大小、提示长度和GPU数量等选择会改变每个GPU的工作量,且不改变内核。ROCm InferaSim对每组不同的内核进行一次基准测试,最多在一个节点上完成,我们将此测量称为锚点。分析定律可将该锚点推广到运行相同内核的其他部署中。对于多节点部署,ROCm InferaSim将配置简化为单节点等效配置,进行测量后通过分析方法缩放结果。模拟器会回放多轮流量,调优代理则利用预测结果搜索配置。在搭载vLLM、SGLang和ATOM的AMD Instinct MI355X GPU上,11个锚点仅耗时9.1 GPU小时,而测量其覆盖的226种固定长度配置则需204 GPU小时。在172种配置上,每输出token的时间中位数误差为8.1%;在多轮编码工作负载上,吞吐量误差在8%以内;对于159种未用作锚点的分离部署,吞吐量误差在5.5%以内。包含5个候选的短名单中,存在一种部署与模型和延迟目标的最优可行配对的误差在12%以内。

英文摘要:

Serving an LLM efficiently depends on the engine, how the model is split across GPUs, precision, scheduler settings, speculative decoding, KV-cache management, and prefill-decode disaggregation. The best configuration depends on the model, hardware, workload, and objective. Operators usually find it by trial and error. Exhaustively measuring the candidates in our study would take about 25,000 GPU-hours. ROCm InferaSim predicts serving performance from a few short measurements. Choices such as batch size, prompt length, and GPU count change the amount of work per GPU without changing the kernels. ROCm InferaSim benchmarks each distinct set of kernels once, on at most one node. We call this measurement an anchor. Analytical laws carry that anchor to other deployments that run the same kernels. For multi-node deployments, ROCm InferaSim reduces the configuration to a single-node equivalent, measures it, and scales the result analytically. A simulator replays multi-turn traffic, and a tuning agent searches configurations using the predictions. On AMD Instinct MI355X GPUs with vLLM, SGLang, and ATOM, 11 anchors took 9.1 GPU-hours, against 204 GPU-hours to measure the 226 fixed-length configurations they cover. On 172 configurations, time per output token has 8.1% median error. On a multi-turn coding workload, throughput is within 8%. For 159 disaggregated deployments, none used as an anchor, throughput is within 5.5%. A five-candidate short list contains a deployment within 12% of the best feasible pairing of model and latency target.

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

相关深度报道

↑