arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.15008cs.AR
收藏

IANUS:基于NPU-PIM统一内存系统的集成加速器

IANUS: Integrated Accelerator based on NPU-PIM Unified Memory System

Minseok Seo, Xuan Truong Nguyen, Seok Joong Hwang, Yongkee Kwon, Guhyun Kim, Chanwook Park, Ilkon Kim, Jaehan Park, Jeongbin Kim, Woojae Shin, Jongsoon Won, Hae… 展开作者

Minseok Seo, Xuan Truong Nguyen, Seok Joong Hwang, Yongkee Kwon, Guhyun Kim, Chanwook Park, Ilkon Kim, Jaehan Park, Jeongbin Kim, Woojae Shin, Jongsoon Won, Haerang Choi, Kyuyoung Kim, Daehan Kwon, Chunseok Jeong, Sangheon Lee, Yongseok Choi, Wooseok Byun, Seungcheol Baek, Hyuk-Jae Lee, John Kim

AI总结:

本文提出IANUS集成加速器,通过NPU与PIM统一内存系统及PIM访问调度机制,在GPT-2上相比A100 GPU和最先进加速器分别实现6.2倍和3.2倍性能提升。

摘要:

加速基于Transformer的大语言模型(LLMs)的端到端推理是数据中心AI服务的关键组成部分。然而,端到端LLM推理的多样化计算特性带来了挑战,因为此前提出的加速器仅针对某些操作或阶段(例如自注意力、生成阶段等)。为应对加速端到端推理的独特挑战,我们提出了IANUS——基于NPU-PIM统一内存系统的集成加速器。IANUS是一种领域专用系统架构,将神经处理单元(NPU)与存内处理(PIM)相结合,以同时利用NPU的高计算吞吐量和PIM的高有效内存带宽。特别地,IANUS采用统一的主内存系统,其中PIM内存既用于PIM操作,也用作NPU的主内存。该统一主内存系统确保内存容量得到高效利用,并最大限度地减少NPU与PIM之间共享数据的移动。然而,这也带来了新的挑战,因为普通内存访问和PIM计算无法同时执行。因此,我们提出了新颖的PIM访问调度机制,通过在PIM和NPU之间进行工作负载映射与调度来管理普通内存访问和PIM计算。我们详细的仿真评估表明,与NVIDIA A100 GPU和最先进的加速器相比,IANUS在GPT-2上的性能平均分别提升了6.2倍和3.2倍。作为概念验证,我们使用商用PIM、NPU和基于FPGA的PIM控制器开发了IANUS原型,以证明IANUS的可行性。

英文摘要:

Accelerating end-to-end inference of transformer-based large language models (LLMs) is a critical component of AI services in datacenters. However, diverse compute characteristics of end-to-end LLM inference present challenges as previously proposed accelerators only address certain operations or stages (e.g., self-attention, generation stage, etc.). To address the unique challenges of accelerating end-to-end inference, we propose IANUS -- Integrated Accelerator based on NPU-PIM Unified Memory System. IANUS is a domain-specific system architecture that combines a Neural Processing Unit (NPU) with a Processing-in-Memory (PIM) to leverage both the NPU's high computation throughput and the PIM's high effective memory bandwidth. In particular, IANUS employs a unified main memory system where the PIM memory is used both for PIM operations and for NPU's main memory. The unified main memory system ensures that memory capacity is efficiently utilized and the movement of shared data between NPU and PIM is minimized. However, it introduces new challenges since normal memory accesses and PIM computations cannot be performed simultaneously. Thus, we propose novel PIM Access Scheduling that manages normal memory accesses and PIM computations through workload mapping and scheduling across the PIM and the NPU. Our detailed simulation evaluations show that IANUS improves the performance of GPT-2 by 6.2$\times$ and 3.2$\times$, on average, compared to the NVIDIA A100 GPU and the state-of-the-art accelerator. As a proof-of-concept, we develop a prototype of IANUS with a commercial PIM, NPU, and an FPGA-based PIM controller to demonstrate the feasibility of IANUS.

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

↑