arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.00461cs.ARcs.AI
收藏

利用存内计算实现 TPU 中高效的生成模型推理

Leveraging Compute-in-Memory for Efficient Generative Model Inference in TPUs

School of Integrated Circuits, Peking University(北京大学集成电路学院);School of EECS, Peking University(北京大学电子工程与计算机科学学院)

Zhantong Zhu, Hongou Li, Wenjie Ren, Meng Wu, Le Ye, Ru Huang, Tianyu Jia

AI总结:

本研究提出一种集成数字 CIM 的 TPU 架构,替代传统脉动阵列,并建立架构模型与模拟器,在生成模型推理中实现显著性能提升与能耗降低。

摘要:

随着生成模型的快速发展,将这些模型高效地部署在专用硬件上变得至关重要。Tensor Processing Units (TPUs) 旨在加速 AI 工作负载,但其高功耗需要通过创新来提升效率。Compute-in-memory (CIM) 作为一种在面积和能效上具有优势的范式应运而生。在本研究中,我们提出了一种集成数字 CIM 的 TPU 架构,以替代矩阵乘单元 (MXUs) 中的传统数字脉动阵列。我们首先建立了基于 CIM 的 TPU 架构模型和模拟器,以评估 CIM 对多种生成模型推理的益处。基于观察到的设计见解,我们进一步探索了各种基于 CIM 的 TPU 架构设计选择。与基线 TPUv4i 架构相比,不同的设计选择可实现高达 44.2% 和 33.8% 的大语言模型和扩散 Transformer 推理性能提升,以及 27.3 倍的 MXU 能耗降低。

英文摘要:

With the rapid advent of generative models, efficiently deploying these models on specialized hardware has become critical. Tensor Processing Units (TPUs) are designed to accelerate AI workloads, but their high power consumption necessitates innovations for improving efficiency. Compute-in-memory (CIM) has emerged as a promising paradigm with superior area and energy efficiency. In this work, we present a TPU architecture that integrates digital CIM to replace conventional digital systolic arrays in matrix multiply units (MXUs). We first establish a CIM-based TPU architecture model and simulator to evaluate the benefits of CIM for diverse generative model inference. Building upon the observed design insights, we further explore various CIM-based TPU architectural design choices. Up to 44.2% and 33.8% performance improvement for large language model and diffusion transformer inference, and 27.3x reduction in MXU energy consumption can be achieved with different design choices, compared to the baseline TPUv4i architecture.

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

↑