Commit Graph

7068 Commits

Author SHA1 Message Date
Toshiki Ishikawa 5b511da4ad
Call `on_predict_model_eval` hook through method (#12741)
Co-authored-by: carmocca <carlossmocholi@gmail.com>
2022-04-22 11:27:12 +00:00
Adrian Wälchli 63ad92efda
Fix formatting issue in Trainer docs (#12777) 2022-04-22 11:45:20 +01:00
Ethan Furman ffdcbdd056
Improve LigtningEnum, etc. (#12750) 2022-04-22 10:40:11 +00:00
Ray Schireman 9b2b1bb494
Remove deprecated `LightningDataModule.val_transforms` (#12763)
* remove val_transform from datamodule.py

* remove val_transforms from tests

* update docs

* update changelog

* remove unused imports

Co-authored-by: Raymond G Schireman <raymond.schireman@uvm.edu>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-04-22 01:24:42 +00:00
Akihiro Nitta ace6a5827b
Update building docker images (#12837)
Co-authored-by: Akihiro Nitta <akihiro@pytorchlightning.ai>
2022-04-21 22:10:42 +00:00
Henry Lau b155a6323f
Fix support for `ModelCheckpoint` monitors with dots (#12783)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-04-21 22:59:32 +02:00
Ray Schireman 54a2b5ceeb
Remove the deprecated `LightningDataModule.test_transforms` (#12773)
Co-authored-by: Raymond G Schireman <raymond.schireman@uvm.edu>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-21 16:40:15 +00:00
talregev c482ae340a
[Docs] Example for auto_insert_metric_name (#12649)
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-04-21 12:38:01 +00:00
William Falcon 9d2773ff50
docs refactor 4/n (fix broken links) (#12825)
* docs refactor 4/n (fix broken links)

* docs refactor 4/n (fix broken links)

* docs refactor 4/n (fix broken links)
2022-04-21 08:03:21 -04:00
Rohit Gupta 4df546a93e
Enable inference mode for evaluation (#12715)
* Enable inference mode for evaluation
* better name
* Update CHANGELOG.md

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-21 11:37:41 +00:00
Nik a758d900ec
Support `val_check_interval` values higher than number of training batches (#11993)
Co-authored-by: rohitgr7 <rohitgr1998@gmail.com>
2022-04-21 09:35:53 +00:00
otaj f300b60f47
Horovod tests do not make sense for 1 gpu (#12710)
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
2022-04-21 08:49:40 +00:00
Adrian Wälchli 1233554e73
Make standalone tests less verbose (#12684)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-04-20 20:57:40 +02:00
Kushashwa Ravi Shrimali 0973cc578e
Fix import error when `distributed` module not available (#12794)
* add distributed.is_available checks to avoid errors when not available

* Update CHANGELOG

* Update pytorch_lightning/strategies/ddp.py

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

* Update pytorch_lightning/strategies/ddp.py

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-04-20 17:28:39 +00:00
Kushashwa Ravi Shrimali 0eefdd4d48
Better error mesage and type checking for `gpus` arg and `devices` arg in `Trainer` (#12530)
Co-authored-by: Kaushik B <45285388+kaushikb11@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-04-20 17:19:41 +00:00
Rohit Gupta dc7a7faa65
general docs improvements (#12747) 2022-04-20 14:19:45 +00:00
otaj 4930561556
Add Changelog entry for #12716 (#12813) 2022-04-20 18:37:57 +09:00
William Falcon 908e05880d
docs refactor 3/n (#12795)
* updated titles + css

* updated titles + css

* levels structure

* levels structure

* levels structure

* adding level indexes

* finished intro guide layout

* finished intro guide layout

* general titles

* general titles

* added movie

* added movie

* finished 15 mins

* levels

* added core levels

* added core levels

* fixed api reference on the left

* gpu guides

* gpu guides

* gpu guides

* gpu guides

* precision

* hpu guide

* added ipu

* added ipu

* added ipu

* added ckpt docs

* finished basic logging

* intermediate

* intermediate

* intermediate

* fixed

* fixed margins

* fixed margins

* fixed margins

* fixed margins

* fixed margins

* fixed margins

* fixed margins

* fixed margins

* fixed margins

* added logger stuff

* added logger stuff

* added logger stuff

* added logger stuff

* added logger stuff

* ic

* added inconsolata

* added inconsolata

* added inconsolata

* added inconsolata

* added inconsolata

* added inconsolata

* added inconsolata

* updated menu

* added basic cloud docs

* added basic cloud docs

* added basic cloud docs

* added basic cloud docs

* ic

* ic

* ic

* ic

* ic

* ic

* ic

* ic

* ic

* ic

* ic

* ic

* added demos folder

* added demos folder

* added demos folder

* added demos folder

* added demos folder

* added demos folder

* twocolumns directive

* twocols

* twocols

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* registry

* cleaning up

* cleaning up

* cleaning up

* cleaning up

* cleaning up

* cleaning up

* cleaning up

* cleaning up

* cleaning up

* updated titles + css

* levels structure

* adding level indexes

* finished intro guide layout

* general titles

* added movie

* finished 15 mins

* levels

* added core levels

* fixed api reference on the left

* gpu guides

* precision

* hpu guide

* added ipu

* added ckpt docs

* finished basic logging

* intermediate

* fixed margins

* added logger stuff

* ic

* added inconsolata

* updated menu

* added basic cloud docs

* ic

* added demos folder

* twocolumns directive

* registry

* cleaning up

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

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

* deconflict

* deconflict

* deconflict

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

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

* Add testsetup sections wherever needed; fix errors in building docs

* pre-commit fixes

* Fix duplicate label

* minor nit with pre-commit

* Fix labels

* More changes...

* require

* debug & cli

* prec & model & visu

* fix references

* fix references

* fix refs

* fix refs - model_parallel

* fix references

* prune testsetup with global

* refs in index

* Fix duplicate label errors

* Update orphan docs

* Update orphan docs

* Update orphan docs

* fix links

* Fix genindex and search index

* fix refs

* fix refs

* Fix index rst related issues

* fix refs

* inc to rst

* Fix links ref

* fix more references

* fix refs

* deconflict

* errors

* errors

* errors

* fix refs

* fix refs

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

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

* fix warnings

* Fix LightningCLI errors

* Fix LightningCLI errors

* Fix LightningCLI errors

* Fix LightningCLI errors

* fix doc build

* Duplicate Label fix (docs) (#12800)

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* ignore typing in demo folder

* Ignore demos for mypy

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: rohitgr7 <rohitgr1998@gmail.com>
Co-authored-by: Kaushik B <kaushikbokka@gmail.com>
Co-authored-by: otaj <ota@grid.ai>
2022-04-19 14:15:47 -04:00
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