arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.17309cs.ARcs.AIcs.DCcs.ET
收藏

PIM-AI:一种用于高效LLM推理的新型架构

PIM-AI: A Novel Architecture for High-Efficiency LLM Inference

UPMEM(UPMEM公司);Grenoble(格勒诺布尔)

Cristobal Ortega, Yann Falevoz, Renaud Ayrignac

AI总结:

针对LLM推理的计算与内存需求挑战,本文提出无需修改内存控制器或PHY的DDR5/LPDDR5 PIM架构PIM-AI,通过模拟器验证其在云场景降低3年TCO达6.94倍、移动场景提升能效与查询性能,为LLM部署提供高效方案。

摘要:

大型语言模型(LLMs)凭借其先进的语言理解和生成能力,已在各类应用中变得至关重要。然而,其计算和内存需求对传统硬件架构构成重大挑战。内存中处理(PIM)技术将计算单元直接集成到内存芯片中,为LLM推理提供了诸多优势,包括减少数据传输瓶颈和提高能效。本文介绍PIM-AI,一种专为LLM推理设计的新型DDR5/LPDDR5 PIM架构,无需修改内存控制器或DDR/LPDDR内存物理层(PHY)。我们开发了一个模拟器,用于评估PIM-AI在各种场景下的性能,并证明其相较于传统架构的显著优势。在云场景中,根据所用LLM模型的不同,PIM-AI将每查询每秒的3年总拥有成本(TCO)降低了高达6.94倍。在移动场景中,PIM-AI实现了每token能耗较最先进移动系统级芯片(SoCs)降低10至20倍,从而使每秒查询数增加25%至45%,每查询能耗减少6.9倍至13.4倍,延长了电池寿命并提高了每次充电的推理次数。这些结果凸显了PIM-AI革新LLM部署的潜力,使其更高效、可扩展且可持续。

英文摘要:

Large Language Models (LLMs) have become essential in a variety of applications due to their advanced language understanding and generation capabilities. However, their computational and memory requirements pose significant challenges to traditional hardware architectures. Processing-in-Memory (PIM), which integrates computational units directly into memory chips, offers several advantages for LLM inference, including reduced data transfer bottlenecks and improved power efficiency. This paper introduces PIM-AI, a novel DDR5/LPDDR5 PIM architecture designed for LLM inference without modifying the memory controller or DDR/LPDDR memory PHY. We have developed a simulator to evaluate the performance of PIM-AI in various scenarios and demonstrate its significant advantages over conventional architectures. In cloud-based scenarios, PIM-AI reduces the 3-year TCO per queries-per-second by up to 6.94x compared to state-of-the-art GPUs, depending on the LLM model used. In mobile scenarios, PIM-AI achieves a 10- to 20-fold reduction in energy per token compared to state-of-the-art mobile SoCs, resulting in 25 to 45~\% more queries per second and 6.9x to 13.4x less energy per query, extending battery life and enabling more inferences per charge. These results highlight PIM-AI's potential to revolutionize LLM deployments, making them more efficient, scalable, and sustainable.

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

↑