{"slug": "two-measured-notes-for-accelerate-1-15-0-with-runnable-checks", "title": "Two measured notes for accelerate 1.15.0, with runnable checks", "summary": "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.", "body_md": "I ran some additional measurements on my side with a slightly broader set of cases:\n\nBoth 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](https://github.com/huggingface/accelerate/pull/4596) for [#4588](https://github.com/huggingface/accelerate/issues/4588).\n\nI 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.\n\nThe 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.\n\nFor `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.\n\nOn November 29, 2026, #4588 was open, #4596 closed/unmerged at the tested head, and the latest stable release was [1.16.0](https://github.com/huggingface/accelerate/releases/tag/v1.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.", "url": "https://wpnews.pro/news/two-measured-notes-for-accelerate-1-15-0-with-runnable-checks", "canonical_source": "https://discuss.huggingface.co/t/two-measured-notes-for-accelerate-1-15-0-with-runnable-checks/192221#post_2", "published_at": "2026-11-29 08:38:11+00:00", "updated_at": "2026-11-29 08:43:32.141488+00:00", "lang": "en", "topics": ["machine-learning", "developer-tools", "ai-infrastructure"], "entities": ["Hugging Face", "accelerate", "PR #4596", "issue #4588", "Accelerator.prepare()", "gather_for_metrics()", "accelerate 1.16.0"], "also_reported_by": [], "takeaway": "The PR #4596 sampler change made accelerate's gathered sequences match an independent reference in 9/9 case/epoch rows at both one and two processes, versus 3/9 on the pinned base, so verify sampler fixes by comparing the actual occurrence stream rather than dataset size.", "recommendation": {"advice": "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.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/two-measured-notes-for-accelerate-1-15-0-with-runnable-checks", "markdown": "https://wpnews.pro/news/two-measured-notes-for-accelerate-1-15-0-with-runnable-checks.md", "text": "https://wpnews.pro/news/two-measured-notes-for-accelerate-1-15-0-with-runnable-checks.txt", "jsonld": "https://wpnews.pro/news/two-measured-notes-for-accelerate-1-15-0-with-runnable-checks.jsonld"}}