SIGN IN SIGN UP

Use generator with seed for LengthGroupedSampler in Trainer._get_eval_sampler for deterministic eval order with per_device_eval_batch_size > 1 (#48025)

* Use generator with data_seed/seed for LengthGroupedSampler in Trainer._get_eval_sampler for deterministic eval order between calls with per_device_eval_batch_size > 1

* fixed ruff import order

---------

Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
P
Philip Shurpik committed
94f09cfec149050b5355bab7f207ac69e21f1a02
Parent: decba1d
Committed by GitHub <noreply@github.com> on 8/19/2026, 4:02:04 PM