Akash Kwatra
a2d8c4f6a6
Create loggers property for Trainer and LightningModule ( #11683 )
...
Co-authored-by: ananthsub <ananth.subramaniam@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Danielle Pintz <38207072+daniellepintz@users.noreply.github.com>
2022-02-09 23:39:41 +01:00
Carlos Mocholí
8822117200
Return the output of the optimizer step ( #11711 )
...
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-02-09 09:37:13 +00:00
jjenniferdai
1203094a20
Introduce `Stateful` DataModule ( #11637 )
2022-02-07 21:13:24 +01:00
Rohit Gupta
581bf7f2f2
Deprecate `on_epoch_start/on_epoch_end` hook ( #11578 )
2022-02-07 14:15:27 +00:00
ananthsub
a64438c897
Centralize rank_zero_only utilities into their own module ( #11747 )
...
* Centralize rank_zero_only utilities into their own module
Fixes #11746
* PossibleUserWarning
* Update test_warnings.py
* update imports
* more imports
* Update CHANGELOG.md
* Update mlflow.py
* Update cli.py
* Update api_references.rst
* Update meta.py
* add deprecation tests
* debug standalone
* fix standalone tests
* Update CHANGELOG.md
2022-02-07 08:09:55 +00:00
Rohit Gupta
4d72110b51
Deprecate `on_batch_start/on_batch_end` callback hooks ( #11577 )
2022-02-03 19:51:56 +00:00
Sebastian Raschka
0e17f16438
Clarify what the default values for log are based on hooks ( #11611 )
2022-02-03 03:55:42 +00:00
Bhadresh Savani
0ea48416cd
Removed subsection in `LightningDataModule` ( #11675 )
2022-02-03 02:53:43 +00:00
jjenniferdai
ec1379da2c
Rename `_SupportsStateDict` --> `_Stateful` Protocol ( #11469 )
2022-02-02 23:45:59 +01:00
Aki Nitta
fbc1f9f1d9
Rename `Strategy.lr_schedulers` to `Strategy.lr_scheduler_configs` ( #11549 )
2022-02-02 22:10:01 +00:00
Carlos Mocholí
a44881cd90
Changes in preparation to #8578 ( #11562 )
2022-02-02 19:57:08 +00:00
Carlos Mocholí
62818dbace
Use a dataclass as the scheduler config ( #11443 )
2022-01-18 20:23:32 +01:00
Carlos Mocholí
344ab1e0a5
Move the `lightning_optimizers` ownership to the `Strategy` ( #11444 )
2022-01-18 12:58:56 +01:00
Gautam R Gare
ef4677ae7b
Change the default `prog_bar=False` to `True` in `LightningModule.log_grad_norm` ( #11472 )
...
* Reset on_step flag to True in log_grad_norm
* updated change log
Co-authored-by: Aki Nitta <nitta@akihironitta.com>
2022-01-18 02:34:50 +09:00
Rohit Gupta
cad604211b
update load_from_checkpoint docstrings ( #11467 )
2022-01-16 20:48:27 +00:00
Rohit Gupta
9771e7dff6
Update introduction docs ( #11140 )
2022-01-13 21:11:43 +00:00
Rohit Gupta
82c8875f33
Add `LightningModule.lr_scheduler_step` ( #10249 )
...
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
2022-01-12 03:53:49 +00:00
Kaushik B
42a1c72660
Add Accelerators section to Lightning docs ( #10755 )
2022-01-06 19:12:44 +05:30
NathanGodey
9b873dcfcc
Changed hook doctstring ( #11345 )
2022-01-06 12:37:11 +00:00
Kaushik B
e15579a4f3
Rename `_distrib_type` to `_strategy_type` ( #11328 )
...
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-01-06 06:32:50 +00:00
Rohit Gupta
98ea79b8b0
Add `opt_idx` to scheduler config if not assigned by user ( #11247 )
...
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2022-01-04 14:57:15 +09:00
Danielle Pintz
ba6a8ddcad
refactor _configure_schedulers ( #11245 )
2021-12-23 10:03:28 -08:00
Danielle Pintz
a6a28e08d2
Deprecate `TrainerOptimizersMixin` and move functionality to `core/optimizer.py` ( #11155 )
2021-12-22 17:56:37 -08:00
Kaushik B
576a5d62a0
Introduce strategies directory for Training Strategies ( #11226 )
...
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-12-22 20:23:30 +00:00
four4fish
cf5ef32f7b
Deprecate Trainer.training_type_plugin in favor of trainer.strategy ( #11141 )
...
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-12-22 02:11:43 +00:00
four4fish
f98cd78e9e
Renamed the `DDPSpawnPlugin` to `DDPSpawnStrategy` ( #11145 )
2021-12-21 23:06:14 +00:00
Carlos Mocholí
3692eba807
Drop Python 3.6 support ( #11117 )
2021-12-21 17:06:15 +00:00
Rohit Gupta
787f41eff6
update optimizer_step example in docs ( #10420 )
2021-12-21 08:19:40 +09:00
Rohit Gupta
3461af0ddb
Add support for returning callback from `LightningModule.configure_callbacks` ( #11060 )
2021-12-18 10:46:35 +00:00
Carlos Mocholí
62f1e82e03
Fix CVE-2020-1747 and CVE-2020-14343 ( #11099 )
2021-12-17 20:27:15 +00:00
Carlos Mocholí
8508cce37d
Mark all result classes as protected ( #11130 )
2021-12-17 19:35:17 +00:00
Rohit Gupta
860959fb3f
Enable logging hparams only if there are any ( #11105 )
2021-12-17 19:40:56 +01:00
Carlos Mocholí
7e10f6d41f
Save the loop progress state by default ( #10784 )
2021-12-17 16:00:27 +00:00
Carlos Mocholí
fa6d17c96f
Fix typing for utilities.warnings ( #11115 )
2021-12-17 15:07:27 +01:00
Carlos Mocholí
5932f52b2f
Avoid the deprecated `onnx.export(example_outputs=...)` in torch 1.10 ( #11116 )
2021-12-17 10:11:11 +01:00
Rohit Gupta
cc42aa9401
Improve checkpoint docs ( #10916 )
2021-12-16 16:21:59 +00:00
Carlos Mocholí
3c4d06bd42
Update the TQDM progress bar `on_train_epoch_end` ( #11069 )
2021-12-15 17:48:32 +00:00
Josafat-Mattias Burmeister
d7b6e87aeb
Add missing `self` to setup hook example ( #11041 )
...
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: ananthsub <ananth.subramaniam@gmail.com>
2021-12-14 15:29:11 +00:00
Rohit Gupta
5b153e5072
Update data docs ( #11042 )
...
Co-authored-by: Aki Nitta <nitta@akihironitta.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-12-14 15:26:46 +00:00
jjenniferdai
6e21dd3767
Deprecate `on_hpc_{save/load}` hooks ( #10911 )
...
* first commit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update pr #
* test filterwarnings
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add a todo comment
* updates
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* `` Update pytorch_lightning/core/saving.py
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* `` Update pytorch_lightning/core/saving.py
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* model --> LightningModule Update pytorch_lightning/core/saving.py
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* model --> LightningModule Update pytorch_lightning/core/saving.py
Co-authored-by: Rohit Gupta <rohitgr1998@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: Rohit Gupta <rohitgr1998@gmail.com>
2021-12-08 14:56:15 -08:00
Adrian Wälchli
c81a296ee1
Move implementation of `LightningModule.add_to_queue/get_from_queue` ( #10936 )
2021-12-06 16:17:37 +05:30
Danielle Pintz
6043179931
Re-design `call_hook` interface ( #10575 )
2021-12-04 16:39:55 -05:00
Carlos Mocholí
a28b4cd0c0
Sort out the dataloader idx logic for evaluation ( #10923 )
...
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-12-03 20:01:46 +00:00
Rohit Gupta
8ba3b383c0
Fix filtration logic for eval results with multiple dataloaders ( #10810 )
...
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
2021-12-03 14:34:46 +00:00
Adrian Wälchli
98cb7e8790
1/n Simplify spawn plugins: Simplify handling of multiprocessing queue ( #10034 )
...
Co-authored-by: thomas chaton <thomas@grid.ai>
2021-12-02 10:30:44 +00:00
Rohit Gupta
f407a00cec
Update logging docs ( #10734 )
...
Co-authored-by: Kaushik B <45285388+kaushikb11@users.noreply.github.com>
2021-11-30 21:10:26 +00:00
four4fish
1d2878523a
2/n Move Precision Plugin into strategy - move optimizer related logics ( #10596 )
...
Co-authored-by: Danielle Pintz <38207072+daniellepintz@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-11-30 08:31:23 +00:00
Rohit Gupta
753cc4dfad
Fix default logging levels for train step specific hooks ( #10756 )
2021-11-29 19:51:17 +00:00
Adrian Wälchli
bd3fb2e66e
Fix typing in `pl.core.mixins.hparams_mixin` ( #10800 )
...
* fix typing in hparams mixin
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* unused import
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-29 12:03:47 +01:00
Carlos Mocholí
3089dc3829
Improve typing for loops ( #10749 )
...
* Improve typing for loops
* Free memory
2021-11-26 18:39:09 +00:00