AttentionLego: An Open-Source Building Block For Spatially-Scalable Large Language Model Accelerator With Processing-In-Memory Technology

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Cong, Rongqing, He, Wenyang, Li, Mingxuan, Luo, Bangning, Yang, Zebin, Yang, Yuchao, Huang, Ru, Yan, Bonan
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909078624665600
author Cong, Rongqing
He, Wenyang
Li, Mingxuan
Luo, Bangning
Yang, Zebin
Yang, Yuchao
Huang, Ru
Yan, Bonan
author_facet Cong, Rongqing
He, Wenyang
Li, Mingxuan
Luo, Bangning
Yang, Zebin
Yang, Yuchao
Huang, Ru
Yan, Bonan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_11459
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle AttentionLego: An Open-Source Building Block For Spatially-Scalable Large Language Model Accelerator With Processing-In-Memory Technology
Cong, Rongqing
He, Wenyang
Li, Mingxuan
Luo, Bangning
Yang, Zebin
Yang, Yuchao
Huang, Ru
Yan, Bonan
Hardware Architecture
Artificial Intelligence
Machine Learning
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.
title AttentionLego: An Open-Source Building Block For Spatially-Scalable Large Language Model Accelerator With Processing-In-Memory Technology
topic Hardware Architecture
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2401.11459