-
Notifications
You must be signed in to change notification settings - Fork 24
Update logic to only track policy version in the main controller #181
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
Update logic to only track policy version in the main controller #181
Conversation
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.
I don't have any concerns - thanks!
apps/grpo/main.py
Outdated
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.
👍
b8934b3
to
29a2143
Compare
src/forge/actors/replay_buffer.py
Outdated
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.
nit: Move this up to be the first method.
I'd like to test on #183 as well... |
src/forge/actors/replay_buffer.py
Outdated
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.
Similar to my other comment, could we leave this out? Or at least switch it to be debug only?
eac4e78
to
a0ccc7e
Compare
Before
Policy version is tracked in two places: main controller and Policy Actor (which increments the version number upon
update_weights
call). This feels fragile and unnecessary.After
This PR is not to debate the need for a versioning number but rather assuming the concept is valid, only track it in the controller.
Tests
Run on both grpo and toy_rl. But mainly look at progress on the toy_rl
https://www.internalfb.com/phabricator/paste/view/P1954914879
No regression

Before: https://meta.wandb.io/jiyue/sumdigits-training/runs/omqmpkq1?nw=nwuserjiyue
After: https://meta.wandb.io/jiyue/sumdigits-training/runs/xv5dduh5?nw=nwuserjiyue
