PipeFill:在流水线并行大语言模型训练的气泡时段利用GPU
PipeFill: Using GPUs During Bubbles in Pipeline-parallel LLM Training
AI总结:
针对流水线并行大语言模型训练中流水线气泡导致GPU利用率低的问题,提出PipeFill方法,通过匹配气泡时长与内存、引入气泡指令等方式用待处理任务填补气泡,可大幅提升GPU利用率且对主训练任务影响极小。
摘要:
训练具有数十亿参数的深度神经网络(DNN)通常涉及流水线并行(PP)执行。遗憾的是,流水线并行模型训练的GPU利用效率较低,在大规模场景下尤其如此,这是由流水线气泡导致的GPU空闲时间造成的——这类空闲时间通常占训练任务GPU分配量的15%-30%,甚至可能超过60%。为提升流水线并行模型训练的GPU利用率,本文提出了PipeFill,该方法通过执行其他待处理任务来填补流水线气泡。借助气泡时段的GPU时间,PipeFill降低了大模型训练扩容带来的GPU利用率损耗。为在填充任务与主训练任务之间进行上下文切换时,将对主任务的开销降至最低,并最大化填充任务的效率,PipeFill会根据实测的气泡时长与GPU内存可用性精准匹配填充任务的工作量,引入显式的流水线气泡指令,并统筹安排填充任务在流水线气泡中的放置与执行。实验表明,在大规模大语言模型训练中,PipeFill可将GPU整体利用率提升最高63%,且训练任务的减速不到2%;即便在小规模大语言模型训练中,利用率也能提升5%-15%。对于使用8K块GPU的大规模大语言模型训练,63%的利用率提升相当于额外完成了价值最高2.6K块GPU的工作量。
英文摘要:
Training Deep Neural Networks (DNNs) with billions of parameters generally involves pipeline-parallel (PP) execution. Unfortunately, PP model training can use GPUs inefficiently, especially at large scale, due to idle GPU time caused by pipeline bubbles, which are often 15-30% and can exceed 60% of the training job's GPU allocation. To improve the GPU utilization of PP model training, this paper describes PipeFill, which fills pipeline bubbles with execution of other pending jobs. By leveraging bubble GPU time, PipeFill reduces the GPU utilization sacrifice associated with scaling-up of large-model training. To context-switch between fill jobs and the main training job with minimal overhead to the main job, and maximize fill job efficiency, PipeFill carefully fits fill job work to measured bubble durations and GPU memory availability, introduces explicit pipeline-bubble instructions, and orchestrates placement and execution of fill jobs in pipeline bubbles. Experiments show that PipeFill can increase overall utilization by up to 63% for GPUs used in large-scale LLM training, with <2% slowdown of the training job, and 5-15% even for low-scale LLM training. For large-scale LLM training on 8K GPUs, the 63% increase translates to up to 2.6K additional GPUs worth of work completed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。