Skip to main content
QUICK REVIEW

[Paper Review] FusionAI: Decentralized Training and Deploying LLMs with Massive Consumer-Level GPUs

Zhenheng Tang, Yuxin Wang|arXiv (Cornell University)|Sep 3, 2023
Topic ModelingComputer Science10 citations
TL;DR

FusionAI proposes a decentralized system to train and deploy LLMs using consumer-grade GPUs, with a broker, DAG-based execution, IR/execution planes, and fault-tolerant scheduling; 50 RTX 3080 can match throughput of 4 H100 in their analysis.

ABSTRACT

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.

Motivation & Objective

  • Motivate unlocking consumer-level GPUs for LLM training, inference, and fine-tuning while protecting data privacy.
  • Design a decentralized system that handles heterogeneous devices, optional DL frameworks, and dynamic node participation.
  • Abstract and load sub-DAGs of models to devices with limited memory using DAG-based decomposition and IR/Execution planes for compatibility.
  • Provide a performance model and scheduling strategy to manage hardware heterogeneity and network limits.

Proposed method

  • Dissect model execution DAGs into sub-DAGs and load them onto devices with limited memory (forward, backward, update stages).
  • Abstract DAGs into an intermediate representation (IR) plane and an execution plane to decouple hardware/framework specifics.
  • Use a broker with a backup pool to manage dynamic join/quit of compnodes and route unfinished tasks to replacements.
  • Employ a decentralized communication layer with a Distributed Hash Table (DHT) for data/storage lookup and self-organizing data exchange.
  • Model hardware performance with a PALEO-based regression scaling factor to estimate actual speed and timing (T(f,p) = R(Pa(f)) + C(f,p) + W(f,p)).
  • Schedule tasks by solving a load-balanced allocation problem that minimizes the maximum per-peer latency under device memory constraints.

Experimental results

Research questions

  • RQ1Can consumer-level GPUs be effectively harnessed for training, inference, and fine-tuning of LLMs in a decentralized setting?
  • RQ2How can DAG-based model execution, IR/execution planes, and a brokered, fault-tolerant architecture mitigate memory, bandwidth, and heterogeneity challenges?
  • RQ3What scheduling and performance modeling approaches enable scalable, private, decentralized LLM computation across diverse devices?

Key findings

  • 50 RTX 3080 GPUs can achieve throughputs comparable to 4 H100 GPUs in their analysis, despite lower cost.
  • The system design includes DAG-based task decomposition, IR and execution planes, a broker with backup nodes, and hardware-aware scheduling to handle heterogeneity.
  • DHT-based decentralized communication supports scalable data storage and retrieval across nodes, enhancing fault tolerance and privacy considerations.
  • The analytic performance model combines computation time, data movement, and communication to estimate FP task latency and pipeline throughput.
  • A pipeline-aware scheduling approach balances workloads under GPU/CPU/DISK constraints to reduce bottlenecks and improve throughput.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.