Sangam用芯片组设计突破内存瓶颈,让大模型推理快十倍还省电。
Sangam: Chiplet-Based DRAM-PIM Accelerator with CXL Integration for LLM Inferencing
- 把计算和内存拆成不同芯片,用CXL连接,避开传统内存芯片的面积限制。
- 在70亿参数模型上,推理速度比H100快4.2倍,吞吐量提升9.5倍。
- 适合需要高带宽、低延迟的大模型部署场景,尤其适合推理任务。
大型语言模型(LLMs)因模型规模增大而日益数据密集,随着上下文长度增加,键值(KV)缓存规模上升,推理逐渐成为内存瓶颈。解码阶段主要由操作强度低的内存密集型GEMV或扁平化GEMM运算主导,非常适合处理-内存(PIM)架构。然而现有内存内/近内存方案存在严重局限:将处理单元(PEs)集成到DRAM芯片中导致内存容量大幅降低;且受限于DRAM制造工艺,处理能力不足。本文提出Sangam,一种基于芯片组的内存模块,通过将逻辑与内存分置在异构工艺节点上,并由中介层互联,实现高性能连接。逻辑芯片组可维持对内存芯片组的高带宽访问,同时支持集成如列阵和基于SRAM的缓冲区等先进处理组件,显著加速内存密集型的GEMM核运算,这是以往PIM架构难以实现的。Sangam作为支持CXL的芯片组式PIM内存模块,既可替代GPU,也可与之协同工作。在LLaMA 2-7B、Mistral-7B和LLaMA 3-70B上,相比H100 GPU,Sangam分别实现了3.93、4.22、2.82倍的端到端查询延迟加速,10.3、9.5、6.36倍更高的解码吞吐量,以及数量级的能效节省。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。