Repository navigation
Conversation
Rollout routing replay (R3) had no measure of the train/inference routing disagreement it removes and no check that the replay is aligned: the R3 e2e tests only passed --ci-test and the step-0 KL check is skipped under R3, so a replay off by one token or one layer still passed CI. - --log-r3-route-mismatch: during the training forward only, count per MoE layer the real tokens (every token but each sample's last, without CP/TP padding) whose replayed expert set differs from the router's own top-k; all-reduce the counts and log train/r3_route_mismatch, _max, _layer_<i> and _min_tokens. Off by default and R3-only. - --ci-r3-route-mismatch-threshold: under --ci-test, assert that every MoE layer replayed real tokens and that the worst layer stays under the bound. Both R3 e2e tests pass the metric and a bound. - RoutingReplay.assert_all_consumed expects backward pops only for the routers activation recompute re-runs, and runs on the R3 path under --ci-test.
This branch has not been 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.
Rollout routing replay (R3) had no measure of the train/inference routing disagreement it removes and no check that the replay is aligned: the R3 e2e tests only passed --ci-test and the step-0 KL check is skipped under R3, so a replay off by one token or one layer still passed CI.