OneFlow: Redesign the Distributed Deep Learning Framework from Scratch

Jinhui Yuan, Xinqi Li, Cheng Cheng, Juncheng Liu, Ran Guo +7 more
10/28/2021
cs.DCcs.AIcs.LG

Official code: Oneflow-Inc/oneflow (9,437 stars, C++, Apache-2.0, last commit 2025-12-04).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

OneFlow is a deep learning framework designed to be user-friendly, scalable and efficient.

9,4371,013C++, PythonFeb 11, 201712 months agoApache-2.0
cudadeep-learningdeep-neural-networksdistributedmachine-learning+2 more

Similar Papers

Cite this paper

@article{yuan2021oneflow,
  title  = {OneFlow: Redesign the Distributed Deep Learning Framework from Scratch},
  author = {Jinhui Yuan and Xinqi Li and Cheng Cheng and Juncheng Liu and Ran Guo and Shenghang Cai and Chi Yao and Fei Yang and Xiaodong Yi and Chuan Wu and Haoran Zhang and Jie Zhao},
  year   = {2021},
  eprint = {2110.15032},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.15032}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.15032.svg)](https://codeofpaper.com/paper/2110.15032)

Discussion