PipeInfer:使用异步流水线投机加速LLM推理
PipeInfer: Accelerating LLM Inference using Asynchronous Pipelined Speculation
AI总结:
提出PipeInfer,一种异步流水线投机加速技术,通过连续异步投机和早期推理取消机制,降低单请求场景的token间延迟,提升系统利用率,并改善对低投机接受率和低带宽互连的容忍度。
摘要:
跨计算机集群的大型语言模型(LLM)推理已成为近期的研究焦点,许多加速技术从CPU投机执行中汲取灵感。这些技术减少了与内存带宽相关的瓶颈,但也增加了每次推理运行的端到端延迟,需要高投机接受率才能提升性能。结合跨任务的可变接受率,投机推理技术可能导致性能下降。此外,流水线并行设计需要大量用户请求来维持最大利用率。作为补救,我们提出了PipeInfer,这是一种流水线投机加速技术,旨在降低单请求场景下的token间延迟并提高系统利用率,同时改善对低投机接受率和低带宽互连的容忍度。PipeInfer在生成速度上比标准投机推理实现了高达2.15倍的提升。PipeInfer通过连续异步投机和早期推理取消实现其改进,前者通过同时运行单token推理与多个投机运行来改善延迟和生成速度,后者通过跳过无效运行的计算(即使在推理过程中)来提高速度和延迟。
英文摘要:
Inference of Large Language Models (LLMs) across computer clusters has become a focal point of research in recent times, with many acceleration techniques taking inspiration from CPU speculative execution. These techniques reduce bottlenecks associated with memory bandwidth, but also increase end-to-end latency per inference run, requiring high speculation acceptance rates to improve performance. Combined with a variable rate of acceptance across tasks, speculative inference techniques can result in reduced performance. Additionally, pipeline-parallel designs require many user requests to maintain maximum utilization. As a remedy, we propose PipeInfer, a pipelined speculative acceleration technique to reduce inter-token latency and improve system utilization for single-request scenarios while also improving tolerance to low speculation acceptance rates and low-bandwidth interconnects. PipeInfer exhibits up to a 2.15$\times$ improvement in generation speed over standard speculative inference. PipeInfer achieves its improvement through Continuous Asynchronous Speculation and Early Inference Cancellation, the former improving latency and generation speed by running single-token inference simultaneously with several speculative runs, while the latter improves speed and latency by skipping the computation of invalidated runs, even in the middle of inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。