-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Feat] Suppport SGLang as rollout engine of GRPO trainer #3370
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
|
Sometimes there's strange error in the training process: which need further investigation |
|
@ryang-max, why did you change some of the help strings for the different options? |
Thanks, that's unexpected (maybe something modified in development process), I'll change them back |
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.
In the final version, the files in scripts should be removed
|
hi @kashif files in scripts were removed |
|
shall we also remove the commented out code? |
|
@ryang-max shall we also add a sglang-server cli script? |
|
@ryang-max I have added a TRL CLI command |
remove dead code Co-authored-by: Kashif Rasul <[email protected]>
|
@kashif Can you please review and see if we can merge or need further modification? thx 🙏
|
|
thanks @ryang-max btw can you add the instructions how you ran the benchmark or the sglang run to the docs? in the GRPO docs' sglang section 🙇🏽 |
|
The main question remains: how is weight transfer managed? I understand there's serialization. It must be super slow on the big models, right? Have you benchmarked with a 30B+? |
|
@qgallouedec
This approach avoids modifying SGLang’s internal initialization routines and leverages its existing, stable checkpoint-loading capabilities. We only used 7b for benchmark. |
|
@qgallouedec I've added how to run sglang in docs. |
|
Thanks, but my question about speed remains: how much time does it take to update the model? Do you have a benchmark to share? A wandb run? |
The question you mentioned is reasonable. Actually I just found it several days ago. Although we are using the sglang server Currently we ran testcase on 0.5B model and it shows explicit increasement in rollout comparing with vllm-based rollout. (@renxinx Would you provide some comparison result about this? ) And we can enhance this update_weights in the future to only pass metadata and maybe use Thanks! @qgallouedec |
|
closing in favour of #3627 |
What does this PR do?
This PR add SGLang as an alternative rollout engine when training using GRPO.
Reference PR: #3094
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.
TODO