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

Vidur:面向大语言模型推理的大规模仿真框架

Vidur: A Large-Scale Simulation Framework For LLM Inference

Georgia Institute of Technology(佐治亚理工学院);Microsoft Research India(微软研究院印度分部)

Amey Agrawal, Nitin Kedia, Jayashree Mohan, Ashish Panwar, Nipun Kwatra, Bhargav Gulavani, Ramachandran Ramjee, Alexey Tumanov

AI总结:

针对大语言模型部署优化成本高的问题,提出高保真仿真框架Vidur及配置搜索工具Vidur-Search,可高效低成本地找到最优部署配置,误差低于9%。

摘要:

当前优化大语言模型(LLM)的部署成本高昂,因为需要针对某一LLM实现实验性运行应用工作负载,同时探索由并行化策略、批处理技术、调度策略等系统旋钮构成的庞大配置空间。为解决这一挑战,我们提出Vidur——一款面向LLM推理性能的大规模、高保真、易扩展的仿真框架。Vidur结合实验性能剖析与预测建模对LLM算子的性能进行建模,并通过估算延迟、吞吐量等多项关注指标,评估不同工作负载下的端到端推理性能。我们在多款LLM上验证了Vidur的保真度,结果显示其在全范围内推理延迟的估算误差低于9%。此外,我们还推出了配置搜索工具Vidur-Search,用于辅助优化LLM部署。Vidur-Search借助Vidur自动识别满足应用性能约束的最具成本效益的部署配置。例如,Vidur-Search可在CPU机器上用1小时找到LLaMA2-70B的最佳部署配置,而基于实际部署的探索则需要4.2万GPU小时——成本约21.8万美元。Vidur的源代码可在https://github.com/microsoft/vidur获取。

英文摘要:

Optimizing the deployment of Large language models (LLMs) is expensive today since it requires experimentally running an application workload against an LLM implementation while exploring large configuration space formed by system knobs such as parallelization strategies, batching techniques, and scheduling policies. To address this challenge, we present Vidur - a large-scale, high-fidelity, easily-extensible simulation framework for LLM inference performance. Vidur models the performance of LLM operators using a combination of experimental profiling and predictive modeling, and evaluates the end-to-end inference performance for different workloads by estimating several metrics of interest such as latency and throughput. We validate the fidelity of Vidur on several LLMs and show that it estimates inference latency with less than 9% error across the range. Further, we present Vidur-Search, a configuration search tool that helps optimize LLM deployment. Vidur-Search uses Vidur to automatically identify the most cost-effective deployment configuration that meets application performance constraints. For example, Vidur-Search finds the best deployment configuration for LLaMA2-70B in one hour on a CPU machine, in contrast to a deployment-based exploration which would require 42K GPU hours - costing ~218K dollars. Source code for Vidur is available at https://github.com/microsoft/vidur.

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

↑