arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.04788cs.AI
收藏

GUIDE:一种用于在异构环境中部署大型语言模型的全局统一推理引擎

GUIDE: A Global Unified Inference Engine for Deploying Large Language Models in Heterogeneous Environments

Sun Yat-sen University(中山大学)

Yanyu Chen, Ganhong Huang

AI总结:

针对异构环境下LLM部署的内存、延迟和吞吐量瓶颈,提出基于动态建模与仿真的优化框架GUIDE,将关键指标预测误差控制在9.9%至42.3%之间,帮助非专家实现数据驱动的低成本部署。

摘要:

在实际场景中高效部署大型语言模型(LLMs)仍然是一个关键挑战,主要原因是硬件异构性、推理框架限制和工作负载复杂性。这些挑战通常会导致内存利用率、延迟和吞吐量方面的低效,阻碍了LLMs的有效部署,特别是对于非专家而言。通过广泛的实验,我们识别了关键的性能瓶颈,包括内存利用率的骤降、随批处理大小变化的延迟波动,以及多GPU配置中的低效。这些见解揭示了由硬件、框架和工作负载参数之间复杂的相互作用所塑造的巨大优化空间。这强调了对系统性方法优化LLM推理的需求,促使我们设计了框架GUIDE。GUIDE利用动态建模和基于仿真的优化来解决这些问题,在批处理延迟、TTFT和解码吞吐量等关键指标上实现了9.9%至42.3%的预测误差。通过有效弥合理论性能与实际部署之间的差距,我们的框架使从业者,特别是非专业人士,能够做出数据驱动的决策,并在异构环境中以低成本释放LLMs的全部潜力。

英文摘要:

Efficiently deploying large language models (LLMs) in real-world scenarios remains a critical challenge, primarily due to hardware heterogeneity, inference framework limitations, and workload complexities.Efficiently deploying large language models (LLMs) in real-world scenarios remains a critical challenge, primarily due to hardware heterogeneity, inference framework limitations, and workload complexities. These challenges often lead to inefficiencies in memory utilization, latency, and throughput, hindering the effective deployment of LLMs, especially for non-experts. Through extensive experiments, we identify key performance bottlenecks, including sudden drops in memory utilization, latency fluctuations with varying batch sizes, and inefficiencies in multi-GPU configurations. These insights reveal a vast optimization space shaped by the intricate interplay of hardware, frameworks, and workload parameters. This underscores the need for a systematic approach to optimize LLM inference, motivating the design of our framework, GUIDE. GUIDE leverages dynamic modeling and simulation-based optimization to address these issues, achieving prediction errors between 9.9% and 42.3% for key metrics such as batch latency, TTFT, and decode throughput. By effectively bridging the gap between theoretical performance and practical deployment, our framework empowers practitioners, particularly non-specialists, to make data-driven decisions and unlock the full potential of LLMs in heterogeneous environments cheaply.

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

↑