arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.04025cs.DCcs.AI
收藏

Moirai:面向异构设备上分布式推理的最优放置

Moirai: Towards Optimal Placement for Distributed Inference on Heterogeneous Devices

Zhejiang Lab(之江实验室);Fudan University(复旦大学)

Beibei Zhang, Hongwei Zhu, Feng Gao, Zhihui Yang, Sean Xiaoyang Wang

AI总结:

Moirai通过运行时算子融合粗化计算图并泛化放置算法,在异构设备上实现分布式推理的最优放置,较现有方法延迟降低最高4.28倍。

摘要:

深度神经网络(DNN)规模的不断增大,激发了在多设备上托管和服务DNN模型的研究兴趣。已有许多研究将DNN模型划分到多个设备上,提供设备放置解决方案。然而,文献中出现的方法要么因指数级搜索空间而导致放置性能不佳,要么因采用有限启发式缩减搜索空间而错失最优放置。此外,这些方法在粗化计算图时忽略了运行时算子间优化,从而降低了端到端推理性能。本文提出Moirai,它更好地利用模型中的运行时算子间融合来生成粗化计算图,在缩减搜索空间的同时保留推理后端提供的算子间优化。Moirai还从多个角度泛化设备放置算法,考虑推理约束和设备异构性。使用11个大型DNN的广泛实验评估表明,Moirai在端到端推理延迟降低方面优于最先进的同类方法(即Placeto、m-SCT和GETF),最高可达4.28倍。Moirai代码已在https://github.com/moirai-placement/moirai匿名发布。

英文摘要:

The escalating size of Deep Neural Networks (DNNs) has spurred a growing research interest in hosting and serving DNN models across multiple devices. A number of studies have been reported to partition a DNN model across devices, providing device placement solutions. The methods appeared in the literature, however, either suffer from poor placement performance due to the exponential search space or miss an optimal placement as a consequence of the reduced search space with limited heuristics. Moreover, these methods have ignored the runtime inter-operator optimization of a computation graph when coarsening the graph, which degrades the end-to-end inference performance. This paper presents Moirai that better exploits runtime inter-operator fusion in a model to render a coarsened computation graph, reducing the search space while maintaining the inter-operator optimization provided by inference backends. Moirai also generalizes the device placement algorithm from multiple perspectives by considering inference constraints and device heterogeneity.Extensive experimental evaluation with 11 large DNNs demonstrates that Moirai outperforms the state-of-the-art counterparts, i.e., Placeto, m-SCT, and GETF, up to 4.28$\times$ in reduction of the end-to-end inference latency. Moirai code is anonymously released at \url{https://github.com/moirai-placement/moirai}.

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

↑