-
Notifications
You must be signed in to change notification settings - Fork 540
[PyTorch] FSDP2 Support for TE #2245
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
vthumbe1503
wants to merge
103
commits into
NVIDIA:main
Choose a base branch
from
vthumbe1503:fsdp2_issue_fix
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 20 commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
d64ee35
fix for float8 tensor fsdp2 training
vthumbe1503 e64f5bb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 980330c
zeros_like should return fp32 for fsdp2 to work
vthumbe1503 737852c
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 2a3ca77
minor cleanup
vthumbe1503 65f50af
fix unsharded weights not releasing memory
vthumbe1503 1360381
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2ad5624
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 09c6848
implement using fsdp preallgather and postallgather functions
vthumbe1503 322853c
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 485cab3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f5bedbb
FSDP2 works on Hopper/L40
vthumbe1503 4a72968
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fddfd21
minor comment
vthumbe1503 099a92b
fix merge conflict
vthumbe1503 0b81d32
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ae2bde5
some fixes for fp8 + handwavy changes for mxfp8
vthumbe1503 c4c4347
only transpose saved for backward pass allgather in case of L40/Hoppe…
vthumbe1503 eec56da
missed minor change to hopper use-case
vthumbe1503 79475fe
communicate only required data in mxfp8, fix for updating weight usag…
vthumbe1503 f881535
changes for meta Dtensors for weights and better all gather data hand…
vthumbe1503 9d87fb7
better solution to figure out forward pass in FSDP2
vthumbe1503 40d4dfd
adress review comments
vthumbe1503 71d9f5d
Update transformer_engine/pytorch/tensor/mxfp8_tensor.py
vthumbe1503 20228c4
resolve merge conflict
vthumbe1503 67dc86e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0a6e23c
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 631f01f
everything functioning except hack for transformerlayer
vthumbe1503 fb49cfe
fix merge conflict
vthumbe1503 9516213
fix merge conflict
vthumbe1503 c9dc10c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8c8ef93
revert change of commit id for cudnnt-frontend
vthumbe1503 04d7416
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 c97e204
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] dbbbaab
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 0ac3bfa
unnecessary change
vthumbe1503 2c3b958
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 36a6d01
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 44d8c72
minor issues with linting, add some comments
vthumbe1503 bca48a8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a50928d
minor stuff
vthumbe1503 b5bd42e
revert space removal
vthumbe1503 2d75310
fix the fsdp state collection issue, and minor review comments addres…
vthumbe1503 eb6964d
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 c16a844
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5db9a33
revert change for dgrad redundant computation
vthumbe1503 e207845
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 32365ce
bug: get fsdp param group's training state instead of root training s…
vthumbe1503 8c7f375
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 63b517f
address review comments
vthumbe1503 26d617c
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 6f7f037
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 6034f5d
address review comments
vthumbe1503 cd454e0
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 7269ab3
address coderabbit review comments
vthumbe1503 044d098
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ee3c33e
address review comments
vthumbe1503 7d1726e
xMerge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/Transformer…
vthumbe1503 bf3546a
address review comments
vthumbe1503 fb58afe
adress review comments; fix fp8 allgather test to do after fsdp lazy …
vthumbe1503 7ca1961
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9894d95
address review comments
vthumbe1503 c6b5b42
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 b661461
remove detach
vthumbe1503 c99a92b
do what makes sense
vthumbe1503 0d291d9
Update transformer_engine/pytorch/tensor/float8_tensor.py
vthumbe1503 5588e96
Update transformer_engine/pytorch/tensor/mxfp8_tensor.py
vthumbe1503 3f4957d
Update transformer_engine/pytorch/tensor/mxfp8_tensor.py
vthumbe1503 3a2b2c1
Update transformer_engine/pytorch/tensor/mxfp8_tensor.py
vthumbe1503 61f4fc8
Update transformer_engine/pytorch/tensor/mxfp8_tensor.py
vthumbe1503 94a8126
Update transformer_engine/pytorch/tensor/mxfp8_tensor.py
vthumbe1503 62ad0aa
address review comments
vthumbe1503 29db9af
address review comments
vthumbe1503 16c77c0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 023a4f4
address review comments
vthumbe1503 651ebd8
adress review comments
vthumbe1503 15793fa
fix merge conflixts
vthumbe1503 c6e0a08
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4aeb6ca
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 8e09624
address review comments
vthumbe1503 207c2eb
have better dtype for fsdp_post_all_gather arguments
vthumbe1503 948ab91
minor comment
vthumbe1503 1f1de13
improve comment
vthumbe1503 acec1b5
fix the error in CI
vthumbe1503 ff20145
minor comment add
vthumbe1503 2593a8a
accidentally removed view function
vthumbe1503 4cde1c3
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 892024e
fix minor bug for h100
vthumbe1503 205be41
minor addition
vthumbe1503 0300a5f
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 adbb31e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fa71d84
implement padding removal/addition for allgather
vthumbe1503 cc41893
fix merge conflict
vthumbe1503 5a40f2b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2d0b2d5
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 0e849ce
address review comments
vthumbe1503 019ae7f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 11f72dd
address review comments
vthumbe1503 d6a8dbb
Merge branch 'fsdp2_issue_fix' of github.com:vthumbe1503/TransformerE…
vthumbe1503 92f932a
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 a72eedc
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 c69bd00
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 8abffa3
Merge branch 'main' into fsdp2_issue_fix
vthumbe1503 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
Some comments aren't visible on the classic Files Changed page.
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.