-
Notifications
You must be signed in to change notification settings - Fork 80
Generic Replay Buffer #705
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
base: main
Are you sure you want to change the base?
Conversation
Currently the replay buffer only works for `Episode` inputs, which makes it rather inflexible for downstream use-cases. This PR proposes to make the `ReplayBuffer` generic in terms of what data is stored. The main downside of this generality is that one needs to explicitly specify the policy age when adding data.
|
Hi @befelix! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
thanks for the PR! This is good feedback. I need to look into it a bit more in detail, but i imagine that this would also require changes in the collate fn. I am working on refactoring some components, including the collate and episode class. Do you mind if i get back to you next week? |
No rush, but at least in the current PR the collate for the GRPO app should be the same; it only adds the flexibility to do something else.
Regarding collates; we also have a custom implementation of both that remove |
|
Thanks @befelix ! I became aware yesterday that we are doing left padding -.-`. Working on it now. Also, fyi, Since you guys are doing so much work with Forge, it would be nice to touch bases and gather some feedback, see what we can prioritize to help you guys. (its fine if you guys are busy and cant at the moment). Just let me know and I can shoot you an email and schedule some 30min meeting |
I am a big fan of sequence packing, but there are so many other bottlenecks that we haven't been able to get there yet. We will though. |
|
It would be nice to chat. Can you ping me at felix.berkenkamp@aleph-alpha-research.com to schedule a call? |
Description
Currently the replay buffer only works for
Episodeinputs, which makes it rather inflexible for downstream adaptations oftorchforge. This PR proposes to make theReplayBuffergeneric in terms of what data is stored.The main downside of this generality is that one needs to explicitly specify the policy age when adding data.
Test plan
n/a