-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add PredictLoop #5752
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
Merged
Merged
Add PredictLoop #5752
Changes from all commits
Commits
Show all changes
387 commits
Select commit
Hold shift + click to select a range
3792b72
integrate distrib_type
awaelchli ef85b81
sync changes
awaelchli 9d9a940
sync
awaelchli f017a39
Merge branch 'release/1.2-dev' into accelerator-refactor-sharted-4
awaelchli a190a56
fixes
awaelchli 73bb607
add forgotten generators
awaelchli c8c74f3
Merge branch 'release/1.2-dev' into accelerator-refactor-sharted-4
awaelchli ae71997
add missing logic
awaelchli d89847b
Merge branch 'release/1.2-dev' into accelerator-refactor-sharted-4
awaelchli 0e686c3
update
awaelchli d6a43ea
import
awaelchli ceb8f75
missed imports
awaelchli fbb7c20
import fixes
awaelchli b610999
isort
awaelchli 9b79924
mv f
awaelchli 9afe54d
changelog
awaelchli 3b63e82
Merge branch 'release/1.2-dev' into ref/update-plugins
awaelchli ca8cb68
format
awaelchli 0633745
move helper to parallel plugin
awaelchli a622e0b
d
awaelchli 18c682f
Merge branch 'ref/update-plugins' into accelerator-refactor-sharted-4
awaelchli f275803
add world size
awaelchli 4ae008b
clean up
awaelchli 3b3918b
Merge branch 'release/1.2-dev' into accelerator-refactor-sharted-4
awaelchli d4c6308
duplicate
awaelchli 7eef4a0
Merge branch 'release/1.2-dev' into accelerator-refactor-sharted-4
awaelchli 9949164
activate ddp_sharded and tpu
awaelchli 6d47357
set nvidia flags
awaelchli a6864ec
remove unused colab var
awaelchli b4b9724
use_tpu <-> on_tpu attrs
awaelchli 81001e3
make some ddp_cpu and clusterplugin tests pass
awaelchli cea000d
Ref/accelerator connector (#5742)
justusschock 933e2a1
plugins
awaelchli a97afb4
add predict_loop
tchaton ad451d8
manual optimization
justusschock c956c54
clean predictloop
tchaton a30a3cf
update optimizer routing
justusschock 0ecb3f7
add predict loop on new accelerator
tchaton bbb8416
resolve a bug
tchaton a05b291
add rank to torchelastic
justusschock 53efe55
add predict_loop
tchaton 1c9d57e
add predict loop on new accelerator
tchaton 154dae2
resolve a bug
tchaton 4388e73
fix memory mixed precision
awaelchli 872af55
Merge branch 'accelerator-refactor-sharded' into introduce_predict_lo…
tchaton 8df9893
update
tchaton be9d029
setstate on trainer for pickling in ddp spawn
awaelchli 8369fb2
add predict_loop
tchaton 4c908f7
clean predictloop
tchaton c5b942f
add predict loop on new accelerator
tchaton 421279d
resolve a bug
tchaton 05e60ed
add predict_loop
tchaton 2226640
add predict loop on new accelerator
tchaton 4a29bb2
resolve a bug
tchaton 8d63beb
add predict_loop
tchaton 2a24e41
add predict loop on new accelerator
tchaton 976bca9
resolve a bug
tchaton 9dc38b3
add predict_loop
tchaton cf685d9
add predict loop on new accelerator
tchaton 0c438f5
resolve a bug
tchaton ccf499c
add predict_loop
tchaton 3fb57f3
clean predictloop
tchaton 7e527f4
add predict loop on new accelerator
tchaton 3575436
resolve a bug
tchaton c03e5bb
add predict_loop
tchaton a2f9f3c
add predict loop on new accelerator
tchaton 4d24eff
resolve a bug
tchaton b155aab
resolve tests
tchaton a90a160
add predict method
awaelchli 767bee0
add back commented accelerator code
awaelchli f771a7f
adapt test for sync_batch_norm to new plugin
awaelchli 1a3b04e
fix deprecated tests
awaelchli a1f4938
fix ddp cpu choice when no num_processes are given
awaelchli 38bc8b7
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
awaelchli ce6b6de
yapf format
awaelchli 3b7c20b
skip a memory test that cannot pass anymore
awaelchli 609c848
remove sanetize
tchaton 9a26178
rename train to run_train
tchaton f21780a
remove useless hooks
tchaton 52b8db1
add misconfigurationException
tchaton b00c77c
remove wrong naming
tchaton 864780f
resolve some legacy
tchaton ff7c50c
Merge branch 'accelerator-refactor-sharded' into introduce_predict_lo…
tchaton 64e61a5
udpate docstring
tchaton 9b8eed0
Merge branch 'introduce_predict_loop_1' of https://github.com/PyTorch…
tchaton f538c75
fix pickle error in spawn plugin
awaelchli b44d82e
x
awaelchli 3820e77
avoid
awaelchli 08ae327
x
awaelchli 7d0e094
avoid tons of warnings from importing deprecated modules
awaelchli 1028011
fix cyclic import in docs build
awaelchli 11bd0d6
add support for sharded
justusschock 6bf0b60
update typing
justusschock f94082b
add sharded and sharded_spawn to distributed types
justusschock 7939b99
make unwrap model default
justusschock 9131ffb
refactor LightningShardedDataParallel similar to LightningDistributed…
justusschock ed7425c
update sharded spawn to reflect changes
justusschock 209a164
update sharded to reflect changes
justusschock 837a070
Merge 1.1.5 changes
awaelchli 136b321
fix merge
awaelchli ffcb535
fix merge
awaelchli 1edfa73
yapf isort
awaelchli a689b81
merge 1.1.6
awaelchli 330b14c
fix merge
awaelchli ef258d5
yapf isort
awaelchli c85000d
fix indentation in test
awaelchli 5f3a35e
copy over reinit scheduler implementation from dev1.2
awaelchli fa1c9b7
fix apex tracking calls with dev_debugger
awaelchli e330a11
reduce diff to dev1.2, clean up
awaelchli 994ac82
fix trainer config test when gpus>0 and num_processes >0 and ddp_cpu
awaelchli 1a78601
sort plugin tests legacy/new
awaelchli 4b76448
fix error handling for amp on cpu
awaelchli bfd54ab
Merge branch 'release/1.2-dev' into patch117
awaelchli 0574d22
fix merge
awaelchli 6ef6637
Merge branch 'patch117' into accelerator-refactor-sharded
awaelchli 9feda39
[Feat] Resolve manual_backward (#5837)
tchaton 7bb9d9f
fix tests/accelerator tests on cpu
awaelchli 13ae1ff
[BugFix] Resolve manual optimization (#5852)
tchaton fc3b4db
Merge formatting changes from 1.2 branch
awaelchli b437642
Remove copy trainer parameters to happen earlier within the loop and …
SeanNaren 8c6aa83
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
beb980a
resovle a bug
7a0fd27
Accelerator refactor sharded rpc (#5854)
justusschock 0d0ced5
resolve bug
1f3ab76
fix assert in rpc test
awaelchli f1b1121
resolve a test
cd31fa1
fix docs compilation
awaelchli f48793e
accelerator refactor - fix for sharded parity test (#5866)
awaelchli 81ff6ea
Remove DDP2 as this does not apply
20deb46
Add missing pre optimizer hook to ensure lambda closure is called
be4d1a2
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
0ac5fc4
fix apex docstring
awaelchli 07fdd95
[accelerator][BugFix] Resolve some test for 1 gpu (#5863)
tchaton 384b791
yapf isort
awaelchli b1a84b8
resolve flake8
tchaton a157a29
fix apex doctests
awaelchli 08cfc65
fix apex doctests 2
awaelchli 7888bfd
resolve docs
tchaton b5b4243
update drone
tchaton 93ceb4c
Merge branch 'accelerator-refactor-sharded' of https://github.com/PyT…
tchaton d001bcf
clean env
ad47f47
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
tchaton 60bfb1a
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
tchaton 0608a41
update
f0120b5
update
bf8874e
Merge branch 'accelerator-refactor-sharded' of https://github.com/PyT…
baf7d7f
update
tchaton 9360aad
update
tchaton b814cdc
merge
justusschock 0d3ea37
Merge branch 'accelerator-refactor-sharded' of github.com:PytorchLigh…
justusschock f1f90c2
Fix RPC related tests, clean out old API, update for new accelerator …
SeanNaren 6d05881
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
justusschock d86fdff
Update test_remove_1-4.py
justusschock 5fbc1cf
Expose properties for tpu cores/gpus/num_gpus
aa9aea0
Add root GPU property
c35baf1
Move properties to properties.py
a9c6e21
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
awaelchli 8f3947b
move tests that were previously in drone
awaelchli 50ecc4a
Fix root GPU property (#5908)
SeanNaren c7d0075
fix best model path transfer when no checkpoint callback available
awaelchli 3f61d15
Merge remote-tracking branch 'original/accelerator-refactor-sharded' …
awaelchli 061ea46
Fix setup hook order [wip] (#5858)
SeanNaren 1fe1f91
rename ddp sequential -> rpc sequential for special test
awaelchli 3683f5a
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
awaelchli 1f01b81
revert
awaelchli 135c236
fix stupid merge problem
awaelchli 222653d
Use property in connector for sampler (#5913)
SeanNaren f4311cd
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
awaelchli b210dee
merge the import conflicts
awaelchli 236009e
fix spawning of processes in slurm
awaelchli aace276
[wip] Fix some bugs for TPU [skip ci] (#5878)
tchaton 68273f5
resolve some tests
ca77fa4
update
c35edfd
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
justusschock 8cacef7
fix imports
justusschock f7bbe48
update
30d9800
Merge branch 'accelerator-refactor-sharded' of https://github.com/PyT…
25f7f13
resolve flake8
tchaton fa28c41
update azure pipeline
tchaton 51c27e6
Merge branch 'release/1.2-dev' into accelerator-refactor-sharded
tchaton b888d68
skip a sharded test on cpu that requires a gpu
awaelchli 01ca4cd
resolve tpus
181d143
Merge branch 'master' into accelerator-refactor-sharded
justusschock 946a1e9
resolve bug
2ad1a6e
Merge branch 'accelerator-refactor-sharded' of https://github.com/PyT…
6e0aff0
resolve flake8
tchaton a931791
update
319d034
Merge branch 'accelerator-refactor-sharded' of https://github.com/PyT…
4117bec
updat utils
8d000f7
Merge branch 'master' into accelerator-refactor-sharded
tchaton 0b1ba67
revert permission change on files
awaelchli cc385b4
suggestions from carlos
awaelchli e9eb318
remove unrelated formatting changes
awaelchli 7c08400
remove incomplete comment
awaelchli 7c3d184
Update pytorch_lightning/accelerators/__init__.py
awaelchli 503426e
remove unrelated formatting change
awaelchli c0fbf7a
add types
awaelchli 23a9a10
warn 1.7 ddp manual backward only if ddp kwarg unset
awaelchli a70ee4a
yapf + isort
awaelchli b0621c4
pep8 unused imports
awaelchli 18bfe70
Merge branch 'master' into accelerator-refactor-sharded
awaelchli 7b0515d
fix cyclic import in docs
awaelchli d966057
Apply suggestions from code review
Borda f636d9d
typer in accelerator.py
Borda 5579ea7
typo
tchaton dea37de
Merge branch 'accelerator-refactor-sharded' into introduce_predict_lo…
tchaton 57fe3dd
resolve flake8
tchaton ae0587f
update code
tchaton 4583b5f
update
tchaton 0db6c67
Update pytorch_lightning/trainer/predict_loop.py
tchaton 1264dbd
Update pytorch_lightning/trainer/predict_loop.py
tchaton 0f3c33e
Merge branch 'master' into introduce_predict_loop_1
awaelchli 57eb883
fix merge
awaelchli 990b307
fix merge
awaelchli 24dcbea
reset legacy accelerator
awaelchli 4a7953e
add missing rename dispatch
awaelchli cc35b09
rename post traning
awaelchli 483b61e
Merge branch 'master' into introduce_predict_loop_1
tchaton 5618318
Merge branch 'master' into introduce_predict_loop_1
tchaton 5b18bfb
Merge branch 'master' of https://github.com/PyTorchLightning/pytorch-…
tchaton deac085
Merge branch 'predict_loop_2' of https://github.com/PyTorchLightning/…
tchaton cd9fffc
update code
tchaton 2de8fce
Merge branch 'predict_loop_2' of https://github.com/PyTorchLightning/…
tchaton 6cca568
resolved comments
tchaton 10eda2f
Merge branch 'predict_loop_2' into introduce_predict_loop_1
tchaton f4977aa
typo
tchaton 52038c1
Merge branch 'master' into introduce_predict_loop_1
tchaton a77c4e8
typo
tchaton cdfa212
Merge branch 'introduce_predict_loop_1' of https://github.com/PyTorch…
tchaton b4a3884
Merge branch 'master' into introduce_predict_loop_1
tchaton 00f9b4e
Merge branch 'master' into introduce_predict_loop_1
tchaton 5c3a87d
add flow description
tchaton 33654be
Merge branch 'introduce_predict_loop_1' of https://github.com/PyTorch…
tchaton 73bfc4c
Merge branch 'master' into introduce_predict_loop_1
tchaton 3ee31e1
resolve comments
tchaton 3984dbc
Merge branch 'master' into introduce_predict_loop_1
tchaton 25a7e6f
update on comments
tchaton 35f90b2
update flow
tchaton b477665
add backticks
tchaton 8a3533c
Merge branch 'master' into introduce_predict_loop_1
tchaton 9210535
resolve tpu
tchaton 1f9c9e5
Merge branch 'master' into introduce_predict_loop_1
tchaton e870159
Merge branch 'master' into introduce_predict_loop_1
tchaton 5e06d12
Merge branch 'master' into introduce_predict_loop_1
mergify[bot] 5bcff93
Merge branch 'master' into introduce_predict_loop_1
mergify[bot] 7c331c0
Merge branch 'master' into introduce_predict_loop_1
mergify[bot] 8cc0bf3
Merge branch 'master' into introduce_predict_loop_1
mergify[bot] 4a3e277
Merge branch 'master' into introduce_predict_loop_1
mergify[bot] 0cba060
Merge branch 'master' into introduce_predict_loop_1
mergify[bot] fd08085
Merge branch 'master' into introduce_predict_loop_1
mergify[bot] 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
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.