arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.10797eess.SYcs.ARcs.LGcs.SY
收藏

DFX:一种用于加速基于transformer的文本生成的低延迟多FPGA设备

DFX: A Low-latency Multi-FPGA Appliance for Accelerating Transformer-based Text Generation

KAIST(韩国科学技术院);NAVER CLOVA

Seongmin Hong, Seungjae Moon, Junsoo Kim, Sungjae Lee, Minsub Kim, Dongsoo Lee, Joo-Young Kim

摘要:

Transformer是一种深度学习语言模型,广泛用于网络中心的自然语言处理(NLP)服务。在Transformer模型中,生成预训练的Transformer(GPT)在文本生成或自然语言生成(NLG)方面取得了卓越的性能,NLG需要在摘要阶段处理大量输入上下文,然后是每次生成单个单词的生成阶段。GPU等传统平台专门用于在摘要阶段并行处理大输入,但由于其顺序特性,其性能在生成阶段显着下降。因此,需要一个高效的硬件平台来解决文本生成的顺序特性所导致的高延迟。在本文中,我们提出了DFX,多FPGA加速装置,执行GPT-2模型推理端到端的低延迟和高吞吐量的总结和生成阶段。DFX使用模型并行性和优化的并行性,它是模型和硬件感知的,可在设备之间快速同步执行工作负载。它的计算核心运行自定义指令,并提供端到端的GPT-2操作。我们在四个Xilinx Alveo U280 FPGA上实现了所提出的硬件架构,并利用高带宽存储器(HBM)的所有通道和最大数量的计算资源来实现高硬件效率。DFX在现代GPT-2型号上的四个NVIDIA V100 GPU上实现了5.58倍的加速和3.99倍的能效。DFX的成本效益也是GPU设备的8.21倍,这表明它是云计算中心文本生成工作负载的一个有前途的解决方案。

英文摘要:

Transformer is a deep learning language model widely used for natural language processing (NLP) services in datacenters. Among transformer models, Generative Pre-trained Transformer (GPT) has achieved remarkable performance in text generation, or natural language generation (NLG), which needs the processing of a large input context in the summarization stage, followed by the generation stage that produces a single word at a time. The conventional platforms such as GPU are specialized for the parallel processing of large inputs in the summarization stage, but their performance significantly degrades in the generation stage due to its sequential characteristic. Therefore, an efficient hardware platform is required to address the high latency caused by the sequential characteristic of text generation. In this paper, we present DFX, a multi-FPGA acceleration appliance that executes GPT-2 model inference end-to-end with low latency and high throughput in both summarization and generation stages. DFX uses model parallelism and optimized dataflow that is model-and-hardware-aware for fast simultaneous workload execution among devices. Its compute cores operate on custom instructions and provide GPT-2 operations end-to-end. We implement the proposed hardware architecture on four Xilinx Alveo U280 FPGAs and utilize all of the channels of the high bandwidth memory (HBM) and the maximum number of compute resources for high hardware efficiency. DFX achieves 5.58x speedup and 3.99x energy efficiency over four NVIDIA V100 GPUs on the modern GPT-2 model. DFX is also 8.21x more cost-effective than the GPU appliance, suggesting that it is a promising solution for text generation workloads in cloud datacenters.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑