Repository navigation
feat: support router replay (R3) without the dataplane - #2849
Merged
Merged
Conversation
zyzhou5
force-pushed
the
zezhou/r3-dataplane-off
branch
from
June 16, 2026 18:35
e79ac70 to
bb66ffa
Compare
Contributor
Author
|
/ok to test bb66ffa |
grpo_train (the legacy in-memory driver path, data_plane.enabled=false) built train_data and logprob_data from a fixed key allowlist and dropped routed_experts, so R3 only worked with the TransferQueue dataplane. Thread routed_experts from flat_messages into both train_data (for policy.train) and logprob_data (for the prev-logprob get_logprobs), gated on router_replay_enabled + key presence. The Megatron worker's require=True guards (train + prev-logprob) then find routed_experts on the driver path. Add a unit test asserting routed_experts survives batched_message_log_to_flat_message as a 4D [B, S, L, K] tensor, right-padded and row-aligned to token_ids. Validated end-to-end (2 GRPO steps, no guard error) on Moonlight-16B-A3B (1 node) and the official Qwen3-30B-A3B cp2-r3 recipe (8 nodes) with data_plane.enabled=false. Signed-off-by: Zeyu Zhou <[email protected]>
zyzhou5
force-pushed
the
zezhou/r3-dataplane-off
branch
from
June 16, 2026 18:50
bb66ffa to
75ef86a
Compare
Contributor
Author
|
/ok to test 75ef86a |
ZhiyuLi-Nvidia
approved these changes
Jun 17, 2026
ZhiyuLi-Nvidia
left a comment
Contributor
There was a problem hiding this comment.
Thank you @zyzhou5. LGTM!
Collaborator
ashors1
pushed a commit
that referenced
this pull request
Jun 27, 2026
Signed-off-by: Zeyu Zhou <[email protected]> Signed-off-by: Anna Shors <[email protected]>
This branch was previously deployed
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.
What does this PR do ?
grpo_train (the legacy in-memory driver path, data_plane.enabled=false) built train_data and logprob_data from a fixed key allowlist and dropped routed_experts, so R3 only worked with the dataplane. Thread routed_experts from flat_messages into both train_data (for policy.train) and logprob_data (for the prev-logprob get_logprobs), gated on router_replay_enabled + key presence. The Megatron worker's require=True guards (train + prev-logprob) then find routed_experts on the driver path.