Cambricon-LLM: A Chiplet-Based Hybrid Architecture for On-Device Inference of 70B LLM
Authors:
- 2 November 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1474-1488
Abstract
Deploying advanced large language models on edge devices, such as smartphones and robotics, is a growing trend that enhances user data privacy and network connectivity resilience while preserving intelligent capabilities. However, such a task exhibits single-batch computing with incredibly low arithmetic intensity, which poses the significant challenges of huge memory footprint and bandwidth demands on limited edge resources. To address these issues, we introduce Cambricon-LLM, a chiplet-based hybrid architecture with NPU and a dedicated NAND flash chip to enable efficient on-device inference of 70B LLMs. Such a hybrid architecture utilizes both the high computing capability of NPU and the data capacity of the NAND flash chip, with the proposed hardware-tiling strategy that minimizes the data movement overhead between NPU and NAND flash chip. Specifically, the NAND flash chip, enhanced by our innovative in-flash computing and on-die ECC techniques, excels at performing precise lightweight on-die processing. Simultaneously, the NPU collaborates with the flash chip for matrix operations and handles special function computations beyond the flash's on-die processing capabilities. Overall, Cambricon-LLM enables the on-device inference of 70B LLMs at a speed of 3.44 token/s, and 7B LLMs at a speed of 36.34 token/s, which is over 22× to 45× faster than existing flash-offloading technologies, showing the potentiality of deploying powerful LLMs in edge devices.Keywords
All Related Versions
This publication has 49 references indexed in Scilit:
- BeaconGNN: Large-Scale GNN Acceleration with Out-of-Order Streaming In-Storage Computing2024
- Error Bits Recovering in 3D NAND Flash Memory: A Novel State-Shift Re-Program (SRP) Scheme2023
- OptimStore: In-Storage Optimization of Large Scale DNNs with On-Die Processing2023
- SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning2021
- Memory devices and applications for in-memory computingNature Nanotechnology, 2020
- A^3: Accelerating Attention Mechanisms in Neural Networks with Approximation2020
- How many words do we read per minute? A review and meta-analysis of reading rateJournal of Memory and Language, 2019
- Processing data where it makes sense: Enabling in-memory computationMicroprocessors and Microsystems, 2019
- Catalina: In-Storage Processing Acceleration for Scalable Big Data Analytics2019
- Quantifying the energy cost of data movement for emerging smart phone workloads on mobile platforms2014