Fault-Tolerant Hybrid-Parallel Training at Scale with Reliable and Efficient In-memory Checkpointing

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wang, Yuxin, Kang, Xueze, Shi, Shaohuai, He, Xin, Tang, Zhenheng, Pan, Xinglin, Zheng, Yang, Wu, Xiaoyu, Zhou, Amelie Chi, He, Bingsheng, Chu, Xiaowen
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910570356146176
author Wang, Yuxin
Kang, Xueze
Shi, Shaohuai
He, Xin
Tang, Zhenheng
Pan, Xinglin
Zheng, Yang
Wu, Xiaoyu
Zhou, Amelie Chi
He, Bingsheng
Chu, Xiaowen
author_facet Wang, Yuxin
Kang, Xueze
Shi, Shaohuai
He, Xin
Tang, Zhenheng
Pan, Xinglin
Zheng, Yang
Wu, Xiaoyu
Zhou, Amelie Chi
He, Bingsheng
Chu, Xiaowen
contents To efficiently scale large model (LM) training, researchers transition from data parallelism (DP) to hybrid parallelism (HP) on GPU clusters, which frequently experience hardware and software failures. Existing works introduce in-memory checkpointing optimizations that snapshot parameters to device memory for rapid failure recovery. However, these methods introduce severe resource competition between checkpointing and training, which can work under DP but can hardly scale under resource-intensive HP. To ensure low checkpointing overhead for hybrid-parallel training, this paper introduces a distributed in-memory checkpointing system with near-zero in-memory saving overhead. It strives from two aspects to mitigate the on-host resource competition caused by in-memory checkpointing: (1) It introduces Hierarchical Asynchronous Snapshotting Coordination in the checkpoint saving stage. This approach uses three-level asynchronous on-device scheduling to enhance parallelism between snapshotting and training, thereby minimizing snapshotting overhead. (2) It proposes Hybrid In-memory Checkpoint Protection to enhance checkpoint completeness during hardware failures. Unlike methods that require inter-node communications, which may block training under HP, it creates intra-node redundancy with efficient resource utilization, protecting training against hardware failures with minimal overhead. With these methods, this work enables fast restart for failed HP training with Distributed In-memory Checkpoint Loading, bypassing inefficiencies in NFS reads. In our evaluation, we achieve zero in-memory checkpoint saving overhead on Frontier while training Llama-2-34B on 256 MI250X devices (512 GPUs).
format Preprint
id arxiv_https___arxiv_org_abs_2310_12670
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Fault-Tolerant Hybrid-Parallel Training at Scale with Reliable and Efficient In-memory Checkpointing
Wang, Yuxin
Kang, Xueze
Shi, Shaohuai
He, Xin
Tang, Zhenheng
Pan, Xinglin
Zheng, Yang
Wu, Xiaoyu
Zhou, Amelie Chi
He, Bingsheng
Chu, Xiaowen
Distributed, Parallel, and Cluster Computing
Performance
To efficiently scale large model (LM) training, researchers transition from data parallelism (DP) to hybrid parallelism (HP) on GPU clusters, which frequently experience hardware and software failures. Existing works introduce in-memory checkpointing optimizations that snapshot parameters to device memory for rapid failure recovery. However, these methods introduce severe resource competition between checkpointing and training, which can work under DP but can hardly scale under resource-intensive HP. To ensure low checkpointing overhead for hybrid-parallel training, this paper introduces a distributed in-memory checkpointing system with near-zero in-memory saving overhead. It strives from two aspects to mitigate the on-host resource competition caused by in-memory checkpointing: (1) It introduces Hierarchical Asynchronous Snapshotting Coordination in the checkpoint saving stage. This approach uses three-level asynchronous on-device scheduling to enhance parallelism between snapshotting and training, thereby minimizing snapshotting overhead. (2) It proposes Hybrid In-memory Checkpoint Protection to enhance checkpoint completeness during hardware failures. Unlike methods that require inter-node communications, which may block training under HP, it creates intra-node redundancy with efficient resource utilization, protecting training against hardware failures with minimal overhead. With these methods, this work enables fast restart for failed HP training with Distributed In-memory Checkpoint Loading, bypassing inefficiencies in NFS reads. In our evaluation, we achieve zero in-memory checkpoint saving overhead on Frontier while training Llama-2-34B on 256 MI250X devices (512 GPUs).
title Fault-Tolerant Hybrid-Parallel Training at Scale with Reliable and Efficient In-memory Checkpointing
topic Distributed, Parallel, and Cluster Computing
Performance
url https://arxiv.org/abs/2310.12670