FreeRide: Harvesting Bubbles in Pipeline Parallelism

Jiashu Zhang, Zihan Pan, Molly, Xu, Khuzaima Daudjee +1 more
9/11/2024
cs.DCcs.AI

No confident code implementation found for this paper.

Abstract

The occurrence of bubbles in pipeline parallelism is an inherent limitation that can account for more than 40% of the large language model (LLM) training time and is one of the main reasons for the underutilization of GPU resources in LLM training. Harvesting these bubbles for GPU side tasks can increase resource utilization and reduce training costs but comes with challenges. First, because bubbles are discontinuous with various shapes, programming side tasks becomes difficult while requiring excessive engineering effort. Second, a side task can compete with pipeline training for GPU resources and incur significant overhead. To address these challenges, we propose FreeRide, a system designed to harvest bubbles in pipeline parallelism for side tasks. FreeRide provides programmers with interfaces to implement side tasks easily, manages bubbles and side tasks during pipeline training, and controls access to GPU resources by side tasks to reduce overhead. We demonstrate that FreeRide achieves 7.8% average cost savings with a negligible overhead of about 1% in training LLMs while serving model training, graph analytics, and image processing side tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2024freeride,
  title  = {FreeRide: Harvesting Bubbles in Pipeline Parallelism},
  author = {Jiashu Zhang and Zihan Pan and Molly and Xu and Khuzaima Daudjee and Sihang Liu},
  year   = {2024},
  eprint = {2409.06941},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.06941v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.06941.svg)](https://codeofpaper.com/paper/2409.06941)

Discussion