Training

GPU training checkpoints that survive a restart

GPU training checkpoints make a job resumable: save enough state to continue the experiment, store it outside the disposable machine and prove it can restart. Model weights alone may be insufficient: optimizer state, progress and random state can matter to a faithful continuation. Test a restore on a fresh machine before relying on interruptible or low-cost capacity.

A GPU card travelling along a winding path with flags at intervals, resuming from the last flag after a break in the path
A checkpoint turns an interruption into a short step back instead of a restart from zero. AI-generated illustration.

Decide what continuation means

There are two different goals: recovering approximately where training stopped and reproducing the uninterrupted trajectory. The second requires stricter control of randomness, data order and software versions. Write down which one the experiment needs.

PyTorch describes saving a general checkpoint with model and optimizer state plus progress such as the epoch. Add the application-specific state your loop needs, including scheduler progress or data position when relevant. A checkpoint format should have a version, just like a data format.

References: PyTorch model saving and loading

Choose the checkpoint interval from recovery cost

Suppose an illustrative job writes a checkpoint every 20 minutes and takes one minute to write it. You spend roughly a minute of each interval on saving, while a failure can discard almost a full interval of unsaved work. Shortening the interval reduces loss but adds storage traffic.

Measure the save operation on the storage system you intend to use. Saving locally can look fast while leaving everything on the machine you are about to lose. Track the time until the durable copy is complete.

Run a failure drill before buying a long window

Start a short training run, create a durable checkpoint, then terminate the worker deliberately. Launch a fresh worker from the saved container version and restore the checkpoint. Check progress, optimizer settings and the next batch to confirm the resume path.

Use unique run identifiers and atomic checkpoint publication so a reader does not pick up a half-written file. Keep at least one previous complete checkpoint. Test what happens when the latest file is corrupt or unavailable.

Treat interruption notices as extra time

AWS documents Spot interruption notices with a two-minute warning for most interruptions, with a different behavior for hibernation. That is useful for shutdown handling, but a large checkpoint may take longer to copy. Save periodically during normal operation.

A retry should not duplicate an external side effect, such as publishing the same result or charging a downstream task twice. Separate durable progress from disposable worker state, and make result publication idempotent.

References: EC2 Spot interruption notices

Checklist of state for a faithful resume

Beyond model weights, optimizer, scheduler and step count, a faithful continuation may need the mixed-precision loss scaler, random-number generator state for each process and the data-sampler position. If the dataset is streamed or shuffled, a saved step number alone may not reproduce the next batch; decide whether approximate continuation is acceptable and save enough sampler state for the goal you chose.

Keep essential state separate from diagnostics such as logs and metrics. Store a small manifest beside each checkpoint with the code revision, dataset version, tokenizer, configuration, framework version and checkpoint format version, plus the restore command. The restore path can then reject an incompatible artifact at startup instead of failing halfway through a long allocation.

References: PyTorch model saving and loading

Publish checkpoints atomically and keep a known-good version

Write a new checkpoint under a temporary name, finish the upload, verify its size or checksum, and only then publish a completion marker or update the pointer to the latest version. A restore process should ignore incomplete uploads. Keep at least one earlier complete checkpoint until the new one has passed a restore check.

Use run identifiers and monotonically increasing step numbers so retries do not overwrite a good artifact with a partial file. Record the source and destination locations. If a transfer is interrupted, the next attempt should resume or restart safely without making the incomplete object look authoritative.

Storage boxes on shelves, with a new box being sealed while a verified older box is set apart
Write the new checkpoint completely before replacing the last version you know restores. AI-generated illustration.

Add edge cases to the drill and keep its record

Once the basic restore works, stop the worker immediately before and immediately after a checkpoint completes, and run the restore with missing credentials and with the storage destination unavailable. Confirm that results published before the stop are not published again: give each run and output a stable identifier and write the completion record only after validation succeeds.

After resuming, compare validation metrics with the uninterrupted trend, not only the step counter. Record the date, code revision, checkpoint identifier, restore duration and any differences. Repeat the drill when the framework, container, checkpoint schema, storage path or data pipeline changes.

References: PyTorch model saving and loading

Plan the storage path before the first checkpoint

Estimate how large each checkpoint will be and how long the durable upload takes while training is active. Check available space for the new and previous known-good files. If the worker loses access to storage, define whether training pauses, retries, or stops before it advances too far beyond the last durable state.

Test credentials from a fresh worker and confirm that the destination survives termination of the compute instance. Avoid relying on a mounted path whose lifetime is unclear. A restore plan should identify the artifact, the access method, and the person or automation responsible for keeping it available.

Count restore time, not only save time

The interval calculation weighs save cost against lost work, but an interruption also costs the time to detect the failure, allocate a replacement, retrieve the checkpoint, warm the model and validate the resumed run. Measure these stages during the drill. A checkpoint that preserves training progress but takes hours to restore may still miss the deadline.

Saving can also compete with training for storage bandwidth, so try two or three intervals on the real destination rather than settling on a round number. Use the results to choose between a shorter interval, a second copy near the compute region, or a larger repeat window, and write the trade-off down so the next team does not mistake it for an omission.

Count restore time, not only save time
DecisionMeasure or define
Save costSerialization plus transfer until durable
Recovery toleranceMaximum acceptable work to repeat
Failure behaviorNotice window and abrupt-loss cases
Restore timeDetection, replacement, download, warm-up, validation
RetentionCurrent and previous known-good checkpoints

References: PyTorch model saving and loading

NeuraMesh prices for these GPUs

NeuraMesh prices per GPU-hour in USD, excluding taxes, as of 2026-11-27. Live prices are on the rental pages.
GPUMemoryData centerValue
RTX 409024 GB$0.46$0.40
L40S48 GB$1.26$0.54
A10080 GB$1.56$0.98
H10080 GB$2.88$2.00

Every order is confirmed in a quotation before you pay. See all GPU prices.

Questions readers ask

Is saving model weights enough to resume training?

It may be enough for inference or a fresh training start. Continuing the same training run commonly needs optimizer and progress state as well.

Where should GPU training checkpoints live?

On durable storage that survives loss of the worker, with a restore path tested from another machine.

How often should GPU training save a checkpoint?

Choose an interval from measured save-and-transfer time and the amount of work the team can afford to repeat. Test the interval on the intended storage system and include recovery time in the budget.

How do I know a training checkpoint is usable?

Restore it on a fresh worker, continue the run, and verify progress and metrics. Confirm the artifact is complete and contains the optimizer and other state required by your resume goal.

Can I rely on a cloud interruption notice to save a checkpoint?

Treat a notice as extra time, not as the recovery plan. Save periodically during normal operation and verify that a durable copy finishes within the available window.

Should every checkpoint be kept forever?

Usually not. Define a retention rule that preserves the newest recoverable checkpoint and any versions needed for debugging or reproducibility, then delete older copies deliberately.

Can a model-weight file resume training exactly?

Not always. Faithful continuation can require optimizer, scheduler, random, and data-position state in addition to model weights.

Sources and editorial notes

Primary documentation reviewed October 9, 2026. Provider descriptions reflect published documentation. Recommendations are our analysis; worked figures are illustrative unless explicitly stated otherwise. No independent provider benchmark or uptime ranking is claimed.

Read the editorial policy.

Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.