系统梳理生成式大模型在不同硬件上的推理加速方法与性能对比。
Large Language Model Inference Acceleration: A Comprehensive Hardware Perspective
- 从算法架构到推理流程,全面分析主流生成式大模型特性。
- 对比CPU/GPU/FPGA/ASIC/PIM在批处理1和8下的速度、功耗与能效表现。
- 揭示多模态、推理计算、高能效三大趋势对边缘AI的重塑潜力。
生成式大语言模型(如GPT系列、Llama系列)在自然语言理解与文本生成等领域展现出卓越能力,其发展与硬件进步紧密相关。本文系统综述了不同硬件平台(包括CPU、GPU、FPGA、ASIC、PIM/NDP)上生成式大模型的高效推理技术。首先概述主流生成式大模型的算法架构及推理过程;随后总结各平台的优化方法,并提供具体推理性能数据。通过批大小为1和8的场景,定量比较各平台的绝对推理速度(tokens/s)、功耗及能量效率(tokens/J)。进一步分析同一优化方法在不同平台间的差异、不同平台间的表现差异,以及同一平台下不同方法的优劣。本工作整合软件优化与硬件平台,形成系统性总结,指出多模态、推理期计算、更高推理能效三大趋势将重新定义边缘人工智能系统的潜力。项目主页:https://dai.sjtu.edu.cn/project.html。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have demonstrated remarkable capabilities across various fields, from natural language understanding to text generation. Compared to non-generative LLMs like BERT and DeBERTa, generative LLMs like GPT series and Llama series are currently the main focus due to their superior algorithmic performance. The advancements in generative LLMs are closely intertwined with the development of hardware capabilities. Various hardware platforms exhibit distinct hardware characteristics, which can help improve LLM inference performance. Therefore, this paper comprehensively surveys efficient generative LLM inference on different hardware platforms. First, we provide an overview of the algorithm architecture of mainstream generative LLMs and delve into the inference process. Then, we summarize different optimization methods for different platforms such as CPU, GPU, FPGA, ASIC, and PIM/NDP, and provide inference results for generative LLMs. Furthermore, we perform a qualitative and quantitative comparison of inference performance with batch sizes 1 and 8 on different hardware platforms by considering hardware power consumption, absolute inference speed (tokens/s), and energy efficiency (tokens/J). We compare the performance of the same optimization methods across different hardware platforms, the performance across different hardware platforms, and the performance of different methods on the same hardware platform. This provides a systematic and comprehensive summary of existing inference acceleration work by integrating software optimization methods and hardware platforms. We point out that three trends (multimodality, inference-time compute, and higher inference energy efficiency) are promising to redefine the capabilities of edge artificial intelligence systems. Our project is available at https://dai.sjtu.edu.cn/project.html.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。