liveBook · Manning

Training state

As explained in Designing Deep Learning Systems: A guide for software engineers

Training state is the persisted information required to resume model training from a particular point, including learned parameters and execution progress.

Training state is the saved model information associated with a training iteration. In distributed training, preserving each worker’s latest state lets a failed worker restart without discarding the other workers’ computation. section 4.2.2 section 4.2.4

A practical training-state design assigns responsibilities across the training service and training code:

  • Provide remote storage, such as a remote filesystem, for each worker’s saved state. section 4.2.2
  • Pass storage access configuration into the training container. section 4.2.2
  • Save the training state after each iteration through a backup API or framework feature. section 4.2.4
  • Restore the most recent previous state when a worker fails or exceeds the iteration deadline, then restart that worker. section 4.2.2 section 4.2.4

Recovering a failed worker

A distributed training group saves each worker’s neural-network state after every iteration. If one worker fails during the next iteration, the service restores its previous state and lets the group continue instead of wasting completed computation. section 4.2.4

How Designing Deep Learning Systems: A guide for software engineers covers it

How deep it goes
Defines per-iteration model-parameter saves and explains restoration, without detailing storage formats or framework-specific backup internals.
Examples
Uses remote filesystems, backup APIs, training containers, and TensorFlow or PyTorch backup-and-restore features.
What it assumes
Assumes distributed-training workers and iterations, while assigning communication and storage setup to the training service.
What you can do after
Operate distributed training with remote persistence and restore failed workers without losing the group’s completed computation.
How it connects
Links training state to fault tolerance, data parallelism, distributed training, remote storage, and interworker failure recovery.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Designing Deep Learning Systems: A guide for software engineers. The section links point to the parts of the book it draws on.