cd /news/machine-learning/two-measured-notes-for-accelerate-1-… · home › topics › machine-learning › article
[ARTICLE · art-178047] src=discuss.huggingface.co ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Two measured notes for accelerate 1.15.0, with runnable checks

Independent measurements on Hugging Face's accelerate 1.15.0 confirm that the sampler fix proposed in PR #4596 for issue #4588 corrects data-order mismatches: across nine case/epoch rows at each world size, the pinned base matched the reference sequence in 3/9 rows while the tested head matched 9/9, with the original subset case going from 9/13 to 10/10 occurrences and an explicit batch sampler with drop_last=True from 5/5 to 8/8. The author also counted warning_once handler arrivals, finding two identical calls on one adapter produced one record and a second adapter for the same named logger produced one more, both tagged [RANK 0]. As of November 29, 2026, #4588 remained open, #4596 was closed and unmerged at the tested head, and the latest stable release was accelerate 1.16.0, so the results are evidence for exact revisions and a narrow CPU fixture rather than a released fix.

recommendation

Test sampler and sharding changes by comparing the actual occurrence stream against an independent reference across case/epoch rows at one and two processes, and use an equivalent Subset as a cheap control.

more in playbook: Evals and testing for LLM apps
read2 min views5 publishedNov 29, 2026

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.

── more in #machine-learning 4 stories · sorted by recency
── more on @hugging face 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/two-measured-notes-f…] indexed:0 read:2min 2026-11-29 · —