[Refactor] Merge rollout controller into rollout manager#304
Merged
zhuzilin merged 18 commits intoTHUDM:mainfrom Sep 16, 2025
Merged
[Refactor] Merge rollout controller into rollout manager#304zhuzilin merged 18 commits intoTHUDM:mainfrom
zhuzilin merged 18 commits intoTHUDM:mainfrom
Conversation
zhaochenyang20
requested changes
Sep 7, 2025
6d63b8f to
375bd28
Compare
slime/ray/rollout.py
Outdated
| path = Path(path_template.format(rollout_id=self.rollout_id)) | ||
| print(f"Save debug rollout data to {path}") | ||
| path.parent.mkdir(parents=True, exist_ok=True) | ||
| torch.save(data, path) |
Contributor
There was a problem hiding this comment.
Why not
torch.save(
dict(
rollout_id=self.rollout_id,
samples=[sample.to_dict() for sample in data],
),
path,
)
?
Collaborator
Author
There was a problem hiding this comment.
I just copy and past for this part, I think we can do the replacing in the future
Contributor
There was a problem hiding this comment.
Lines 69 to 75 in ebf16c5
Did you copy from here?
Collaborator
Author
There was a problem hiding this comment.
sorry, I think I used the older version of this part, I synced to the newest now. Thanks for your help!
6b4a413 to
d949ce8
Compare
Co-authored-by: William Ren <williamren97@gmail.com> Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com>"
Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
Co-authored-by: Chengxing Xie <91449279+yitianlian@users.noreply.github.com> Co-authored-by: Chayenne <zhaochen20@outlook.com> Co-authored-by: Haoran Wang <70007833+UbeCc@users.noreply.github.com>
Collaborator
|
@PopSoda2002 fix the lint locally. |
Closed
llltttwww
pushed a commit
to llltttwww/slime
that referenced
this pull request
Nov 30, 2025
* Refactor rollout manager * Polish * experiment * rebase * Clean code * add engine lock * Clean code * Clean * Move position of router and engine * remove logging * clean code * log * pre commit * resolve conflicts * precommit * "Refactor rollout manager Co-authored-by: William Ren <williamren97@gmail.com> Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com>" * Refactor rollout manager Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com> * add coauthor Co-authored-by: Chengxing Xie <91449279+yitianlian@users.noreply.github.com> Co-authored-by: Chayenne <zhaochen20@outlook.com> Co-authored-by: Haoran Wang <70007833+UbeCc@users.noreply.github.com> --------- Co-authored-by: William Ren <williamren97@gmail.com> Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com> Co-authored-by: Chengxing Xie <91449279+yitianlian@users.noreply.github.com> Co-authored-by: Chayenne <zhaochen20@outlook.com> Co-authored-by: Haoran Wang <70007833+UbeCc@users.noreply.github.com>
yueming-yuan
pushed a commit
to yueming-yuan/slime
that referenced
this pull request
Dec 29, 2025
Yangruipis
pushed a commit
to rednote-ai/slime
that referenced
this pull request
Feb 28, 2026
* Refactor rollout manager * Polish * experiment * rebase * Clean code * add engine lock * Clean code * Clean * Move position of router and engine * remove logging * clean code * log * pre commit * resolve conflicts * precommit * "Refactor rollout manager Co-authored-by: William Ren <williamren97@gmail.com> Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com>" * Refactor rollout manager Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com> * add coauthor Co-authored-by: Chengxing Xie <91449279+yitianlian@users.noreply.github.com> Co-authored-by: Chayenne <zhaochen20@outlook.com> Co-authored-by: Haoran Wang <70007833+UbeCc@users.noreply.github.com> --------- Co-authored-by: William Ren <williamren97@gmail.com> Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com> Co-authored-by: Chengxing Xie <91449279+yitianlian@users.noreply.github.com> Co-authored-by: Chayenne <zhaochen20@outlook.com> Co-authored-by: Haoran Wang <70007833+UbeCc@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation:
High Cohesion, Low Couplingto merge the two function-similar class into oneCoauthor by @Williamren97 @MortalHappiness
Solution:
RolloutManagerlikegenerateevalbuffer.pyrollout managerstart codegenerate, divides into several functionsRolloutEnginefrom the ray actor likeRolloutManagerusingray.get()funcResult
We use
qwen3-4bto test the refactor change will not change the behavior of baselinescript:
baseline(main branch) vs change(refactor branch):


Within the jitter range, they remain basically consistent, and the spike timings are all aligned.wandb link