-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[main] Muon fp8 param gather for decoupled layout #5479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Wohox
wants to merge
15
commits into
NVIDIA:main
Choose a base branch
from
Wohox:muon-decouple-fp8-param-gather-main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3a73182
Support decoupled compact LayerWise DDP layout for Muon, with checkpo…
Wohox b4ba39f
Support FP8 parameter gather on the decoupled compact LayerWise layout
Wohox 5e06ef9
Fix the dp_reshardable padding template in the decoupled ckpt save path
Wohox 0063933
Stop inferring global emptiness from slot 0 in LayerWise param gather
Wohox 873176c
Make the fp8 param-gather test assert something, and fix its overlap …
Wohox 0604c63
Cover the compact decoupled layout in the LayerWise ckpt save/load test
Wohox 490262a
Merge remote-tracking branch 'origin/main' into muon-decouple-fp8-par…
Wohox 0387bc1
Merge remote-tracking branch 'origin/main' into muon-decouple-fp8-par…
Wohox cef9c9a
Merge branch 'main' into muon-decouple-fp8-param-gather-main
Wohox 68edd1c
Tighten LayerWise FP8 gather validation
Wohox f5ecccc
Keep existing LayerWise FP8 tests unchanged
Wohox 5290dd9
Format LayerWise optimizer argument validation
Wohox 9c66a35
Align ModelBuilder LayerWise DDP setup
Wohox ead38ad
Remove LayerWise checkpoint changes
Wohox 098780b
Optimize LayerWise FP8 parameter copies
Wohox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't follow the changes in this file.
Could you move these changes to a separate PR and code-comment the why better?
https://google.github.io/eng-practices/review/developer/small-cls.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are multiple places that call the
high_precision_init_valuemethod, this is to reduce the duplicated code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still confused. The change in this file made the code strictly harder to read -- what does this dedup buy us here?