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.34s to 0.59s across production and benchmark runs, cutting stalls 12.13x to 161.50x compared to DCP (61.37s on 128 GPUs) and MCP (4.70s on 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.05x and loading by 3.88x on average across 32 to 4,800 GPUs, lifting Effective Training Time Ratio (ETTR) by 1.16x to 1.29x.
  • Zero-communication irregular tensor saves: Decomposing flattened ZeRO-2 and FSDP shards into regular index tuples cuts irregular-tensor blocking from 5.84s (DCP all-gather) to 0.19s (30.50x faster on 64 GPUs).
  • Production scale at 8,960 GPUs: Training a 405B text transformer in Megatron-LM (TP=8, DP=70, PP=16) sustains a 0.59s stall, 51.06s end-to-end save, and 129.49s load to HDFS.
Checkpoint blocking, save, and reshard latency against DCP and MCP (seconds, lower is better)
vDiT 4B (FSDP ZeRO-2, 128 A100 GPUs, reshard to 64)GPU states, HDFS storage
Stall time (TBlock): PyTorch DCP vs. ByteCheckpoint61.37s vs. 0.38s (161.50x)
End-to-end save (TSave): PyTorch DCP vs. ByteCheckpoint236.34s vs. 23.74s (9.96x)
Load-time reshard (TReshard): PyTorch DCP vs. ByteCheckpoint91.01s vs. 13.64s (6.67x)
tGPT 70B (Megatron-LM, 4,800 H800 GPUs, reshard to 2,400)GPU states (full state includes dataloader)
Stall time (TBlock): MCP vs. ByteCheckpoint4.70s vs. 0.36s (13.06x; 0.43s full)
End-to-end save (TSave): MCP vs. ByteCheckpoint76.21s vs. 8.59s (8.87x; 25.04s full)
Load-time reshard (TReshard): MCP vs. ByteCheckpoint64.62s vs. 54.31s (1.19x; 115.95s full)

Source: Wan et al. (2025), Section 6.1, Table 4. Gray bars show baselines (DCP or MCP); green bars show ByteCheckpoint GPU-state measurements.

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-gather collectives during saving, stalling training as scale grows. ByteCheckpoint instead decomposes each irregular slice into multiple regular ShardMeta rectangles 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 replaces torch.distributed NCCL barriers that otherwise cost around 20s or hit CUDA OOM near 10,000 GPUs.
Three mechanisms that remove checkpoint stalls and OOMs at cluster scale
Irregular decomposition

Splits flattened ZeRO optimizer slices into regular ShardMeta rectangles at save time, cutting 64-GPU FSDP processing from 5.84s to 0.19s.

DP load balancing + cache

Worst-Fit write sharding and All2All load sharing avoid DP group 0 stragglers; cached plans eliminate repeated 62s planning overhead.

Tree gRPC + HDFS pool

Replaces 20s NCCL barriers with zero-VRAM gRPC trees and concurrent chunked HDFS writes, pushing single-file reads to 2-3 GB/s and writes to 3 GB/s.

Source: Wan et al. (2025), Sections 3.2, 4, 5, and Appendix B.

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.