ByteCheckpoint cuts distributed training checkpoint stalls by an average of 54.20x (up to 161.50x) against PyTorch DCP and Megatron Distributed Checkpoint (MCP) by storing tensor and dataloader shards in a parallelism-agnostic format that reshards automatically at load time. In NSDI 2025, Borui Wan, Mingji Han, and colleagues from the University of Hong Kong and ByteDance show how separating framework planners from an asynchronous I/O engine eliminates offline conversion scripts and scales to a 405B-parameter model across 8,960 H800 GPUs.
Over a six-month trace on ByteDance’s production AI platform, jobs triggered 1,870 resharding operations for pre-training resumption, 13,080 for transitions to post-training, and 19,844 for evaluation tasks. Prior offline resharding scripts blocked pipelines for 593.21s to 1,870.38s per job and ballooned to 3,193 lines of Python to track every framework and tensor layout.
- Sub-second checkpoint stalls: Blocking time drops to
0.34sto0.59sacross production and benchmark runs, cutting stalls12.13xto161.50xcompared to DCP (61.37son 128 GPUs) and MCP (4.70son 4,800 GPUs). - Up to 9.96x faster saves and 8.80x faster loads: Asynchronous pipelining and load balancing speed up end-to-end saving by
6.05xand loading by3.88xon average across 32 to 4,800 GPUs, lifting Effective Training Time Ratio (ETTR) by1.16xto1.29x. - Zero-communication irregular tensor saves: Decomposing flattened ZeRO-2 and FSDP shards into regular index tuples cuts irregular-tensor blocking from
5.84s(DCPall-gather) to0.19s(30.50xfaster on 64 GPUs). - Production scale at 8,960 GPUs: Training a 405B text transformer in Megatron-LM (
TP=8, DP=70, PP=16) sustains a0.59sstall,51.06send-to-end save, and129.49sload to HDFS.
How It Works
ByteCheckpoint separates framework-specific Planners (for Megatron-LM, PyTorch FSDP, DDP, and veScale) from a shared Execution Engine and Storage I/O layer (memory, local disk, HDFS, and NAS). Rather than storing tensors tied to a worker rank, each shard is indexed in a single global metadata file by its fully qualified name, n-dimensional offsets, and lengths (ShardMeta), plus runtime attributes (BasicMeta) and file byte ranges (ByteMeta). Dataloader checkpoints split replicated configuration (saved once by rank 0) from per-worker token buffers and dataset offsets, allowing exact resume or token-buffer split/merge when data-parallel degree changes.
Two design choices prevent bottlenecks that break PyTorch DCP and Megatron MCP at large scale:
- Irregular tensor decomposition: ZeRO-2 and FSDP flatten and concatenate optimizer states across data-parallel ranks into 1D slices that do not align with rectangular tensor shapes. DCP resolves this by running synchronous
all-gathercollectives during saving, stalling training as scale grows. ByteCheckpoint instead decomposes each irregular slice into multiple regularShardMetarectangles with zero inter-GPU communication during saves. - Full-stack I/O and tree coordination: A Worst-Fit planner distributes replicated model-state writes evenly across data-parallel groups instead of overloading group 0, while loads read each shard once and transfer replicas over NVLink/InfiniBand via
All2All. Plan and metadata caching turns a 62s planning step (measured on 405B at 8,960 GPUs) into a one-time session cost, pinned-memory Ping-Pong buffers overlap D2H copy with serialization and HDFS uploads, and a tree-based gRPC barrier replacestorch.distributedNCCL barriers that otherwise cost around 20s or hit CUDA OOM near 10,000 GPUs.
Key Findings
Evaluated on vDiT 4B (FSDP ZeRO-2 on A100 GPUs) and tGPT 70B (Megatron-LM on H800 GPUs, 2,400 and 4,800 GPUs) checkpointing every 100 steps to HDFS, ByteCheckpoint reduces checkpoint stalls by 12.13x to 161.50x (54.20x average). Gains widen with cluster size: on tGPT 70B, end-to-end save speedup over MCP rises from 2.21x at 2,400 GPUs (28.97s to 13.11s) to 8.87x at 4,800 GPUs (76.21s to 8.59s) because Worst-Fit deduplication spreads model writes across more data-parallel ranks.
Ablations on tGPT 13B and 30B confirm each layer’s contribution: asynchronous saving, Worst-Fit balancing, and plan caching cut average save time from 48.3s to 19.27s, while overlapping HDFS reads with All2All transfers speeds loading by 1.53x and 1.58x. On HDFS storage engineering, rewriting components in C++ with stateless NNProxy metadata caching and parallel chunk concatenation lifted single-file reads from 400 MB/s to 2-3 GB/s and trimmed maximum single-file metadata latency from 3s to 150ms. Loss curves across tensor, pipeline, data, and hybrid resharding match unresharded runs, and identical-topology restarts on a 175B production job across 2,080 H800 GPUs achieve bitwise-identical loss and sample lengths.
Caveats and Builder Takeaway
Two bottlenecks remain visible in the paper’s own numbers. First, dataloader state is expensive to reshard: baselines DCP and MCP ignore CPU dataloader state, whereas ByteCheckpoint’s full-state resharding on tGPT 70B (2,400 to 4,800 GPUs) jumps from 62.10s (GPU states only) to 401.21s, dragging full-state ETTR down to 28.80% (below MCP’s 34.61% GPU-only ETTR). In text-to-video training, cached token buffers reach 20 GB and accounted for 73.16% of save time on a 7B vision transformer before concurrent upload pooling was added.
Second, the headline 2-3 GB/s I/O rates depend on ByteDance’s custom C++ HDFS stack, NNProxy, and two-tier SSD/HDD cool-down, which open-source teams running stock object storage will need to approximate with high-concurrency multipart I/O. Even with that caveat, for teams running multi-stage pre-training, post-training, or elastic recovery alongside systems like ByteRobust and 405B-scale clusters, decoupling checkpoint metadata from worker ranks is the essential step that eliminates brittle offline resharding scripts.


