-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
FSDP with full state dict #7487
Merged
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
89f284d
Fix some test errors
80cfbff
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
536c132
checkpoint consolidation
f172101
Update ddp_spawn.py
shuyingsunshine21 bf70e43
Update test_metric_result_integration.py
shuyingsunshine21 ea74906
Update test_results.py
shuyingsunshine21 a9aae99
Update utils.py
shuyingsunshine21 70fe5da
Update utils.py
shuyingsunshine21 0d23d75
Update test_all_gather_grad.py
shuyingsunshine21 ca6f98b
Update test_all_gather_grad.py
shuyingsunshine21 c5053da
Merge pull request #1 from shuyingsunshine21/shuyingsunshine21-checkp…
shuyingsunshine21 9d4a2b8
Update test_results.py
shuyingsunshine21 7635b4f
Revert "Update test_results.py"
shuyingsunshine21 d64f90c
Revert "Merge pull request #1 from shuyingsunshine21/shuyingsunshine2…
shuyingsunshine21 dcdcd29
Revert "Update test_all_gather_grad.py"
shuyingsunshine21 8651d54
Revert "Update utils.py"
shuyingsunshine21 15f4b9e
Revert "Update utils.py"
shuyingsunshine21 250d0aa
Revert "Update test_results.py"
shuyingsunshine21 6c095b2
Revert "Update test_metric_result_integration.py"
shuyingsunshine21 8222dc9
Revert "Update ddp_spawn.py"
shuyingsunshine21 3a9fde9
Revert "checkpoint consolidation"
shuyingsunshine21 7a369f4
Revert "Revert "checkpoint consolidation""
shuyingsunshine21 b4a0b9e
Revert "Revert "Revert "checkpoint consolidation"""
shuyingsunshine21 5cf1db1
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
0ce7e05
Revert "Revert "Update ddp_spawn.py""
shuyingsunshine21 fe9736d
Revert "Revert "Update test_metric_result_integration.py""
shuyingsunshine21 c314ef6
Revert "Revert "Update test_results.py""
shuyingsunshine21 c3feda0
Revert "Revert "Update utils.py""
shuyingsunshine21 c759477
Revert "Revert "Update test_all_gather_grad.py""
shuyingsunshine21 7a8e540
Merge branch 'master' of https://github.com/shuyingsunshine21/pytorch…
ab8b849
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
4e67db2
modify distributed environment to make test pass
67b6188
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
179d47e
rebase
f9afa07
rebase to upstream master
b461e44
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
e1bbc4d
fix version for ddp plugin test
8270d0d
fix
803d5dd
fix
ce1a19b
changelog
c6a13be
Update CHANGELOG.md
carmocca e274758
Merge pull request #3 from shuyingsunshine21/ddp_plugin_test_fix
shuyingsunshine21 f337156
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
35bb931
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
c938a9c
rebase
ad93cde
rebase
b5d989d
fsdp with full state dict
3b86dd2
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
d7c33ab
fix missing import
1537637
modify unitest
c128e03
fix
18aeb9e
fix
8adbe0c
fix typo
70f8bf0
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
7fb7c60
modify test and add changelog
362d1a8
rebase
310b0ee
fix
e7bef62
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 77bd7c8
limit max_epoch to 1 for testing
f64a54c
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
a5ee90c
rebase
af31f6a
test
a044f58
fix
78897a2
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
5fac05c
update
8fb38dc
testing remove special for multi gpu
53be8f4
assert gpu
2fdab94
add assertion for gpu
ffb985d
fix
3189f4c
Re-enable special test, use ModelCheckpoint
c33fbcb
Fix paths
0067aeb
Fix path passing
320c35d
test
5ea37a5
test
9e599c2
fix test
6c96625
fix
32cc552
pre-commit format
25329fe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f43a36f
Merge branch 'fsdp' of https://github.com/shuyingsunshine21/pytorch-l…
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
add assertion for gpu
- Loading branch information
There are no files selected for viewing
This file contains 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 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
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.
this is needed when we load from ckpt, as now we checkpoint the full state, to load, we need the unwrapped model first, and load. This allows us to configure shard (i.e. wrap) afterwards.
Added unittest for making sure that for different stages start (on_x_start),
_assert_layer_fsdp_instance
passes.