English

End-to-end Adaptive Distributed Training on PaddlePaddle

Distributed, Parallel, and Cluster Computing 2021-12-07 v1 Artificial Intelligence Machine Learning

Abstract

Distributed training has become a pervasive and effective approach for training a large neural network (NN) model with processing massive data. However, it is very challenging to satisfy requirements from various NN models, diverse computing resources, and their dynamic changes during a training job. In this study, we design our distributed training framework in a systematic end-to-end view to provide the built-in adaptive ability for different scenarios, especially for industrial applications and production environments, by fully considering resource allocation, model partition, task placement, and distributed execution. Based on the unified distributed graph and the unified cluster object, our adaptive framework is equipped with a global cost model and a global planner, which can enable arbitrary parallelism, resource-aware placement, multi-mode execution, fault-tolerant, and elastic distributed training. The experiments demonstrate that our framework can satisfy various requirements from the diversity of applications and the heterogeneity of resources with highly competitive performance. The ERNIE language model with 260 billion parameters is efficiently trained on thousands of AI processors with 91.7% weak scalability. The throughput of the model from the recommender system by employing the heterogeneous pipeline asynchronous execution can be increased up to 2.1 times and 3.3 times that of the GPU-only and CPU-only training respectively. Moreover, the fault-tolerant and elastic distributed training have been successfully applied to the online industrial applications, which give a reduction of 34.49% in the number of failed long-term training jobs and an increase of 33.91% for the global scheduling efficiency in the production environment.

Keywords

Cite

@article{arxiv.2112.02752,
  title  = {End-to-end Adaptive Distributed Training on PaddlePaddle},
  author = {Yulong Ao and Zhihua Wu and Dianhai Yu and Weibao Gong and Zhiqing Kui and Minxu Zhang and Zilingfeng Ye and Liang Shen and Yanjun Ma and Tian Wu and Haifeng Wang and Wei Zeng and Chao Yang},
  journal= {arXiv preprint arXiv:2112.02752},
  year   = {2021}
}

Comments

16 pages, 10 figures, 4 tables

R2 v1 2026-06-24T08:05:14.144Z