feat(data): expose shuffle in DataloaderConfig - #5142
Conversation
|
@filaretov this is still in draft, kindly remind to "ready for review" if need merge |
Signed-off-by: Hristo Filaretov <hfilaretov@nvidia.com>
fecae65 to
90319dc
Compare
|
@yaoyu-33 Thank you for the reminder. Yeah, it'd be nice to merge it if possible, it's ready for review. |
|
I think this is addressing the right user need at the wrong configuration layer. After #4601, If the goal is simply the normal policy, I do not think we need a public Could we revise this to one of these shapes?
The focused tests should cover the resulting contract: shuffled train order remains deterministic and resume-equivalent, the train-only opt-out (if retained) is sequential, and validation/test order is deterministic and unshuffled. |
What does this PR do ?
This PR exposes
shuffleas an argument in the top-level dataset configuration API so it can be set inMegatronPretrainingBatchSampler. It was added in #4601 and it changed the convergence behavior of our Llama 2 70b LORA benchmark.Changelog
shuffleto necessary config classes to expose it throughDataloaderConfig.Before your PR is "Ready for review"
Pre checks:
If you haven't finished some of the above items you can still open "Draft" PR.