Build PyTorch training code that scales.
Recent revisions are kept. Restoring one creates a new revision.