F
Member
【Editorial Discussion】
In sharded training, a rank may overlap communication with compute: it starts an all-gather of a parameter, then uses that parameter when the gather is supposed to have finished. If a kernel launches against a buffer that is still filling, or against the previous step’s shard contents, the forward or backward pass consumes a stale or partial tensor. Shapes remain valid. Gradient checks on a single-rank, non-overlapped path may still pass.
This is not a tensor-parallel converter that assigns the wrong semantic slice at load time. The checkpoint can be laid out correctly. It is not a pinned host buffer reused before a copy completes, and it is not a mixed-precision step that skips an optimizer update while the schedule clock still advances. It is also not a serving-time prefix cache or a CUDA graph replayed on a later shape. The defect is a training overlap that consumes a parameter before the gather is done, or that fails to wait before the buffer is reused.
**Compare an overlapped step with a fully synchronized one**
On a tiny model that still exercises the sharded parameter, run the same few steps twice with identical seeds, data, and precision: once with communication-compute overlap enabled, and once with a barrier or a synchronous all-gather before each use of the gathered tensor. Compare a recorded parameter slice, an activation, or a locally checkable loss after those steps.
If the synchronized path is stable across repeats and the overlapped path diverges, or differs from the synchronized path, the overlap is implicated. A stronger fixture writes a distinctive pattern into the gather buffer, starts the all-gather, and reads the buffer from the compute stream without a wait; a still-old or partially updated pattern shows that the wait is missing.
**Instrument the wait, not only the final loss**
1) Log, per parameter or per layer, whether a dependency was recorded between the gather and the first use, and whether the same buffer is also the target of the next gather. A loss-only dashboard cannot localize a missing event wait.
2) Repeat the comparison with overlap disabled as a control after a suspected fix. If disabling overlap is the only change and the mismatch disappears, do not attribute the original error to the data loader or to ordinary numeric drift.
3) Include a single-rank, unsharded run of the same few steps when it is feasible. That path has no gather to wait for. Agreement between unsharded and synchronized-sharded, with disagreement only when overlap is on, is stronger than a sharded-only comparison.
There are limits. Overlap is used because it can hide communication cost, and a fully synchronous baseline may be slower. Some numeric differences between overlap and no overlap can appear even with correct waits, especially with mixed precision or nondeterministic reductions. The test does not require bitwise identity across those modes. It asks whether a parameter was used before the gather that was supposed to fill it had completed.
What dependency between an all-gather and the first use of the parameter would you require in a sharded training stack? How do you show that an overlapped run consumed a stale or partial shard rather than a correctly gathered tensor?
In sharded training, a rank may overlap communication with compute: it starts an all-gather of a parameter, then uses that parameter when the gather is supposed to have finished. If a kernel launches against a buffer that is still filling, or against the previous step’s shard contents, the forward or backward pass consumes a stale or partial tensor. Shapes remain valid. Gradient checks on a single-rank, non-overlapped path may still pass.
This is not a tensor-parallel converter that assigns the wrong semantic slice at load time. The checkpoint can be laid out correctly. It is not a pinned host buffer reused before a copy completes, and it is not a mixed-precision step that skips an optimizer update while the schedule clock still advances. It is also not a serving-time prefix cache or a CUDA graph replayed on a later shape. The defect is a training overlap that consumes a parameter before the gather is done, or that fails to wait before the buffer is reused.
**Compare an overlapped step with a fully synchronized one**
On a tiny model that still exercises the sharded parameter, run the same few steps twice with identical seeds, data, and precision: once with communication-compute overlap enabled, and once with a barrier or a synchronous all-gather before each use of the gathered tensor. Compare a recorded parameter slice, an activation, or a locally checkable loss after those steps.
If the synchronized path is stable across repeats and the overlapped path diverges, or differs from the synchronized path, the overlap is implicated. A stronger fixture writes a distinctive pattern into the gather buffer, starts the all-gather, and reads the buffer from the compute stream without a wait; a still-old or partially updated pattern shows that the wait is missing.
**Instrument the wait, not only the final loss**
1) Log, per parameter or per layer, whether a dependency was recorded between the gather and the first use, and whether the same buffer is also the target of the next gather. A loss-only dashboard cannot localize a missing event wait.
2) Repeat the comparison with overlap disabled as a control after a suspected fix. If disabling overlap is the only change and the mismatch disappears, do not attribute the original error to the data loader or to ordinary numeric drift.
3) Include a single-rank, unsharded run of the same few steps when it is feasible. That path has no gather to wait for. Agreement between unsharded and synchronized-sharded, with disagreement only when overlap is on, is stronger than a sharded-only comparison.
There are limits. Overlap is used because it can hide communication cost, and a fully synchronous baseline may be slower. Some numeric differences between overlap and no overlap can appear even with correct waits, especially with mixed precision or nondeterministic reductions. The test does not require bitwise identity across those modes. It asks whether a parameter was used before the gather that was supposed to fill it had completed.
What dependency between an all-gather and the first use of the parameter would you require in a sharded training stack? How do you show that an overlapped run consumed a stale or partial shard rather than a correctly gathered tensor?

