-
Notifications
You must be signed in to change notification settings - Fork 661
[Cherry-Pick][RL] Support Rollout Routing Replay #5166
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
Merged
yuanlehome
merged 18 commits into
PaddlePaddle:feature/experimental_feature_20250908
from
gongshaotian:lyl_dev_support_r3
Dec 4, 2025
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
06e3ae1
support r3
yuanlehome 2592a7b
update
yuanlehome fe3d14c
support tp>1&&ep>1
yuanlehome daa83d3
support cudagraph padding
yuanlehome 7007e45
support all backends
yuanlehome 7fa6690
replace env with options
yuanlehome 9c9bb02
modularize
yuanlehome d8bc82e
update
yuanlehome 60b69e9
Add RoutingStore and refine code
gongshaotian b49377c
add routing replay cofig
gongshaotian cfb0e31
add routing repaly config
gongshaotian f58b3df
success run routing store
gongshaotian cd5ce86
convert request id as rollout id
gongshaotian ca0e7b6
fix rollout config bug
gongshaotian a3a91d3
unify code
gongshaotian e49203f
use rollout_id to replace request_id in routing store
gongshaotian 5770874
Merge branch 'feature/experimental_feature_20250908' of https://githu…
gongshaotian 77beecc
delete code
gongshaotian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -33,6 +33,7 @@ | |||||
| MobaAttentionConfig, | ||||||
| ModelConfig, | ||||||
| ParallelConfig, | ||||||
| RoutingReplayConfig, | ||||||
| SpeculativeConfig, | ||||||
| TaskOption, | ||||||
| ) | ||||||
|
|
@@ -421,6 +422,11 @@ class EngineArgs: | |||||
| Configuration for eplb. | ||||||
| """ | ||||||
|
|
||||||
| routing_replay_config: Optional[Dict[str, Any]] = None | ||||||
| """ | ||||||
| Flag to rollout routing replay(r3) | ||||||
| """ | ||||||
|
|
||||||
| def __post_init__(self): | ||||||
| """ | ||||||
| Post-initialization processing to set default tokenizer if not provided. | ||||||
|
|
@@ -733,6 +739,12 @@ def add_cli_args(parser: FlexibleArgumentParser) -> FlexibleArgumentParser: | |||||
| default=EngineArgs.eplb_config, | ||||||
| help="Config of eplb.", | ||||||
| ) | ||||||
| parallel_group.add_argument( | ||||||
| "--routing-replay-config", | ||||||
| type=json.loads, | ||||||
| default=EngineArgs.routing_replay_config, | ||||||
| help="Flag of rollout routing replay(r3).", | ||||||
| ) | ||||||
|
|
||||||
| # Load group | ||||||
| load_group = parser.add_argument_group("Load Configuration") | ||||||
|
|
@@ -1078,6 +1090,14 @@ def create_eplb_config(self) -> EPLBConfig: | |||||
| eplb_args[k] = v | ||||||
| return EPLBConfig(eplb_args) | ||||||
|
|
||||||
| def create_routing_repaly_config(self) -> RoutingReplayConfig: | ||||||
|
||||||
| def create_routing_repaly_config(self) -> RoutingReplayConfig: | |
| def create_routing_replay_config(self) -> RoutingReplayConfig: |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
The
passstatement here serves no purpose and should be removed. If this is a placeholder for future RDMA configuration attributes, consider adding a comment instead: