Repository navigation
Conversation
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
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.
Summary (human-written)
Why
With router scores absorbed before W2, the router gradient no longer needs W2's forward output. Default FullAC still replays the W2 forward GEMM. This is the replay change split out of #5976. DeepEP already uses absorption on main. HybridEP uses the same path once #5976 lands. Remat early-stop issue
What changes
Save absorbed native W2 together with its output cast. The scored input and BF16 weight copy can be rebuilt for backward. GPT-OSS saves the matching bias addition. Postprocessed experts, quantized projections, and LoRA keep the configured replay policy. Both gradient GEMMs still run.
Validation
In the earlier five-MoE-layer HybridEP comparison (
56a213bvs00a4eed54), grouped GEMMs fell from 40 to 35 per microbatch, with bitwise-identical loss and gradient norm over 12 FullAC updates. These are historical measurements. GPU replay counts, saved bytes, and peak memory still need validation on this draft.