﻿# PyTorch async checkpoints: training pauses, staging and completed saves

Read PyTorch asynchronous checkpointing by its critical path: historical training downtime, host snapshot buffers, separate completion futures and independent restore checks.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/pytorch-async-checkpoint-staging-training-stall-completion/
Language: en

Asynchronous checkpointing changes when training waits for a save. It does not remove the checkpoint's bytes or make the storage system irrelevant. The PyTorch case is useful precisely because the visible pause and background completion are different events. A measurement that collapses them into one timer can make a busy storage system look faster than it became.

## Read the historical result as training downtime

The [PyTorch announcement](https://pytorch.org/blog/reducing-checkpointing-times/), published in June 2024, reports a 7B example whose training downtime falls from 148.8 to 6.3 seconds. GPU-to-CPU copying remains on the visible path; subsequent persistence overlaps training. The article explicitly distinguishes that improvement from reducing serialization time. It also describes a separate checkpoint process group to avoid conflicting collective operations.

Those are reported results of that implementation. They are not a measurement of a current installation or a promise for an arbitrary filesystem. The historical nightly-build instructions should remain historical rather than silently becoming current installation guidance.

## Keep staging completion separate from save completion

The reviewed [versioned DCP reference](https://docs.pytorch.org/docs/2.15/distributed.checkpoint.html) describes an AsyncSaveResponse with staging_completion and upload_completion futures: a completed local snapshot and a completed save are separate boundaries. Its API also warns that saved state dictionaries have no cross-version backwards-compatibility guarantee.

A proposed experiment should record both boundaries instead of using the first as proof of recoverability. Record the exact PyTorch revision and writer because a method name alone does not establish identical behavior across releases. A save-completion signal also needs an explicit interpretation from the selected storage backend; it does not by itself describe an independent replica or disaster-recovery policy.

## Budget host memory before increasing overlap

The official [asynchronous checkpoint recipe](https://docs.pytorch.org/tutorials/recipes/distributed_async_checkpoint_recipe.html) explains the extra CPU snapshot buffers and recommends limiting outstanding requests for most users. Its pinned-buffer optimization retains memory between saves. A later fully asynchronous staging example waits for staging before the optimizer changes parameters, then separately waits for upload completion.

That ordering protects a snapshot's identity. For a capacity plan, include live buffers across ranks and other consumers of host memory. See the [pinned-memory budget](/journal/gpu-pinned-host-memory-budget/). Moving work off the GPU's critical path creates an ownership and lifetime question on the host rather than free capacity.

## Test restoration as a different operation

An evaluation plan should preserve the model, optimizer, step and application-specific state needed to continue. Compare restored progress with a known saved point, including a deliberately incomplete newer attempt. Measure restore time separately from staging and save time.

The [Spot recovery guide](/journal/aws-spot-checkpoint-resume-gpu/) explains why a surviving filename alone is insufficient. We have not run a training job or recovery experiment for this article. The published case supports an overlap mechanism; successful restart on another machine requires its own evidence.

## Sources

- [Historical PyTorch asynchronous checkpoint case](https://pytorch.org/blog/reducing-checkpointing-times/).
- [Versioned distributed-checkpoint API reference](https://docs.pytorch.org/docs/2.15/distributed.checkpoint.html).
- [Official asynchronous checkpoint recipe](https://docs.pytorch.org/tutorials/recipes/distributed_async_checkpoint_recipe.html).
