I ran some additional measurements on my side with a slightly broader set of cases:
Both observations in the opening post are consistent with what I see. Since the earlier warning_once measurements on 1.15.0 and 1.16.0 are already mentioned, the main addition here is the sampler comparison with the change proposed in PR #4596 for #4588.
I ran actual Accelerator.prepare() and gather_for_metrics() calls in one CPU process and two CPU/Gloo processes, with the PR’s pinned base and head (all count pairs below are one process / two processes). The original subset case returned 9/13 occurrences before and 10/10 after. An explicit batch sampler with drop_last=True went from 5/5 to 8/8, weighted replacement sampling from 13/13 to 14/14, and a growing sampler at epoch 1 from 5/5 to 6/6. Across nine case/epoch rows at each world size, the base matched the reference sequence in 3/9 rows each, and the tested head in 9/9 each. These are 18 case/world-size comparisons, not 18 independent repetitions.
The useful distinction is between dataset size, sampler draws, and draws retained after batching/sharding. Remove infrastructure padding, not legitimate repeats. An equivalent Subset is a cheap control and possible workaround for a fixed subset evaluated once; for replacement or dynamic sampling, compare the actual occurrence stream against an independent reference instead.
For warning_once, I also counted actual handler arrivals: two identical calls on one adapter gave one record, another adapter for the same named logger gave one more, and both messages included [RANK 0]. The adapter remained alive until a diagnostic cache clear. The prefix matters when writing a record-count check.
On November 29, 2026, #4588 was open, #4596 closed/unmerged at the tested head, and the latest stable release was 1.16.0. The following is additional evidence for exact revisions and a narrow CPU fixture, not a released fix or a full integration-test result.