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

Pie:为LLM推理池化CPU内存

Pie: Pooling CPU Memory for LLM Inference

UC Berkeley(加州大学伯克利分校)

Yi Xu, Ziming Mao, Xiangxi Mo, Shu Liu, Ion Stoica

AI总结:

本文提出LLM推理框架Pie,通过性能透明的交换和自适应扩展利用CPU内存,在不增加延迟的前提下提升有效内存容量,实现比vLLM和FlexGen更高的吞吐量与更低的延迟。

摘要:

LLM的快速增长彻底改变了自然语言处理和AI分析,但其不断增大的规模和内存需求带来了重大挑战。一种常见的解决方案是溢出到CPU内存;然而,传统的GPU-CPU内存交换通常会导致更高的延迟和更低的吞吐量。本文介绍了Pie,一个LLM推理框架,通过性能透明的交换和自适应扩展来解决这些挑战。通过利用可预测的内存访问模式以及现代硬件(如NVIDIA GH200 Grace Hopper Superchip)的高带宽,Pie实现了并发数据交换而不影响前台计算,在不增加延迟的情况下扩展了有效内存。自适应扩展根据实时信息动态调整CPU内存分配,优化不同条件下的内存使用和性能。Pie保持了低计算延迟、高吞吐量和高弹性。我们的实验评估表明,Pie在缓存预热期间实现了最佳交换策略,并有效地在增加内存容量的同时对计算产生可忽略不计的影响。凭借其扩展的容量,Pie在吞吐量上比vLLM高出1.9倍,在延迟上快2倍。此外,Pie可以在保持相同性能的同时将GPU内存使用量减少1.67倍。与基于离线分析的交换解决方案FlexGen相比,Pie实现了数量级更低的延迟和9.4倍更高的吞吐量。

英文摘要:

The rapid growth of LLMs has revolutionized natural language processing and AI analysis, but their increasing size and memory demands present significant challenges. A common solution is to spill over to CPU memory; however, traditional GPU-CPU memory swapping often results in higher latency and lower throughput. This paper introduces Pie, an LLM inference framework that addresses these challenges with performance-transparent swapping and adaptive expansion. By leveraging predictable memory access patterns and the high bandwidth of modern hardware like the NVIDIA GH200 Grace Hopper Superchip, Pie enables concurrent data swapping without affecting foreground computation, expanding effective memory without added latency. Adaptive expansion dynamically adjusts CPU memory allocation based on real-time information, optimizing memory usage and performance under varying conditions. Pie maintains low computation latency, high throughput, and high elasticity. Our experimental evaluation demonstrates that Pie achieves optimal swapping policy during cache warmup and effectively balances increased memory capacity with negligible impact on computation. With its extended capacity, Pie outperforms vLLM by up to 1.9X in throughput and 2X in latency. Additionally, Pie can reduce GPU memory usage by up to 1.67X while maintaining the same performance. Compared to FlexGen, an offline profiling-based swapping solution, Pie achieves magnitudes lower latency and 9.4X higher throughput.

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

↑