arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2301.08695cs.DCcs.LG
收藏

Baechi:机器学习图的快速设备放置

Baechi: Fast Device Placement of Machine Learning Graphs

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Princeton University(普林斯顿大学)

Beomyeol Jeon, Linda Cai, Chirag Shetty, Pallavi Srivastava, Jintao Jiang, Xiaolan Ke, Yitao Meng, Cong Xie, Indranil Gupta

摘要:

当设备内存有限或模型很大时,机器学习图(或模型)可能很难或不可能进行训练。为了在设备之间分割模型,基于学习的方法仍然很受欢迎。虽然这些导致在数据上快速训练的模型放置(即,低步骤时间),基于学习的模型并行是耗时的,花费许多小时或数天来创建操作者在设备上的放置计划。我们提出了Baechi系统,第一个采用算法方法来解决在内存受限的设备的小集群上运行机器学习训练图的放置问题。我们将Baechi的实现集成到两个流行的开源学习框架中:TensorFlow和PyTorch。我们使用GPU的实验结果表明:(i)Baechi生成布局计划的速度比最先进的基于学习的方法快654 X -206 K X,(ii)Baechi布局模型的步骤(训练)时间与PyTorch中的专家布局相当,仅比TensorFlow中的专家布局差6.2%。我们从数学上证明,我们的两个算法是在一个恒定的因素的最佳。我们的工作表明,与基于学习的方法相比,算法方法在适应机器学习系统方面可能面临不同的挑战,但它们也提供了经过验证的边界和显着的性能优势。

英文摘要:

Machine Learning graphs (or models) can be challenging or impossible to train when either devices have limited memory, or models are large. To split the model across devices, learning-based approaches are still popular. While these result in model placements that train fast on data (i.e., low step times), learning-based model-parallelism is time-consuming, taking many hours or days to create a placement plan of operators on devices. We present the Baechi system, the first to adopt an algorithmic approach to the placement problem for running machine learning training graphs on small clusters of memory-constrained devices. We integrate our implementation of Baechi into two popular open-source learning frameworks: TensorFlow and PyTorch. Our experimental results using GPUs show that: (i) Baechi generates placement plans 654 X - 206K X faster than state-of-the-art learning-based approaches, and (ii) Baechi-placed model's step (training) time is comparable to expert placements in PyTorch, and only up to 6.2% worse than expert placements in TensorFlow. We prove mathematically that our two algorithms are within a constant factor of the optimal. Our work shows that compared to learning-based approaches, algorithmic approaches can face different challenges for adaptation to Machine learning systems, but also they offer proven bounds, and significant performance benefits.

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

↑