-
Notifications
You must be signed in to change notification settings - Fork 1.9k
🎲 [GRPO] Shuffle mini batches #3391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Im sure this shuffling prompt. still guarantees that prompts-completions are aligned, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. To keep a detailed changelog, please either merge now to main (it should be possible), or wait for the other PR to be merged (but don't merge into the other branch)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but would love to see shuffle_tensor_dict()
unit tested since it's somewhat critical for training
Sure, I will also add some tests for split tensor dict as I did not find any |
Co-authored-by: Quentin Gallouédec <[email protected]>
…ibatches generated (#3396)
…l into grpo-shuffle-mini-batches
This PR doesn't work correctly when my inputs contain non-Tensor inputs. Specifically, I'm passing a List[Tuple[int, int]] in the inputs for interpolation because |
You work with a fork on your specific use-case, right? because |
Thanks for your reply. Yes, for the purpose of training a LISA-like model architecture using GRPO, I inherited
According to traceback,in trainer's |
This PR adds minibatch shuffling to ensure that the prompts are not ordered before the effective batch is split into chunks.