arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.14097cs.DC
收藏

Parcae:基于可抢占实例的主动式、Liveput优化DNN训练

Parcae: Proactive, Liveput-Optimized DNN Training on Preemptible Instances

Jiangfei Duan, Ziang Song, Xupeng Miao, Xiaoli Xi, Dahua Lin, Harry Xu, Minjia Zhang, Zhihao Jia

AI总结:

提出Parcae系统,通过主动调整并行化策略并优化liveput指标,在可抢占云实例上实现低成本、快速且可扩展的DNN训练,性能比现有系统提升最多10倍。

摘要:

深度神经网络(DNN)正变得日益庞大且训练成本高昂。本文旨在通过利用现代云中的可抢占实例来降低DNN训练成本,这些实例在空闲时可以以低得多的价格分配,但可能随时被云提供商抢占。先前支持在可抢占实例上进行DNN训练的工作采用被动方法,在抢占和分配发生后才进行处理,这只能实现有限的性能和可扩展性。我们提出了Parcae系统,通过主动调整DNN训练任务的并行化策略,在实例抢占和分配真正发生前适应预测的资源变化,从而在可抢占实例上实现低成本、快速且可扩展的DNN训练,这显著降低了处理这些事件的成本。Parcae优化了liveput这一新指标,该指标衡量在各种可能的抢占场景下DNN任务的预期训练吞吐量。与现有的被动式、吞吐量优化系统相比,Parcae的主动式、liveput优化解决方案同时考虑了任务的吞吐量及其在抢占下的鲁棒性。为优化liveput,Parcae支持轻量级实例迁移,并使用可用性预测器预测未来的抢占。然后使用liveput优化器发现预测抢占下并行化DNN训练的最优策略。我们在多种DNN和抢占轨迹上评估Parcae,结果表明Parcae比现有的spot实例DNN训练系统性能高出最多10倍。更重要的是,Parcae在频繁抢占下训练大型DNN时实现了接近最优的性能,而现有方法在这种情况下无法取得任何进展。

英文摘要:

Deep neural networks (DNNs) are becoming progressively large and costly to train. This paper aims to reduce DNN training costs by leveraging preemptible instances on modern clouds, which can be allocated at a much lower price when idle but may be preempted by the cloud provider at any time. Prior work that supports DNN training on preemptive instances employs a reactive approach to handling instance preemptions and allocations after their occurrence, which only achieves limited performance and scalability. We present Parcae, a system that enables cheap, fast, and scalable DNN training on preemptible instances by proactively adjusting the parallelization strategy of a DNN training job to adapt to predicted resource changes before instance preemptions and allocations really happen, which significantly reduces the cost of handling these events. Parcae optimizes liveput, a novel metric that measures the expected training throughput of a DNN job under various possible preemption scenarios. Compared to existing reactive, throughput-optimized systems, Parcae's proactive, live-optimized solution considers both the throughput of a job and its robustness under preemptions. To optimize liveput, Parcae supports lightweight instance migration and uses an availability predictor to forecast future preemptions. It then uses a liveput optimizer to discover an optimal strategy to parallelize DNN training under predicted preemptions. We evaluate Parcae on a variety of DNNs and preemption traces and show that Parcae outperforms existing spot-instance DNN training systems by up to 10$\times$. More importantly, Parcae achieves near-optimal performance for training large DNNs under frequent preemptions, in which case existing approaches cannot make any progress.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑