Commit Graph

6850 Commits

Author SHA1 Message Date
Rohit Gupta 7816e122d0
update chlog after 1.6.1 release (#12802) 2022-04-19 18:26:24 +05:30
Minh Chien Vu af03f0a434
Remove the deprecated LightningDataModule.size, LightningDataModule.dims (#12780) 2022-04-18 21:49:05 +02:00
Danielle Pintz 0b22e51462
Remove deprecated `dataloader_idx` argument from `on_train_batch_start/end` callback hooks (#12769)
* remove dataloader_idx
* fix tests
* Update CHANGELOG.md

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-04-18 18:49:59 +02:00
Jirka Borovec bca78bc25b
Merge pull request #12766 from PyTorchLightning/docs/slack
update slack link
2022-04-18 11:13:22 -04:00
Akihiro Nitta 45f1ffa535
Enable running slow tests on Windows in CI (#12761) 2022-04-18 12:04:35 +00:00
twsl ae3226ced9
Add dataclass support to _extract_batch_size (#12573)
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-15 14:13:33 +02:00
otaj b8d4b81221
Inspect correct function in wrap_init (#12716)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-04-15 13:58:28 +02:00
Adrian Wälchli c0e6fd6a3b
Fix version comparison for python version in `pl.utilities.imports` (#12754) 2022-04-14 22:33:21 +00:00
Akihiro Nitta 1a6979ddf1
Workaround for actions/checkout in conda CI jobs (#12758) 2022-04-14 12:29:29 +02:00
Jirka Borovec 16b9580958
build more dockers & slack fails (#12675)
* build dockers
* add slack
* Apply suggestions from code review

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-13 17:24:08 +02:00
Kaushik B 77a02234e9
Support auto_select_gpus with accelerator and devices api (#12608)
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-04-12 21:28:54 +00:00
puhuk 663216fe3e
Remove pytorch_lightning.core.memory.get_gpu_memory_map (#12644)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-04-12 15:55:56 +00:00
Ankita Sharma 313eee00ee
Remove deprecated `XLAStatsMonitor` (#12688)
Co-authored-by: rohitgr7 <rohitgr1998@gmail.com>
2022-04-12 15:35:43 +00:00
Rohit Gupta 6fcb590cfb
Update deepspeed precision test (#12727) 2022-04-12 09:27:14 +00:00
Kaushik B 3f76c14283
Minor grammatical updates to the Pull Request Template (#12719) 2022-04-12 17:59:53 +09:00
Kaushik B 820b9e1d09
Update Rich github links (#12718) 2022-04-12 03:52:42 +02:00
Adrian Wälchli 4a48710506
Remove support for passing strategy name to plugins (#12700)
* remove more code

* update tests

* remove unsupported test

* remove unsupported test

* remove dead enum values

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

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

* add changelog

* fix pep

* add xfail test

* remove comment

* Remove support for passing strategy name to plugins

* remove unused import

* chlog

* improve comment

* update chlog

* fix merge error

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-12 03:51:48 +02:00
Adrian Wälchli b2fe6bda5b
Remove support for passing strategy strings to accelerator (#12696)
Co-authored-by: Kushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
2022-04-11 22:52:28 +02:00
Ray Schireman 9d343ba137
Remove the deprecated `pl.callbacks.ProgressBar` (#12658)
Co-authored-by: Raymond G Schireman <raymond.schireman@uvm.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-04-11 18:20:30 +00:00
Kaushik B 91c3d8ecb9
Raise `MisconfigurationException` when the accelerator is available but… (#12708) 2022-04-11 23:31:17 +05:30
puhuk a86ef06b3b
Remove deprecated get_memory_profile (#12659) 2022-04-11 18:00:33 +00:00
Jirka Borovec f9b69ce5b0
CI: check docker requires (#12677)
* check docker requires
* ci update
* bagua
* conda
* cuda
2022-04-12 00:29:54 +09:00
Jirka Borovec 3686778b89
fix import failer (#12676) 2022-04-11 15:10:33 +00:00
Adrian Wälchli f315e61029
Remove unused AcceleratorConnector argument (#12686)
* remove unused AcceleratorConnector argument

* update lite
2022-04-11 15:31:23 +01:00
Rohit Gupta f4883d6ead
Run main progress bar independent of val progress bar in `TQDMProgressBar` (#12563)
Co-authored-by: carmocca <carlossmocholi@gmail.com>
2022-04-11 13:38:49 +00:00
otaj cf0e3c6250
Fix flaky test, that is not consistent on some configurations (#12707) 2022-04-11 13:38:26 +00:00
Mauricio Villegas 2f2a516de9
Update LightningCLI tests to reflect changes in jsonargparse 4.6.0 (#12704) 2022-04-11 14:00:48 +02:00
Connor Anderson 1f7b7b12ba
Add docs for Trainer.state (#12663)
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-11 15:17:09 +05:30
Adrian Wälchli 241d5e17e1
fix typing in BaguaStrategy (#12692) 2022-04-11 09:58:00 +02:00
Danielle Pintz cda5dc61ad
Deprecate `num_processes`,`gpus`, `tpu_cores`, and `ipus` from the Trainer constructor (#11040) 2022-04-10 17:10:05 +00:00
Ray Schireman 3f0f277d5b
Remove deprecated `GPUStatsMonitor` callback (#12554)
Co-authored-by: Aki Nitta <nitta@akihironitta.com>
Co-authored-by: Raymond G Schireman <raymond.schireman@uvm.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Kaushik B <45285388+kaushikb11@users.noreply.github.com>
2022-04-10 14:35:51 +00:00
Aniket Maurya 36842828b5
Remove deprecated LayerSummary and ModelSummary (#12593)
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-04-10 08:13:10 +00:00
Akihiro Nitta 568710f2f2
Fix tests failing on a single GPU (#11753)
Co-authored-by: akihiro@grid.ai <akihiro@grid.ai>
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
2022-04-10 04:23:16 +00:00
semaphore-egg c233731b7c
Fix a typo in warning message inside Trainer.reset_train_dataloader (#12645)
Co-authored-by: kd <li_jide_ok@126.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-04-09 11:48:32 +00:00
Carlos Mocholí 2e5b3b333d
Allow self-reviewing to rerun gatekeeper (#12672) 2022-04-09 10:41:37 +00:00
Tomasz Konopka fcea7208d1
remove deprecated `model_size` from LightningModule (#12641) 2022-04-09 12:26:13 +02:00
Danielle Pintz 7dafc2e9fd
Fix inconsistency when user specifies `weights_save_path` (#12372)
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-04-09 00:37:30 +02:00
MohammedAlkhrashi f3e7e91f64
Rename loggers/base.py to loggers/logger.py and changed LightningLoggerBase to Logger (#12014)
* Deprecate: initial LightningLoggerBase to Logger, tests/loggers pass

* Refactor moved LightningLoggerBase to logger.py and removed base.py in loggers

* Recreated base.py for safer backwards compatibility

* Renamed test_base.py to test_logger.py and added test_base.py to test deprecation warning.

* Renamed tests/loggers/test_base.py to tests/loggers/test_logger.py

* Order __all__ list in loggers/__init__ alphabetically

* minor: change deprecation warning of loggers.logger.base

* fixed failing tests and formating

* Update the documentation

* move deprecation test to deprecated_api files

* backward compatibility and deprecations tests for all functionality in loggers/logger.py

* fix PEP8 issues.

* Update CHANGELOG.md

* Skip mypy on renamed file

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Aki Nitta <nitta@akihironitta.com>
Co-authored-by: carmocca <carlossmocholi@gmail.com>
2022-04-08 19:41:46 +00:00
Rohit Gupta a44b5dc0cb
Don't raise a warning when `nn.Module`s are not saved under hparams (#12669) 2022-04-08 19:40:19 +00:00
Max Mametkulov 5fea717027
Remove train_transforms in LightningDataModule (#12662)
Co-authored-by: manjirou <maxim.mametkulov@halbestunde.com>
Co-authored-by: Kushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
2022-04-08 18:20:44 +02:00
Jirka Borovec f6d61cb08a
Update ci_pr-gatekeeper.yml (#12661)
* Update ci_pr-gatekeeper.yml
2022-04-08 18:25:50 +09:00
Rohit Gupta 02dc7751e9
Add `bfloat16` support to `DeepSpeedStrategy` (#12508)
Co-authored-by: carmocca <carlossmocholi@gmail.com>
2022-04-07 22:18:51 +00:00
puhuk 50294a7eb4
Remove deprecated automatic logging of gpu metrics (#12657)
Co-authored-by: carmocca <carlossmocholi@gmail.com>
2022-04-07 17:53:42 +00:00
Tomasz Konopka 3bd48b8535
Clear env before test cases requiring empty env (#12561)
* clearing env vars in a test to allow compatibility with "make test"

* added clear=True to more mock environments in testcases

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-07 15:44:28 +00:00
Jirka Borovec 52e568f697
Revert "ci(Mergify): configuration update (#12599)" (#12642)
This reverts commit 184518c2fa.
2022-04-07 11:02:36 -04:00
Jirka Borovec 7988351d88
add PR Gatekeeper (#12646)
* add PR Gatekeeper

* [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: Carlos Mocholí <carlossmocholi@gmail.com>

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

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

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-04-07 11:02:25 -04:00
pre-commit-ci[bot] 03609bc09c
[pre-commit.ci] pre-commit suggestions (#12613) 2022-04-07 12:52:07 +00:00
Carlos Mocholí 124b529088
Add version header to CLI config files (#12532) 2022-04-07 17:52:51 +05:30
Mauricio Villegas 868c94c137
Clarification on omegaconf's interpolation support in LightningCLI (#12571)
* Clarification on omegaconf's interpolation support in LightningCLI.

* Update docs/source/common/lightning_cli.rst

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-07 12:07:03 +00:00
Adrian Wälchli 6aa8e26a4e
Update `rank_zero_only` decorator for LSF environments (#12587) 2022-04-07 10:46:55 +00:00