FreeRide:收集流水线并行中的气泡
FreeRide: Harvesting Bubbles in Pipeline Parallelism
AI总结:
FreeRide系统通过提供编程接口和资源管理机制,收集流水线并行中的气泡执行GPU侧任务,在仅约1%开销下实现7.8%的平均训练成本节省。
摘要:
流水线并行中气泡的出现是一种固有限制,可能占大语言模型(LLM)训练时间的40%以上,也是LLM训练中GPU资源利用不足的主要原因之一。收集这些气泡用于GPU侧任务可以提高资源利用率并降低训练成本,但也面临挑战。首先,由于气泡不连续且形状各异,编写侧任务变得困难,同时需要过多的工程投入。其次,侧任务可能与流水线训练竞争GPU资源,并产生显著开销。为应对这些挑战,我们提出了FreeRide,一个旨在收集流水线并行中的气泡用于侧任务的系统。FreeRide为程序员提供接口以便轻松实现侧任务,在流水线训练过程中管理气泡和侧任务,并控制侧任务对GPU资源的访问以减少开销。我们证明,FreeRide在训练LLM时实现了7.8%的平均成本节省,开销仅约1%,同时服务于模型训练、图分析和图像处理侧任务。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。