Repository navigation
feat(megamoe): support MXFP8 probability weighting and selective recompute - #6
Merged
davidhe91 merged 1 commit intoDec 2, 2026
Conversation
davidhe91
merged commit Dec 2, 2026
40a66d4
into
davidhe91:megamoe-ascend950-integration
1 check failed
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.
MXFP8 MegaMoE currently rejects before-FC2 routing probabilities and retains quantized activation storage that PanGu selective recomputation can discard. This adds the matching probability path and explicit saved-state replay options.
/kind feature
Changes
MegaMoeRecomputeOptionsfor routed input replay, routed activation replay, shared activation replay, and shared FC1 replay. Defaults remain disabled. FSDP replay resolves current weight roots instead of retaining gathered views.Rebased onto
d045692ofmegamoe-ascend950-integration, preserving PR #5's shared SwiGLU backward alignment and existing shared-SwiGLU/Stream-K regressions. Native payloads must be rebuilt for ABI 7.Validation
rtol=3e-5, atol=1e-5; bitwise equality is not claimed for those reductions.Shared FC1 replay currently uses standalone CANN calls before the fused backward launch. Input replay also adds Dispatch work; memory/performance trade-offs require measurements for the target model.