OSDP: Optimal Sharded Data Parallel for Distributed Deep Learning

Youhe Jiang, Fangcheng Fu, Xupeng Miao, Xiaonan Nie, Bin Cui
9/27/2022
21 citations
cs.DC

Official code: Youhe-Jiang/IJCAI2023-OptimalShardedDataParallel (52 stars, Python, MIT, last commit 2023-05-31).

Abstract

Large-scale deep learning models contribute to significant performance improvements on varieties of downstream tasks. Current data and model parallelism approaches utilize model replication and partition techniques to support the distributed training of ultra-large models.

Show full abstract

However, directly deploying these systems often leads to sub-optimal training efficiency due to the complex model architectures and the strict device memory constraints. In this paper, we propose Optimal Sharded Data Parallel (OSDP), an automated parallel training system that combines the advantages from both data and model parallelism. Given the model description and the device information, OSDP makes trade-offs between the memory consumption and the hardware utilization, thus automatically generates the distributed computation graph and maximizes the overall system throughput. In addition, OSDP introduces operator splitting to further alleviate peak memory footprints during training with negligible overheads, which enables the trainability of larger models as well as the higher throughput. Extensive experimental results of OSDP on multiple different kinds of large-scale models demonstrate that the proposed strategy outperforms the state-of-the-art in multiple regards. Our code is available at https://github.com/Youhe-Jiang/OptimalShardedDataParallel.

View on arXivView PDF

Code Implementations(1)

MIT

[IJCAI2023] An automated parallel training system that combines the advantages from both data and model parallelism. If you have any interests, please visit/star/fork https://github.com/Youhe-Jiang/OptimalShardedDataParallel

524Python, ShellSep 27, 20223 years agoMIT
automatic-parallelizationdeep-learningdistributed-system

Similar Papers

Cite this paper

@article{jiang2022osdp,
  title  = {OSDP: Optimal Sharded Data Parallel for Distributed Deep Learning},
  author = {Youhe Jiang and Fangcheng Fu and Xupeng Miao and Xiaonan Nie and Bin Cui},
  year   = {2022},
  eprint = {2209.13258},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.13258}
}

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/2209.13258.svg)](https://codeofpaper.com/paper/2209.13258)

Discussion