ByteCheckpoint: A Unified Checkpointing System for Large Foundation Model Development

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wan, Borui, Han, Mingji, Sheng, Yiyao, Peng, Yanghua, Lin, Haibin, Zhang, Mofan, Lai, Zhichao, Yu, Menghan, Zhang, Junda, Song, Zuquan, Liu, Xin, Wu, Chuan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910901142028288
author Wan, Borui
Han, Mingji
Sheng, Yiyao
Peng, Yanghua
Lin, Haibin
Zhang, Mofan
Lai, Zhichao
Yu, Menghan
Zhang, Junda
Song, Zuquan
Liu, Xin
Wu, Chuan
author_facet Wan, Borui
Han, Mingji
Sheng, Yiyao
Peng, Yanghua
Lin, Haibin
Zhang, Mofan
Lai, Zhichao
Yu, Menghan
Zhang, Junda
Song, Zuquan
Liu, Xin
Wu, Chuan
contents Checkpointing to preserve training states is crucial during the development of Large Foundation Models (LFMs), for training resumption upon various failures or changes in GPU resources and parallelism configurations. In addition, saved checkpoints are dispatched to evaluation tasks or transferred across different training stages (e.g., from pre-training to post-training). All these scenarios require resharding distributed checkpoints from one parallelism to another. In production environments, different LFMs are trained with various frameworks and storage backends, depending on model sizes and training scales. A high-performance checkpointing system is needed to enable efficient checkpoint management at scale throughout the lifecycle of LFM development. We introduce ByteCheckpoint, an industrial-grade checkpointing system for large-scale LFM training. ByteCheckpoint features: a parallelism-agnostic checkpoint representation that enables efficient load-time checkpoint resharding; a generic checkpoint saving/loading workflow to accommodate multiple training frameworks and support different storage backends; full-stack optimizations to ensure high I/O efficiency and scalability; a suite of monitoring tools to streamline large-scale performance analysis and bottleneck detection. Compared to existing open-source checkpointing systems [52, 58], ByteCheckpoint significantly reduces runtime checkpoint stalls, achieving an average reduction of 54.20x. For saving and loading times, ByteCheckpoint achieves improvements of up to 9.96x and 8.80x, respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2407_20143
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ByteCheckpoint: A Unified Checkpointing System for Large Foundation Model Development
Wan, Borui
Han, Mingji
Sheng, Yiyao
Peng, Yanghua
Lin, Haibin
Zhang, Mofan
Lai, Zhichao
Yu, Menghan
Zhang, Junda
Song, Zuquan
Liu, Xin
Wu, Chuan
Artificial Intelligence
Checkpointing to preserve training states is crucial during the development of Large Foundation Models (LFMs), for training resumption upon various failures or changes in GPU resources and parallelism configurations. In addition, saved checkpoints are dispatched to evaluation tasks or transferred across different training stages (e.g., from pre-training to post-training). All these scenarios require resharding distributed checkpoints from one parallelism to another. In production environments, different LFMs are trained with various frameworks and storage backends, depending on model sizes and training scales. A high-performance checkpointing system is needed to enable efficient checkpoint management at scale throughout the lifecycle of LFM development. We introduce ByteCheckpoint, an industrial-grade checkpointing system for large-scale LFM training. ByteCheckpoint features: a parallelism-agnostic checkpoint representation that enables efficient load-time checkpoint resharding; a generic checkpoint saving/loading workflow to accommodate multiple training frameworks and support different storage backends; full-stack optimizations to ensure high I/O efficiency and scalability; a suite of monitoring tools to streamline large-scale performance analysis and bottleneck detection. Compared to existing open-source checkpointing systems [52, 58], ByteCheckpoint significantly reduces runtime checkpoint stalls, achieving an average reduction of 54.20x. For saving and loading times, ByteCheckpoint achieves improvements of up to 9.96x and 8.80x, respectively.
title ByteCheckpoint: A Unified Checkpointing System for Large Foundation Model Development
topic Artificial Intelligence
url https://arxiv.org/abs/2407.20143