基于FPGA的AI智能可扩展分布式AI训练系统
FPGA-based AI Smart NICs for Scalable Distributed AI Training Systems
摘要:
人工智能(AI)技术的快速发展已经导致无数应用领域的准确性显著提高,但代价是更大和更计算密集型的模型。在大量数据上训练这样的模型通常需要扩展到许多计算节点,并且在很大程度上依赖于集体通信算法,例如all-reduce,以在不同节点之间交换权重梯度。分布式人工智能训练系统中这些集体通信操作的开销可能会阻碍其性能,并且随着节点数量的增加,影响会更加明显。在本文中,我们首先通过分析分布式AI训练来描述所有简化操作开销。然后,我们提出了一种新的智能网络接口卡(NIC)的分布式AI训练系统使用现场可编程门阵列(FPGA),以加速所有减少操作和优化网络带宽利用率通过数据压缩。AI智能NIC释放了系统的计算资源,以执行计算密集型张量操作,并提高了整体节点到节点的通信效率。我们对一个由6个计算节点组成的原型分布式AI训练系统进行了实际测量,以评估我们提出的基于FPGA的AI智能NIC与具有常规CPU的基线系统相比的性能增益。我们还使用这些测量来验证我们制定的分析模型,以预测扩展到更大的系统时的性能。我们提出的基于FPGA的AI智能NIC在6个节点上将整体训练性能提高了1.6倍,与使用传统NIC的基线系统相比,在32个节点上估计性能提高了2.5倍。
英文摘要:
Rapid advances in artificial intelligence (AI) technology have led to significant accuracy improvements in a myriad of application domains at the cost of larger and more compute-intensive models. Training such models on massive amounts of data typically requires scaling to many compute nodes and relies heavily on collective communication algorithms, such as all-reduce, to exchange the weight gradients between different nodes. The overhead of these collective communication operations in a distributed AI training system can bottleneck its performance, with more pronounced effects as the number of nodes increases. In this paper, we first characterize the all-reduce operation overhead by profiling distributed AI training. Then, we propose a new smart network interface card (NIC) for distributed AI training systems using field-programmable gate arrays (FPGAs) to accelerate all-reduce operations and optimize network bandwidth utilization via data compression. The AI smart NIC frees up the system's compute resources to perform the more compute-intensive tensor operations and increases the overall node-to-node communication efficiency. We perform real measurements on a prototype distributed AI training system comprised of 6 compute nodes to evaluate the performance gains of our proposed FPGA-based AI smart NIC compared to a baseline system with regular NICs. We also use these measurements to validate an analytical model that we formulate to predict performance when scaling to larger systems. Our proposed FPGA-based AI smart NIC enhances overall training performance by 1.6x at 6 nodes, with an estimated 2.5x performance improvement at 32 nodes, compared to the baseline system using conventional NICs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。