In this article
RANK and elastic WORLD_SIZE can change across restarts; checkpoint ownership and completed-input identity must not depend on an old worker number.
A distributed evaluator stores progress under worker rank and assumes that rank will own the same input after restart. Elastic membership changes invalidate that assumption. A new worker group can be internally consistent while the application’s old rank-to-data mapping silently skips or repeats logical work.
Separate worker role from input identity
Record immutable input partitions and accepted progress independently of current worker numbers. The torchrun reference explicitly says RANK is not stable across restarts and WORLD_SIZE can change under elasticity. Preserve rank as execution evidence, qualified by the worker-group generation. It is useful for locating a process or collective participant, but it should not alone decide which input has been processed or which durable artifact represents a logical partition.
Read the restart boundary
The reference describes stopping existing workers and forming a new WorkerGroup when nodes arrive or depart. Do not describe this as transparent continuation of every surviving process. The ReCoVer research guide studies another protocol that repairs progress within an iteration; its properties are not automatically present in torchrun. Identify what the actual application reloads after the launcher creates new workers, including its model and progress state.
Rebuild membership-dependent assignments
The rendezvous guide establishes agreement on membership and roles for the completed round, while allowing different ranks in a later round. Derive assignments from the current membership plus durable logical progress. A new world size can change partitioning and batch composition. State whether the application preserves exact sample order, coverage only or another invariant. Keeping a familiar rank filename does not prove any of those properties after the mapping changes.
Restore a coherent checkpoint
Connect saved model state, progress and input identity before computing the next assignment. The resharding state guide explains why a changed layout requires an explicit state inventory. A successful parameter load does not restore a data-loader position or external result ledger automatically. Keep checkpoint identity separate from current output paths, and verify that every new worker resolves the same intended continuation boundary rather than independently selecting the latest-looking file.
Exercise a changed membership
In a disposable workload, record input identities and accepted outputs before and after a supported worker-group restart with a different membership. Compare coverage and duplicates, not just whether the training loop resumed. Preserve old and new ranks, world sizes and checkpoint selection. Acceptance demonstrates the declared logical invariant across remapping. It does not claim a measured recovery time, bitwise equivalence or a completed elasticity experiment for a particular cluster without its actual trace.
Keep the remaining assumptions explicit
Some algorithms require fixed global batch or carefully adjusted weighting when membership changes. Those are application obligations beyond assigning new ranks. A valid rendezvous cannot repair an incompatible checkpoint or retroactively settle uncertain external writes. The useful result is a recovery record linking stable work identity to each worker-group generation. It avoids treating a rank as permanent authority and makes any allowed change in data order, contribution or sampling visible to the consumer of the recovered run.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.