OneFlow:从头开始重新设计分布式深度学习框架
OneFlow: Redesign the Distributed Deep Learning Framework from Scratch
摘要:
TensorFlow和PyTorch等深度学习框架为在单个设备上表达和训练深度神经网络(DNN)模型或使用数据并行提供了高效的接口。然而,它们在分布式设备上训练新兴的大型模型时可能不够灵活或有效,这需要比数据并行更复杂的并行性。已经开发了插件或包装器来加强这些框架的模型或流水线并行,但它们使分布式深度学习的使用和实现复杂化。针对一个简单的,整洁的重新设计的分布式深度学习框架的各种并行范例,我们提出了OneFlow,一个新的分布式训练框架的基础上SBP(分裂,广播和部分值)抽象和演员模型。SBP比现有框架更容易编程数据并行性和模型并行性,并且Actor模型提供了一种简洁的运行时机制来管理分布式深度学习中资源约束、数据移动和计算所带来的复杂依赖关系。我们通过案例研究和广泛的实验证明了OneFlow在训练各种大型DNN模型方面的普遍适用性和效率。结果表明,OneFlow的性能优于许多基于最先进框架构建的知名定制库。OneFlow的代码可在以下网址获得:https://github.com/Oneflow-Inc/oneflow。
英文摘要:
Deep learning frameworks such as TensorFlow and PyTorch provide a productive interface for expressing and training a deep neural network (DNN) model on a single device or using data parallelism. Still, they may not be flexible or efficient enough in training emerging large models on distributed devices, which require more sophisticated parallelism beyond data parallelism. Plugins or wrappers have been developed to strengthen these frameworks for model or pipeline parallelism, but they complicate the usage and implementation of distributed deep learning. Aiming at a simple, neat redesign of distributed deep learning frameworks for various parallelism paradigms, we present OneFlow, a novel distributed training framework based on an SBP (split, broadcast and partial-value) abstraction and the actor model. SBP enables much easier programming of data parallelism and model parallelism than existing frameworks, and the actor model provides a succinct runtime mechanism to manage the complex dependencies imposed by resource constraints, data movement and computation in distributed deep learning. We demonstrate the general applicability and efficiency of OneFlow for training various large DNN models with case studies and extensive experiments. The results show that OneFlow outperforms many well-known customized libraries built on top of the state-of-the-art frameworks. The code of OneFlow is available at: https://github.com/Oneflow-Inc/oneflow.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。