arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.01172cs.DCcs.AIcs.LGcs.NI
收藏

FusionAI:利用大规模消费级GPU进行去中心化训练与部署大语言模型

FusionAI: Decentralized Training and Deploying LLMs with Massive Consumer-Level GPUs

Hong Kong Baptist University(香港浸会大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Northeastern University(东北大学);National University of Singapore(新加坡国立大学);XGRIDS;HKUST(GZ)(香港科技大学(广州))

Zhenheng Tang, Yuxin Wang, Xin He, Longteng Zhang, Xinglin Pan, Qiang Wang, Rongfei Zeng, Kaiyong Zhao, Shaohuai Shi, Bingsheng He, Xiaowen Chu

AI总结:

针对缺乏高端GPU的用户,本文提出去中心化系统FusionAI,利用消费级GPU进行LLM预训练、推理和微调,通过代理、调度和DAG抽象解决资源限制,实现50块RTX 3080媲美4块H100的吞吐量。

摘要:

大语言模型(LLM)在内存和计算需求上的快速增长已超过硬件的发展速度,阻碍了缺乏大规模高端GPU的人们训练或部署LLM。然而,占据更大市场份额的消费级GPU,由于其计算性能较弱、存储容量较小和通信带宽较低,在LLM中通常被忽视。此外,用户在与远程LLM交互时可能存在隐私担忧。在本文中,我们设想一个去中心化系统,通过隐私保护解锁消费级GPU在LLM预训练、推理和微调中的巨大未开发潜力。然而,该系统面临关键挑战,包括CPU和GPU内存有限、网络带宽低、对等节点的可变性以及设备异构性。为解决这些挑战,我们的系统设计包括:1)一个带有备份池的代理,实现计算提供者的动态加入和退出;2)基于硬件性能的任务调度以提高系统效率;3)将机器学习流程抽象为有向无环图(DAGs),以实现模型和任务的通用性;4)抽象中间表示和执行平面,以确保各种设备和深度学习(DL)框架的兼容性。我们的性能分析表明,50块RTX 3080 GPU可以达到与4块H100 GPU相当的吞吐量,而后者价格显著更高。

英文摘要:

The rapid growth of memory and computation requirements of large language models (LLMs) has outpaced the development of hardware, hindering people who lack large-scale high-end GPUs from training or deploying LLMs. However, consumer-level GPUs, which constitute a larger market share, are typically overlooked in LLM due to their weaker computing performance, smaller storage capacity, and lower communication bandwidth. Additionally, users may have privacy concerns when interacting with remote LLMs. In this paper, we envision a decentralized system unlocking the potential vast untapped consumer-level GPUs in pre-training, inference and fine-tuning of LLMs with privacy protection. However, this system faces critical challenges, including limited CPU and GPU memory, low network bandwidth, the variability of peer and device heterogeneity. To address these challenges, our system design incorporates: 1) a broker with backup pool to implement dynamic join and quit of computing providers; 2) task scheduling with hardware performance to improve system efficiency; 3) abstracting ML procedures into directed acyclic graphs (DAGs) to achieve model and task universality; 4) abstracting intermediate represention and execution planes to ensure compatibility of various devices and deep learning (DL) frameworks. Our performance analysis demonstrates that 50 RTX 3080 GPUs can achieve throughputs comparable to those of 4 H100 GPUs, which are significantly more expensive.

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

↑