Skip to content
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

[Feat] Adding PruningCallback #5618

Merged
merged 34 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c0e9a45
wip
tchaton Jan 22, 2021
33abfce
add pruning callback
tchaton Jan 22, 2021
85f0151
add condition for duplicated weights
tchaton Jan 24, 2021
b02e3a1
update on comments
tchaton Jan 25, 2021
e666240
Merge branch 'release/1.2-dev' into feat/pruning
tchaton Jan 25, 2021
f1e6318
update on comments
tchaton Jan 25, 2021
4ca6649
update on comments
tchaton Jan 25, 2021
36d847d
Merge branch 'release/1.2-dev' into feat/pruning
tchaton Jan 25, 2021
77bbc1e
add more tests
tchaton Jan 25, 2021
d598507
resolve flake8
tchaton Jan 25, 2021
7c0ceb4
resolve on comments
tchaton Jan 25, 2021
cdaa66f
update changelog
tchaton Jan 25, 2021
8a62371
update on comments
tchaton Jan 26, 2021
ac8a3ff
update on comments
tchaton Jan 26, 2021
53592b0
change order
tchaton Jan 26, 2021
376d1c8
Merge branch 'release/1.2-dev' into feat/pruning
tchaton Jan 26, 2021
a9bac3c
remove ddp_spawn skip
tchaton Jan 26, 2021
d2905b3
Merge branch 'feat/pruning' of https://github.com/PyTorchLightning/py…
tchaton Jan 26, 2021
b904846
update
tchaton Jan 26, 2021
626e07f
typo
tchaton Jan 26, 2021
f2db235
Merge branch 'release/1.2-dev' into feat/pruning
tchaton Jan 26, 2021
84d74e7
Merge branch 'release/1.2-dev' into feat/pruning
tchaton Jan 26, 2021
400bfa5
Update pytorch_lightning/callbacks/pruning.py
tchaton Jan 26, 2021
863f71b
Update pytorch_lightning/callbacks/pruning.py
tchaton Jan 26, 2021
3f49586
update on comments
tchaton Jan 26, 2021
181af59
Merge branch 'feat/pruning' of https://github.com/PyTorchLightning/py…
tchaton Jan 26, 2021
976f421
forgot platform
tchaton Jan 26, 2021
81bc83a
Merge branch 'release/1.2-dev' into feat/pruning
mergify[bot] Jan 26, 2021
c81240e
Merge branch 'release/1.2-dev' into feat/pruning
mergify[bot] Jan 26, 2021
b298d0e
update on comments
tchaton Jan 26, 2021
7ad993b
Merge branch 'release/0.2-dev' of https://github.com/PyTorchLightning…
tchaton Jan 26, 2021
b7087e8
remove @rank_zero_only
tchaton Jan 26, 2021
9aaa610
Merge branch 'release/1.2-dev' into feat/pruning
mergify[bot] Jan 26, 2021
9caef2e
Merge branch 'release/1.2-dev' into feat/pruning
mergify[bot] Jan 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- `Recall` and `Precision` metrics (and their functional counterparts `recall` and `precision`) can now be generalized to Recall@K and Precision@K with the use of `top_k` parameter ([#4842](https://github.com/PyTorchLightning/pytorch-lightning/pull/4842))


- Added `ModelPruning` Callback ([#5618](https://github.com/PyTorchLightning/pytorch-lightning/pull/5618))


- Added `PyTorchProfiler` ([#5560](https://github.com/PyTorchLightning/pytorch-lightning/pull/5560))


Expand Down
1 change: 1 addition & 0 deletions docs/source/callbacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Lightning has a few built-in callbacks.
LambdaCallback
LearningRateMonitor
ModelCheckpoint
ModelPruning
ProgressBar
ProgressBarBase

Expand Down
2 changes: 2 additions & 0 deletions pytorch_lightning/callbacks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from pytorch_lightning.callbacks.lr_monitor import LearningRateMonitor
from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint
from pytorch_lightning.callbacks.progress import ProgressBar, ProgressBarBase
from pytorch_lightning.callbacks.pruning import ModelPruning

__all__ = [
'BackboneLambdaFinetuningCallback',
Expand All @@ -33,4 +34,5 @@
'ModelCheckpoint',
'ProgressBar',
'ProgressBarBase',
'ModelPruning',
]
Loading