Commit Graph

2699 Commits

Author SHA1 Message Date
Jirka Borovec ab59f308b1
Future 4/n: test & legacy in test/ folder (#13295)
* move: legacy >> test/

* move: tests >> test/

* rename unittests

* update CI

* tests4pl

* tests_pytorch

* proxi

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* ci

* link

* cli

* standalone

* fixing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* .

* Apply suggestions from code review

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* alone

* test -> tests

* Standalone fixes

* ci

* Update

* More fixes

* Fix coverage

* Fix mypy

* mypy

* Empty-Commit

* Fix

* mypy just for pl

* Fix standalone

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-06-15 18:10:49 -04:00
Carlos Mocholí b551921a9f
Remove unused test argument (#13296) 2022-06-15 22:51:14 +02:00
Jirka Borovec 9cc714cdd1
Future 2/n: stand-alone examples (#13294)
* move: pl_examples >> src/

* convert pl_examples package to plain examples

* update CI for examples

* ci

* missing

* install
2022-06-15 08:53:51 -04:00
Carlos Mocholí 0cf9d73d28
Drop PyTorch 1.8 support (#13155)
* Drop PyTorch 1.8 support

* Missed update

* Skip profiler test until supported

* Upgrade ipu dockerfile pytorch version

* Update XLA version
2022-06-14 20:46:44 -04:00
Carlos Mocholí 981a6da121
Remove test's proxy boring classes import (#13297)
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2022-06-15 01:53:54 +02:00
Carlos Mocholí 7938293cd9 Add deprecation path for the old Loop module (#13043) 2022-06-02 21:23:14 +02:00
Akihiro Nitta 3c5a8a833e
Decouple pulling legacy checkpoints from existing GHA workflows and docker files (#13185)
* Add pull-legacy-checkpoints action
* Replace pulls with the new action and script
* Simplify
2022-06-02 15:39:14 +02:00
Mauricio Villegas 79de6a95fb
LightningCLI natively support callback list append (#13129)
* LightningCLI natively support callback list append.

* Update jsonargparse version

* Handle case where callbacks is not a list.

* Fix PEP8 issue.

* Handle mypy false positive

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-06-02 10:00:02 +09:00
ananthsub c1f05021ff
Fix initialization of optimizers in DDP Strategy (#11952)
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-06-01 10:25:05 +00:00
Rohit Gupta 9445a84a12
Fix epoch logging on train epoch end (#13025)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-06-01 09:05:11 +00:00
Mauricio Villegas 18cdfab83b
Register torch's unresolvable import paths in cli module (#13153)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-06-01 11:00:57 +02:00
Toshiki Ishikawa c16dcb7266
Remove the deprecated `logger.close` (#13149)
* refactor:removed the close instance from the LoggerCollection class

* Also logger.close()

* Update CHANGELOG

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-06-01 00:22:56 +00:00
Akihiro Nitta a21e6c3f33
Specify `Trainer(benchmark=False)` in parity benchmarks (#13182)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-31 21:23:21 +00:00
Nikhil Shenoy f4f14bb5d8
Removed `weights_summary` argument from Trainer (#13070)
Co-authored-by: rohitgr7 <rohitgr1998@gmail.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-31 20:31:39 +00:00
Carlos Mocholí 5bdb936eca
[CLI] Respect existing seed by default (#13110) 2022-05-31 22:31:25 +02:00
Rohit Gupta ba438828e5
Fix logging's step values when multiple dataloaders are used during evaluation (#12184)
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-31 22:00:29 +02:00
Masahiro Wada 90acf909fb
Fix not running test codes (#13089)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-31 19:27:46 +00:00
Carlos Mocholí 01ebb1f2f5
Avoid changing the current `cudnn.benchmark` value (#13154) 2022-05-31 19:22:19 +00:00
Carlos Mocholí 9945d028d3 Fix standalone test collection (#13177) 2022-05-31 20:21:14 +02:00
Carlos Mocholí 50326e9a65 xfail flaky quantization test blocking CI (#13177) 2022-05-31 20:21:14 +02:00
Nikhil Shenoy dd47518322
Removed `flush_logs_every_n_steps` argument from Trainer (#13074)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-25 12:47:15 +02:00
Justus Schock fbd887df9d
Rename min_gpus to min_cuda_gpus (#13133)
* rename min_gpus to min_cuda_gpus
2022-05-24 12:54:05 +00:00
rohitgr7 eb21135b2a Add deprecation path for the old Callback module (#13031) 2022-05-19 13:25:25 +02:00
shantam-8 ddff6c1c7e Rename callbacks/base.py to callbacks/callback.py (#13031) 2022-05-19 13:25:25 +02:00
Carlos Mocholí 42f27c2a34
Update docs about `reduce_fx` (#13101) 2022-05-19 07:24:09 -04:00
Jerome Anand 74941bb790
Enable all ddp params for hpu parallel strategy (#13067)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-19 12:41:16 +05:30
rohitgr7 5023752bd0 Add deprecation path for the old LightningModule module (#12740) 2022-05-18 08:03:55 +05:30
rohitgr7 a68fe66705 Update core/lightning.py to core/module.py (#12740) 2022-05-18 08:03:55 +05:30
Carlos Mocholí 23de1ca90a
Fix CLI test interaction (#13037) 2022-05-16 22:29:18 +00:00
Nikhil Shenoy 830da2c4a4
Removed `process_position` argument from Trainer Class (#13071) 2022-05-16 13:05:50 +02:00
Jirka Borovec fab2ff35ad
CI: Azure - multiple configs (#12984)
* CI: Azure - multiple configs
* names
* benchmark
* Apply suggestions from code review

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-14 01:59:03 +00:00
Akihiro Nitta 03039a236e
Fix `materialize_module` recursively setting its child module (#12870)
* Don't set materialized child to child's child
* Update CHANGELOG

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-13 18:05:38 +00:00
otaj db7b0361a5
Fix number of references to LightningModule (#12897)
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-13 11:23:25 -04:00
Mauricio Villegas 8713e0ea61
Improved the jsonargparse[signatures] availability variable (#13035)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-12 14:57:19 +00:00
Geo Jolly 5ab9d53fc1
Remove the deprecated `on_{train,val,test,predict}_dataloader` hooks (#13033)
Co-authored-by: rohitgr7 <rohitgr1998@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-11 23:02:39 -04:00
Adrian Wälchli d24361733c
Provide access to unwrapped model in Lite (#12597)
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-05-11 18:28:08 +00:00
Rohit Gupta 4011f379b8
Fix double precision during evaluation (#12983) 2022-05-11 17:43:19 +00:00
Rohit Gupta 9881bf2a2c
Avoid redundant callback restore warning while tuning (#13026) 2022-05-11 16:11:04 +02:00
Nikhil Shenoy b7959e3f51
Remove deprecated `checkpoint_callback` flag in Trainer (#13027)
* Removed lines pertinent to checkpoint_callback

* removed checkpoint callback flag

* Updated Change Log

* Removed deprecation test for checkpoint_callback argument

* updated line in the simple_classif_training.py

* Updated docs

* updated simple_classif_training.py removing enable_checkpointing
2022-05-11 08:01:00 -04:00
Eric Wiener 3f78c4ca7a
Track CPU stats with DeviceStatsMonitor (#11795)
Co-authored-by: ananthsub <ananth.subramaniam@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kaushik B <kaushikbokka@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-10 10:57:38 +00:00
Rohit Gupta c02dc8585c
Profile `LightningDataModule` hooks (#12971)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-06 12:23:36 +00:00
Akash Kwatra c5e1002fe4
Add profiling to dataloader `next()` (#12124)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-06 11:48:12 +02:00
Jirka Borovec 7ce948edb6
Unpin CUDA docker image for GPU CI (#12373)
* unpin CUDA docker image for GPU CI
* Apply suggestions from code review

Co-authored-by: Aki Nitta <nitta@akihironitta.com>
Co-authored-by: Akihiro Nitta <akihiro@pytorchlightning.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-06 02:56:57 +00:00
Sean Naren 1a502c061c
[1/2] Collaborative Strategy (#12842) 2022-05-05 16:06:26 +00:00
sisilmehta2000 d337374da7
[FSDP] Adding Native FSDP Strategy (#12447) 2022-05-05 12:48:29 +00:00
otaj e2ea9f045f
Add support for reloading the last checkpoint saved by passing `ckpt_path="last"` (#12816)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-05 08:32:58 +00:00
Rohit Gupta de7c103918
Add a method signature check for `setup` (#12960)
Co-authored-by: otaj <ota@grid.ai>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-04 18:20:59 +00:00
Max Mametkulov 1e96848596
Raise an exception when using DeepSpeed with an invalid accelerator (#12699)
Co-authored-by: manjirou <maxim.mametkulov@halbestunde.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-05-04 18:16:41 +00:00
Abhisek Maiti 2ffc0deaf5
Support `predict_dataset` in `LightningDataModule.from_datasets` (#12942)
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-05-04 13:12:22 +00:00
Rohit Gupta 9bfbd9ea80
Fix zero division error for empty dataloaders (#12885)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-05-03 20:40:30 +00:00