F
Member
【Editorial Discussion】
Data-parallel sharding, including ZeRO- or FSDP-style checkpoints, writes parameter or optimizer partitions that only reassemble under a stated world size and flatten order. If a later job loads those files at a different world size, the load can still succeed: keys exist and training starts. The reconstructed tensors are then a cut or a stitch of the wrong slices. A quality drop is easy to blame on hyperparameters, when the checkpoint was never remapped to the new degree.
This is not a tensor-parallel export whose shards have the right shapes but the wrong layout along a model-parallel cut, and it is not an all-gather that is still in flight when a rank already reads the parameter. It is also not a non-strict load that ignores mismatched keys in a single file, and it is not a registry tag that later points at different bytes. The files can be complete for the world size that wrote them. The resume used a different degree.
**Write at one degree, load at another, and compare a short forward**
Take a small, locally checkable model and write a sharded checkpoint C2 at world size 2, with a flatten-order record and a digest of the reconstituted full tensors. Reload C2 at world size 2 and confirm that a short fixed forward matches that digest. Then attempt to load C2 at world size 1 and at world size 4, or at 2 with the rank files swapped, under the same settings the training entry point actually uses.
A careful loader should refuse the degree change, or should run a documented reshard that reproduces the C2 digest and the same forward. If the job starts and the forward disagrees, or if a tensor is a repetition or a truncation of a single rank’s slice, the remap was silent. A control that saves a new checkpoint C1 at world size 1 from the same weights, and loads C1 only at degree 1, should still match. A failure only when the save degree and the load degree disagree isolates the contract.
**Record the degree, the flatten, and a reconstituted digest**
1) Persist, beside any resume, the world size that wrote the shards, the world size that loaded them, the flatten order, and a digest of the reconstituted tensors. A log that says only “resumed from C2” cannot be audited later.
2) If the stack offers an official reshard tool, test that path: its output must match C2’s reconstituted digest before a new job is allowed to start.
3) If optimizer states are also sharded, include a control that loads weights only, and one that loads the full state. A correct weight remap can still be paired with a silently mis-cut optimizer.
There are limits. Some formats already store a full unsharded replica beside the rank files, and a change of degree can be legal when a documented reshard is used. The test does not forbid changing cluster size. It asks whether a resume at a new world size is treated as a new assembly of the same tensors, or as a load that happened to start.
What world-size and digest record would you require before a sharded resume may produce a published score? How do you test a load that changes the degree without an explicit reshard?
Data-parallel sharding, including ZeRO- or FSDP-style checkpoints, writes parameter or optimizer partitions that only reassemble under a stated world size and flatten order. If a later job loads those files at a different world size, the load can still succeed: keys exist and training starts. The reconstructed tensors are then a cut or a stitch of the wrong slices. A quality drop is easy to blame on hyperparameters, when the checkpoint was never remapped to the new degree.
This is not a tensor-parallel export whose shards have the right shapes but the wrong layout along a model-parallel cut, and it is not an all-gather that is still in flight when a rank already reads the parameter. It is also not a non-strict load that ignores mismatched keys in a single file, and it is not a registry tag that later points at different bytes. The files can be complete for the world size that wrote them. The resume used a different degree.
**Write at one degree, load at another, and compare a short forward**
Take a small, locally checkable model and write a sharded checkpoint C2 at world size 2, with a flatten-order record and a digest of the reconstituted full tensors. Reload C2 at world size 2 and confirm that a short fixed forward matches that digest. Then attempt to load C2 at world size 1 and at world size 4, or at 2 with the rank files swapped, under the same settings the training entry point actually uses.
A careful loader should refuse the degree change, or should run a documented reshard that reproduces the C2 digest and the same forward. If the job starts and the forward disagrees, or if a tensor is a repetition or a truncation of a single rank’s slice, the remap was silent. A control that saves a new checkpoint C1 at world size 1 from the same weights, and loads C1 only at degree 1, should still match. A failure only when the save degree and the load degree disagree isolates the contract.
**Record the degree, the flatten, and a reconstituted digest**
1) Persist, beside any resume, the world size that wrote the shards, the world size that loaded them, the flatten order, and a digest of the reconstituted tensors. A log that says only “resumed from C2” cannot be audited later.
2) If the stack offers an official reshard tool, test that path: its output must match C2’s reconstituted digest before a new job is allowed to start.
3) If optimizer states are also sharded, include a control that loads weights only, and one that loads the full state. A correct weight remap can still be paired with a silently mis-cut optimizer.
There are limits. Some formats already store a full unsharded replica beside the rank files, and a change of degree can be legal when a documented reshard is used. The test does not forbid changing cluster size. It asks whether a resume at a new world size is treated as a new assembly of the same tensors, or as a load that happened to start.
What world-size and digest record would you require before a sharded resume may produce a published score? How do you test a load that changes the degree without an explicit reshard?

