-
Notifications
You must be signed in to change notification settings - Fork 2.1k
👐 FSDP2+GRPO #3687
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
👐 FSDP2+GRPO #3687
Conversation
elif self.vllm_mode == "colocate": | ||
llm_model = self.llm.llm_engine.model_executor.driver_worker.model_runner.model | ||
llm_model.load_weights([(name, param)]) | ||
|
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.
Does this get duplicated and sent twice with the now L934-938?
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 think you're right - this should be the only logic for syncing params, and I believe we'll be dropping support for FSDP1, right? @kashif
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.
yes we are dropping support for FSDP1
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.
This won't work for peft, but we can do that for the next patch release
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. |
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com> Co-authored-by: Shirin Yamani <75791599+shirinyamani@users.noreply.github.com> Co-authored-by: Quentin Gallouédec <45557362+qgallouedec@users.noreply.github.com> Co-authored-by: Quentin Gallouédec <gallouedec.quentin@gmail.com>
@qgallouedec one possible issue I can see with calling |
In FSDP2, |
@SalmanMohammadi I see thanks for clarifying. So you are saying that the gathering only happens when you do |
Doesn't the |
What does this PR do?
Fixes # (issue)
Before submitting
Pull Request section?
to it if that's the case.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.