-
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
[bugfix] Reduce memory leaks #8490
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
aa89cc9
reduce memory leak
tchaton f57e21d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 341163b
update changelog
tchaton 63eeaf0
Merge branch 'reduce_memory_leak' of https://github.com/PyTorchLightn…
tchaton f9ca9dc
Apply suggestions from code review
Borda 1804975
resolve flake8
tchaton 7a7b95f
Merge branch 'reduce_memory_leak' of https://github.com/PyTorchLightn…
tchaton 7f06053
update on comments
tchaton b48e34d
resolve bug
tchaton eef89bc
update
tchaton 13b335d
Undo whitespace changes
carmocca 7fca3d8
remove bug
tchaton 03e8faa
Merge branch 'reduce_memory_leak' of https://github.com/PyTorchLightn…
tchaton 3fd83e3
resolve flake8
tchaton 1d8b484
revert change
tchaton 38ff815
update on comments
tchaton ef9a4cd
delete the ddp wrapper as it hold memory
tchaton 9acb0c1
Merge branch 'master' into reduce_memory_leak
tchaton 9ab40de
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 000138e
resolve flake8
tchaton 4e439f4
Merge branch 'reduce_memory_leak' of https://github.com/PyTorchLightn…
tchaton 559436f
update on comments
tchaton 8c9145d
update changelog
tchaton 7c015cb
resolve test
tchaton 70affbb
Update CHANGELOG
carmocca 26bb10f
Refactor teardown
carmocca 231b02b
Fix comment
carmocca 0d1c365
Do it for non-gpu too
carmocca 9077898
remove ref when the model is not a lightning_module
tchaton 2ba1e9e
Fix import error
carmocca a8018df
Merge branch 'master' into reduce_memory_leak
tchaton 666383c
move down
tchaton f16b8de
resolve bug
tchaton a915396
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8c84391
resolve assignement
tchaton 2d3223a
Merge branch 'reduce_memory_leak' of https://github.com/PyTorchLightn…
tchaton 47c1ad3
update
tchaton 9c347a2
move above
tchaton b26f98b
Fix device calls to support tpu training
kaushikb11 89a7033
Merge branch 'reduce_memory_leak' of https://github.com/PyTorchLightn…
kaushikb11 2719d03
Updat todo
kaushikb11 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 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
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
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
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
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.
@kaushikb11 here you are calling
self.root_device
anyway, despite the comment above?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.
Yes, not sure to understand the reasoning too.