arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.16158cs.ARcs.DCcs.LG
收藏

在多FPGA平台上实现大规模Transformer的可行性

The Feasibility of Implementing Large-Scale Transformers on Multi-FPGA Platforms

University of Toronto(多伦多大学)

Yu Gao, Juan Camilo Vega, Paul Chow

AI总结:

本文探讨了在多FPGA平台上实现大规模Transformer的可行性,通过开发可扩展的多FPGA平台和映射工具,成功以6个FPGA实现I-BERT编码器作为概念验证,证明FPGA在大型机器学习应用中具潜力。

摘要:

在讨论在数据中心中实现大型机器学习应用(如大型语言模型,LLMs)时,很少提及FPGA。大量证据表明,单FPGA在某些计算的性能上可以与GPU相媲美,尤其是在低延迟方面,并且在考虑功耗时通常效率更高。这表明探索将多个FPGA用于大型机器学习应用是有价值的。使用多个FPGA的挑战在于,没有一种被普遍接受的多FPGA应用开发和部署流程,即没有工具可以描述大型应用、将其映射到多个FPGA上,然后在多FPGA平台上部署该应用。在本文中,我们通过开发一个可扩展的多FPGA平台和一些将大型应用映射到该平台的工具,探讨了使用多个FPGA实现大型Transformer的可行性。我们通过设计高效的I-BERT transformer多FPGA版本,并使用六个FPGA实现一个编码器作为工作概念验证,验证了我们的方法,表明我们的平台和工具可以正常工作。基于我们的概念验证原型以及使用最新FPGA与GPU相比的性能估计,我们得出结论,FPGA在大型机器学习应用领域可以占有一席之地。我们展示了一个有希望的第一步,表明有了正确的基础设施和工具,继续探索将FPGA用于LLMs等应用的可能益处是合理的。

英文摘要:

FPGAs are rarely mentioned when discussing the implementation of large machine learning applications, such as Large Language Models (LLMs), in the data center. There has been much evidence showing that single FPGAs can be competitive with GPUs in performance for some computations, especially for low latency, and often much more efficient when power is considered. This suggests that there is merit to exploring the use of multiple FPGAs for large machine learning applications. The challenge with using multiple FPGAs is that there is no commonly-accepted flow for developing and deploying multi-FPGA applications, i.e., there are no tools to describe a large application, map it to multiple FPGAs and then deploy the application on a multi-FPGA platform. In this paper, we explore the feasibility of implementing large transformers using multiple FPGAs by developing a scalable multi-FPGA platform and some tools to map large applications to the platform. We validate our approach by designing an efficient multi-FPGA version of the I-BERT transformer and implement one encoder using six FPGAs as a working proof-of-concept to show that our platform and tools work. Based on our proof-of-concept prototype and the estimations of performance using the latest FPGAs compared to GPUs, we conclude that there can be a place for FPGAs in the world of large machine learning applications. We demonstrate a promising first step that shows that with the right infrastructure and tools it is reasonable to continue to explore the possible benefits of using FPGAs for applications such as LLMs.

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

↑