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

LLMServingSim:面向大规模LLM推理服务的软硬件协同仿真基础设施

LLMServingSim: A HW/SW Co-Simulation Infrastructure for LLM Inference Serving at Scale

School of Computing KAIST(韩国科学技术院计算机学院)

Jaehong Cho, Minsu Kim, Hyunmin Choi, Guseul Heo, Jongse Park

AI总结:

针对现有仿真基础设施难以准确建模LLM推理服务系统软硬件行为且耗时的问题,本文提出LLMServingSim,通过迭代粒度仿真、复用计算冗余及灵活框架支持异构设计,实现低误差(<14.7%)和高仿真速度(91.5x)。

摘要:

近年来,构建高效的大语言模型(LLM)推理服务系统的研究工作广泛开展。这些工作不仅包括算法和软件领域的创新,还涉及多种硬件加速技术的开发。然而,目前缺乏能够在不显著延长仿真时间的情况下,准确建模LLM服务系统中多样化软硬件行为的仿真基础设施。本文旨在开发一种名为LLMServingSim的有效仿真工具,以支持LLM服务系统的未来研究。在设计LLMServingSim时,我们关注现有模拟器的两个局限性:(1)由于LLM的自回归特性,它们缺乏对LLM推理服务动态工作负载变化的考虑;(2)它们未利用LLM中的算法冗余,导致重复仿真。为解决这些局限性,LLMServingSim以迭代为粒度仿真LLM服务,利用解码器块间的计算冗余并复用先前迭代的仿真结果。此外,LLMServingSim提供灵活框架,允许用户插入任何加速器编译器和仿真栈,以探索异构处理器的各种系统设计。实验表明,LLMServingSim产生的仿真结果与真实GPU基LLM服务系统的性能行为高度一致,误差率低于14.7%,同时仿真速度比现有加速器模拟器快91.5倍。

英文摘要:

Recently, there has been an extensive research effort in building efficient large language model (LLM) inference serving systems. These efforts not only include innovations in the algorithm and software domains but also constitute developments of various hardware acceleration techniques. Nevertheless, there is a lack of simulation infrastructure capable of accurately modeling versatile hardware-software behaviors in LLM serving systems without extensively extending the simulation time. This paper aims to develop an effective simulation tool, called LLMServingSim, to support future research in LLM serving systems. In designing LLMServingSim, we focus on two limitations of existing simulators: (1) they lack consideration of the dynamic workload variations of LLM inference serving due to its autoregressive nature, and (2) they incur repetitive simulations without leveraging algorithmic redundancies in LLMs. To address these limitations, LLMServingSim simulates the LLM serving in the granularity of iterations, leveraging the computation redundancies across decoder blocks and reusing the simulation results from previous iterations. Additionally, LLMServingSim provides a flexible framework that allows users to plug in any accelerator compiler-and-simulation stacks for exploring various system designs with heterogeneous processors. Our experiments demonstrate that LLMServingSim produces simulation results closely following the performance behaviors of real GPU-based LLM serving system with less than 14.7% error rate, while offering 91.5x faster simulation speed compared to existing accelerator simulators.

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

↑