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

让大语言模型推理人人可用:用NDP-DIMM扩展GPU内存

Make LLM Inference Affordable to Everyone: Augmenting GPU Memory with NDP-DIMM

Lian Liu, Shixin Zhao, Bing Li, Haimeng Ren, Zhaohui Xu, Mengdi Wang, Xiaowei Li, Yinhe Han, Ying Wang

AI总结:

针对LLM推理硬件成本高、主机-GPU带宽受限的问题,提出Hermes系统,利用NDP-DIMM与消费级GPU异构协同,结合激活稀疏性划分冷热神经元、轻量预测器动态调整和窗口调度均衡负载,大幅提升低成本硬件上的LLM推理速度。

摘要:

十亿参数规模的大语言模型(LLM)需要部署在配备大容量高带宽内存(HBM)且算力充足的昂贵服务器级GPU上。随着LLM辅助服务日益普及,在性价比高的硬件上实现低成本高效的LLM推理已成为发展趋势。已有大量研究将LLM参数从昂贵的GPU迁移到主机内存,但主机与GPU内存之间的带宽受限,制约了推理性能。\n本研究提出Hermes——一套低成本系统,它利用商用DRAM双列直插内存模块(DIMM)中的近数据处理(NDP)能力,提升单张消费级GPU的性能,实现高效LLM推理。LLM中固有的激活稀疏性会自然将权重参数分为两类,分别称为“热”神经元和“冷”神经元。仅占所有权重参数约20%的热神经元承担了80%的总计算负载,而占其余80%参数的冷神经元仅负责20%的计算负载。据此,我们提出一种异构计算策略:将热神经元映射到单张算力强劲的GPU上,同时将冷神经元卸载到内存容量大但计算能力有限的NDP-DIMM上。同时,激活稀疏性的动态特性需要对热/冷神经元进行实时划分,并在多个NDP-DIMM模块间自适应地重新映射冷神经元。因此,我们引入了一个轻量级预测器,用于优化GPU与NDP-DIMM之间的实时神经元划分与调整。我们还采用了基于窗口的在线调度机制,以维持NDP-DIMM模块间的负载均衡。Hermes可在消费级硬件上以13.75 tokens/s的速度部署LLaMA2-70B,相比当前最优的基于卸载的推理系统,平均实现75.24倍的速度提升。

英文摘要:

The billion-scale Large Language Models (LLMs) need deployment on expensive server-grade GPUs with large-storage HBMs and abundant computation capability. As LLM-assisted services become popular, achieving cost-effective LLM inference on budget-friendly hardware becomes the trend. Extensive researches relocate LLM parameters from expensive GPUs to host memory. However, the restricted bandwidth between the host and GPU memory limits the inference performance. This work introduces Hermes, a budget-friendly system that leverages the near-data processing (NDP) within commodity DRAM DIMMs to enhance the performance of a single consumer-grade GPU, achieving efficient LLM inference. The inherent activation sparsity in LLMs naturally divides weight parameters into two categories, termed ``hot" and ``cold" neurons, respectively. Hot neurons, which consist of only approximately 20\% of all weight parameters, account for 80\% of the total computational load, while cold neurons make up the other 80\% of parameters but are responsible for just 20\% of the computational load. Therefore, we propose a heterogeneous computing strategy: mapping hot neurons to a single computation-efficient GPU, while offloading cold neurons to NDP-DIMMs, which offer large memory size but limited computation capabilities. Meanwhile, the dynamic nature of activation sparsity needs a real-time partition of hot/cold neurons and adaptive remapping of cold neurons across multiple NDP-DIMM modules. Therefore, we introduce a lightweight predictor optimizing real-time neuron partition and adjustment between GPU and NDP-DIMMs. We also utilize a window-based online scheduling mechanism to maintain load balance among NDP-DIMM modules. Hermes facilitates the deployment of LLaMA2-70B on consumer-grade hardware at 13.75 tokens/s and realizes an average 75.24$\times$ speedup over the state-of-the-art offloading-based inference system.

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

↑