arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.16423cs.LGcs.DCstat.ML
收藏

DNN图算子器件布局的有效算法

Efficient Algorithms for Device Placement of DNN Graph Operators

Microsoft Research(微软研究院);Amazon(亚马逊);Microsoft(微软)

Jakub Tarnawski, Amar Phanishayee, Nikhil R. Devanur, Divya Mahajan, Fanny Nina Paravecino

摘要:

现代机器学习工作负载使用具有复杂结构的大型模型,执行起来非常昂贵。执行复杂模型的设备正变得越来越异构,因为我们看到除了CPU之外,还提供了大量的特定于领域的加速器作为硬件加速器。这些趋势需要跨多个设备分配工作负载。最近的工作表明,模型并行可以获得显着的收益,即划分神经网络的计算图到多个设备。特别地,这种形式的并行性假设设备的流水线,其被馈送样本流并产生用于DNN的训练和推理的高吞吐量。然而,对于这样的设置(大型模型和多个异构设备),我们需要自动化算法和工具链来跨设备划分ML工作负载。在本文中,我们识别并隔离了DNN操作符的设备放置核心的结构化优化问题,用于推理和训练,特别是在现代流水线设置中。然后,我们提供了解决这个问题的最优算法。我们使用几个当代DNN计算图展示了我们方法的适用性和效率。

英文摘要:

Modern machine learning workloads use large models, with complex structures, that are very expensive to execute. The devices that execute complex models are becoming increasingly heterogeneous as we see a flourishing of domain-specific accelerators being offered as hardware accelerators in addition to CPUs. These trends necessitate distributing the workload across multiple devices. Recent work has shown that significant gains can be obtained with model parallelism, i.e, partitioning a neural network's computational graph onto multiple devices. In particular, this form of parallelism assumes a pipeline of devices, which is fed a stream of samples and yields high throughput for training and inference of DNNs. However, for such settings (large models and multiple heterogeneous devices), we require automated algorithms and toolchains that can partition the ML workload across devices. In this paper, we identify and isolate the structured optimization problem at the core of device placement of DNN operators, for both inference and training, especially in modern pipelined settings. We then provide algorithms that solve this problem to optimality. We demonstrate the applicability and efficiency of our approaches using several contemporary DNN computation graphs.

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

↑