Sangam:基于小芯片的DRAM-PIM加速器,通过CXL集成实现大语言模型推理
Sangam: Chiplet-Based DRAM-PIM Accelerator with CXL Integration for LLM Inferencing
AI总结:
针对大语言模型推理因KV缓存增大而内存受限的问题,提出基于小芯片的DRAM-PIM加速器Sangam,通过CXL集成解耦逻辑与内存,提升带宽并支持先进处理组件,显著降低延迟、提高吞吐量且节省能耗。
摘要:
由于模型规模不断扩大,大语言模型(LLMs)的数据密集性日益增强;随着上下文长度及键值(KV)缓存大小增加,它们逐渐受内存限制。推理(尤其是解码阶段)以内存受限的GEMV或扁平GEMM操作为主,运算强度(OI)低,因此非常适合内存内处理(PIM)方法。然而,现有内存内/近内存解决方案面临关键限制:DRAM芯片内集成处理单元(PEs)的面积成本高导致内存容量减少,DRAM制造技术约束导致PE能力有限。本研究提出一种基于小芯片的内存模块,通过将逻辑与内存解耦为异构技术节点制造的小芯片并通过中介层连接,解决了这些限制。逻辑小芯片支持对容纳内存库的DRAM小芯片的高带宽访问,并能集成 systolic arrays和基于SRAM的缓冲器等先进处理组件,以加速内存受限的GEMM内核——这是先前PIM架构无法实现的能力。我们提出Sangam,一种CXL连接的基于PIM小芯片的内存模块,可作为GPU的即插即用替代品或与GPU协同执行。在LLaMA 2-7B、Mistral-7B和LLaMA 3-70B上,针对不同输入大小、输出长度和批次大小,Sangam的端到端查询延迟分别加速3.93、4.22、2.82倍,解码吞吐量分别提升10.3、9.5、6.36倍,能耗节省达一个数量级。
英文摘要:
Large Language Models (LLMs) are becoming increasingly data-intensive due to growing model sizes, and they are becoming memory-bound as the context length and, consequently, the key-value (KV) cache size increase. Inference, particularly the decoding phase, is dominated by memory-bound GEMV or flat GEMM operations with low operational intensity (OI), making it well-suited for processing-in-memory (PIM) approaches. However, existing in/near-memory solutions face critical limitations such as reduced memory capacity due to the high area cost of integrating processing elements (PEs) within DRAM chips, and limited PE capability due to the constraints of DRAM fabrication technology. This work presents a chiplet-based memory module that addresses these limitations by decoupling logic and memory into chiplets fabricated in heterogeneous technology nodes and connected via an interposer. The logic chiplets sustain high bandwidth access to the DRAM chiplets, which house the memory banks, and enable the integration of advanced processing components such as systolic arrays and SRAM-based buffers to accelerate memory-bound GEMM kernels, capabilities that were not feasible in prior PIM architectures. We propose Sangam, a CXL-attached PIM-chiplet based memory module that can either act as a drop-in replacement for GPUs or co-executes along side the GPUs. Sangam achieves speedup of 3.93, 4.22, 2.82x speedup in end-to-end query latency, 10.3, 9.5, 6.36x greater decoding throughput, and order of magnitude energy savings compared to an H100 GPU for varying input size, output length, and batch size on LLaMA 2-7B, Mistral-7B, and LLaMA 3-70B, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。