AttentionLego:一种利用存内计算技术构建空间可扩展大语言模型加速器的开源构建模块
AttentionLego: An Open-Source Building Block For Spatially-Scalable Large Language Model Accelerator With Processing-In-Memory Technology
AI总结:
本文提出开源自注意力加速器 AttentionLego,利用 PIM 矩阵-向量乘法与查找表 Softmax 降低带宽需求,并作为空间扩展 LLM 处理器的基础模块。
摘要:
采用 Transformer 架构的大语言模型(LLM)已在自然语言处理、多模态生成式人工智能以及面向智能体的人工智能中取得非凡发展。自注意力模块是基于 Transformer 的 LLM 中最占主导地位的子结构。使用通用图形处理器(GPU)进行计算,会在存储器与处理单元之间传输中间计算结果时,对 I/O 带宽造成不加节制的需求。为应对这一挑战,本工作开发了一种完全定制的普通自注意力加速器 AttentionLego,作为构建空间可扩展 LLM 处理器的基本构建模块。AttentionLego 通过融合存内计算(PIM)技术的全定制数字逻辑提供基础实现。它基于 PIM 矩阵-向量乘法和基于查找表的 Softmax 设计。开源代码已在线提供:https://bonany.cc/attentionleg。
英文摘要:
Large language models (LLMs) with Transformer architectures have become phenomenal in natural language processing, multimodal generative artificial intelligence, and agent-oriented artificial intelligence. The self-attention module is the most dominating sub-structure inside Transformer-based LLMs. Computation using general-purpose graphics processing units (GPUs) inflicts reckless demand for I/O bandwidth for transferring intermediate calculation results between memories and processing units. To tackle this challenge, this work develops a fully customized vanilla self-attention accelerator, AttentionLego, as the basic building block for constructing spatially expandable LLM processors. AttentionLego provides basic implementation with fully-customized digital logic incorporating Processing-In-Memory (PIM) technology. It is based on PIM-based matrix-vector multiplication and look-up table-based Softmax design. The open-source code is available online: https://bonany.cc/attentionleg.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。