Repository navigation
Conversation
Follow up pytorch#5543 with forward/backward diagrams and policy-specific motivation for the existing DeepEP path. Distinguish FullAC replay from selective W2 saving and qualify bias, postprocess, precision, and storage examples.
Keep the pytorch#5543 motivation and memory/recompute explanation in ROUTER_SCORE_ABSORPTION.md. Leave README and remat communication-policy updates to the HybridEP support follow-up.
Embed the original PR schematic in the motivation section, with a short caption scoping activation labels, hidden-width storage, and the W2 SAVE replay benefit.
|
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. |
Follow SHARDING.md with an implementation intro, illustrated Overview, Configurations tables, and Submodule behavior notes. Consolidate duplicate diagrams while retaining the pytorch#5543 graph, backward dependency, remat tradeoffs, analytical examples, and correctness caveats.
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
Follow-up to #5543 and Tianyu's request for more motivation about memory and compute overhead. The existing guide explains score placement, but does not clearly explain the backward dependency or the tradeoff between saving and replaying W2.
For a bias-free routed row:
Absorption enables saving W2 without retaining its routed output for scoring. FullAC still replays W2 unless its region is saved.
What changed
torchtitan/models/common/moe/ROUTER_SCORE_ABSORPTION.md.User-facing changes
Validation
Docs only; no executable or numerical behavior changes. Storage and FLOP examples are analytical, with no new end-to-end performance or convergence claim.
SKIP=pyrefly-check pre-commit run --all-files: all enabled hooks passed. Final Markdown changes also passed targeted hooks andgit diff --check.HybridEP implementation and its GPU validation remain a separate follow-up, so this explanation can merge independently.