LORA: A Latency-Oriented Recurrent Architecture for GPT Model on Multi-FPGA Platform with Communication Optimization
Large Language Models (LLMs) have been widely deployed in data centers to provide various services, among which the most representative is the Generative Pre-trained Transformer (GPT). The GPT model has heavy memory and computing overhead, and its inference process has two stages with distinct computing characteristics: Prefill and Decode. Utilizing existing GPUs and FPGA accelerators to construct a platform for deploying GPT in data centers faces the challenges of needing more effective synchronization schemes or structures with higher computational intensity. This paper proposes LORA, a low latency end-to-end GPT acceleration platform utilizing multiple FPGAs. Firstly, we optimize the synchronization timing of the GPT model to reduce the computation and communication overhead. Secondly, we devise some efficient synchronization steps for specific layers of the GPT model that overlap part of the computation and communication delay to improve the latency of our platform. Finally, we deploy recurrent structures on each FPGA to accelerate the different stages of the GPT model. Implemented on the Xilinx Alveo U280 FPGAs, LORA achieves an average $11.1 \times$ speedup over NVIDIA V100 GPUs on the modern GPT-2 model. Compared to the existing multi-FPGA accelerator appliance, LORA shows performance improvements of up to $4 \times$ and $2.7 \times$ in the Prefill and Decode stages.
Authors
- Xuehai Zhou
- Lei Gong (ORCID: https://orcid.org/0000-0002-8391-5526)
- Teng Wang (ORCID: https://orcid.org/0000-0002-7281-1203)
- Chao Wang (ORCID: https://orcid.org/0000-0003-0057-5341)
- Cheng Tang (ORCID: https://orcid.org/0009-0009-0562-1926)
- Xianglan Chen (ORCID: https://orcid.org/0009-0007-7845-3068)
- Zhendong Zheng (ORCID: https://orcid.org/0000-0002-6486-3062)
- Qianyu Cheng (ORCID: https://orcid.org/0000-0001-8321-6920)
Institutions
- University of Science and Technology of China (CN)
- Suzhou University of Science and Technology (CN)
Publication Details
- Published
- 2024-09-02
- DOI
- https://doi.org/10.1109/fpl64840.2024.00053
- Primary Topic
- Advanced Data Storage Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Youth Innovation Promotion Association