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.
翻译:变压器是一种深层次的学习语言模型,广泛用于在数据中心的自然语言处理(NLP)服务。在变压器模型中,先训练变压器(GPT)在文本生成或自然语言生成(NLG)中取得了显著的成绩。在文本生成或自然语言生成(NLG)中,需要处理大量输入环境,随后是生成阶段,产生一个单词。GPU等传统平台专门用于在合成阶段平行处理大量投入,但由于其相继特性,其性能在生成阶段显著下降。因此,需要有一个高效的硬件平台来解决因文本生成的相继特性而导致的高透明性。在本文件中,我们提供DFX,一个多功能变压器加速能力,在合成阶段和生成阶段同时处理大量投入。DFX使用模型平行和优化数据流,在设备之间同时执行的模型和硬件同步运行。 它在GPFA 4 高级智能操作中,使用所有硬拷贝机中,并且使用SBEFA-DFA的高级智能操作中, 4个高级智能和S-SDFDFDFDFDS 的高级操作系统运行系统。