[论文解读] FusionAI: Decentralized Training and Deploying LLMs with Massive Consumer-Level GPUs
FusionAI 提出一个去中心化系统,使用消费级 GPU 来训练和部署 LLMs,包含经纪人、基于有向无环图的执行、IR/执行平面,以及容错调度;在他们的分析中,50 RTX 3080 可以达到与 4 H100 相当的吞吐量。
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.
研究动机与目标
- 推动解锁用于 LLM 训练、推理和微调的消费级 GPU,同时保护数据隐私。
- 设计一个去中心化系统,处理异构设备、可选的深度学习框架,以及动态节点参与。
- 使用基于 DAG 的分解以及 IR/执行平面,将模型的子 DAG 抽象并加载到内存有限的设备上,以实现兼容性。
- 提供性能模型和调度策略,以管理硬件异质性和网络带宽的限制。
提出的方法
- 将模型执行 DAG 拆分成子 DAG,并加载到内存受限的设备上(前向、反向、更新阶段)。
- 将 DAG 抽象为中间表示(IR)平面和执行平面,以解耦硬件/框架的具体细节。
- 使用带有备份池的经纪人来管理计算节点的动态加入/退出,并将未完成任务路由到替代节点。
- 使用带有分布式哈希表(DHT)的数据/存储查找和自组织数据交换的去中心化通信层。
- 用基于 PALEO 的回归缩放因子来建模硬件性能,以估计实际速度和时序 (T(f,p) = R(Pa(f)) + C(f,p) + W(f,p))。
- 通过求解负载均衡的分配问题来调度任务,在设备内存约束下尽量最小化每个对等节点的最大延迟。
实验结果
研究问题
- RQ1在去中心化环境下,能否有效地利用消费级 GPU 进行 LLM 的训练、推理和微调?
- RQ2如何通过基于 DAG 的模型执行、IR/执行平面以及经纪人支持的容错架构,减轻内存、带宽和异质性带来的挑战?
- RQ3哪些调度和性能建模方法能够在多样化设备上实现可扩展、私有的去中心化 LLM 计算?
主要发现
- 在他们的分析中,50 张 RTX 3080 GPU 的吞吐量可以与 4 张 H100 GPU 相当,成本更低。
- 系统设计包含基于 DAG 的任务分解、IR 和执行平面、带备份节点的经纪人,以及针对异质性的硬件感知调度。
- 基于 DHT 的去中心化通信支持跨节点的可扩展数据存储与检索,提升容错和隐私考量。
- 分析性能模型将计算时间、数据移动和通信结合起来,以估计 FP 任务延迟和流水线吞吐量。
- 一种考虑流水线的调度方法在 GPU/CPU/DISK 約束下平衡工作负载,以减少瓶颈、提高吞吐量。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。