chaton
6e788d2dc6
Add lightning-geometric ( #4771 )
...
* add link
* typo
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-11-20 08:45:04 +01:00
chaton
8e8263ab6c
update docs ( #4739 )
2020-11-19 22:23:10 +05:30
Yang Zhang
18730e307f
Add masked language modeling to community examples ( #4744 )
...
Add masked language modeling (based on Transformers) to community examples
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-11-19 08:35:25 +00:00
chaton
b7601e9deb
[Example] Add Pytorch Geometric Example ( #4568 )
...
* add example for Pytorch Geometric
* remove hydra
* add docstring
* remove description
* rename folder
* update script to not break test
* remove .lock
* add Pytorch Geometric to doc
* add docstring at the begining
* add comments
* Update pl_examples/pytorch_ecosystem/pytorch_geometric/README.md
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
* Update pl_examples/pytorch_ecosystem/pytorch_geometric/README.md
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
* Update pl_examples/pytorch_ecosystem/pytorch_geometric/cora_dna.py
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
* add toml
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Jirka Borovec <jirka@pytorchlightning.ai>
2020-11-18 20:03:55 +00:00
Jirka Borovec
9a5d40aff4
test PL examples ( #4551 )
...
* test PL examples
* minor formatting
* skip failing
* skip failing
* args
* mnist datamodule
* refactor tests
* refactor tests
* skip
* skip
* drop DM
* drop DM
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
2020-11-17 19:35:17 +01:00
Jay Mody
b8a1916453
Update trainer.rst ( #4722 )
...
small spelling fix
2020-11-17 23:07:15 +05:30
Nicki Skafte
51097669b9
[metrics] change default behaviour of state dict ( #4685 )
...
* fix state dict
* Update docs/source/metrics.rst
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* changelog
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: chaton <thomas@grid.ai>
2020-11-16 12:33:45 +00:00
Xinyao(Alvin) Sun
504a669015
[Fix]: Improve documentation ( #4670 )
...
Fix an error in training_step_end() documentation #4669
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
2020-11-14 14:04:55 +00:00
Nathan Painchaud
2d78d9b84a
CI: Added isort import check for the code on pull-request ( #4242 )
...
* added isort CI job and updated isort config
* changed CI check output from files to full diff
* added isort pre-commit hook
* Added missing first party and restricted files affected by isort
* Applied isort to root-level, docs and benchmarks
* Apply suggestions from code review
Co-authored-by: Nathan Painchaud <nathanpainchaud@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: chaton <thomas@grid.ai>
2020-11-13 22:57:46 +01:00
Jeff Yang
baa8558cc0
logger docs and api docs ( #3950 )
...
* logger and api docs
* remove gpu_usage_logger, lr_logger
* update docstring
* fix wandb example
* remove step result
* charts
* add some charts info
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-11-13 20:35:54 +05:30
chaton
7e08b0d710
[bug-fix] DDP and automatic_optimization=False ( #4485 )
...
* resolve bug
* add self._running_manual_optim
* update
* update tests
* update lightning module
* resolve bug
* update tests
* update
* resolve pep8
* update
* replace by `ddp_spawn`
* temporary fix
* update
* update
* move update to training_loop
* make both ddp_spawn
* introduce `manual_optimizer_step`
* update changelog
* added changelog wrong place
* add force_optimizer_step
* update docstring for tests
* update optimizer_step
* update zero_grad
* resolve flake8
* move update into manual_optimizer_step
* add zero_grad
* remove zero_grad tests
* remove manual_backward in AMP, it doesn't help
* update
* loosen tests
* update
* update doc
* add TODO
* Removed unnecessary get model from native amp
* Remove try except with pytest raise
* Add seed, clean up imports, remove try catch to reproduce error
* update code
* update test
* revert back
* formatting
* Update pytorch_lightning/core/lightning.py
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: SeanNaren <sean@grid.ai>
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-11-10 19:44:51 +00:00
Jirka Borovec
abf1d4b992
fix mock pkgs in docs ( #4591 )
...
* fix mock pkgs in docs
* sphinx
* CI
Co-authored-by: chaton <thomas@grid.ai>
2020-11-10 14:57:21 +01:00
Nicki Skafte
465ec752f8
Metric ddp bugfix ( #4482 )
...
* changes
* fix spelling
* small note
* trying to fix ddp test
* fix ddp
* fix for test
* suggestion
* CHANGELOG
* Update pytorch_lightning/metrics/metric.py
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Co-authored-by: Sean Naren <sean@grid.ai>
2020-11-10 09:16:31 +01:00
Jan Beitner
e01190e919
Adding pytorch-forecasting to community examples ( #4575 )
...
PyTorch Forecasting is a new library that is designed for time series forecasting practitioners and researchers alike.
It is based on the awesome work on PyTorch Lightning. Thanks a lot for creating such an asset!
Have a look at the documentation for more information.
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
2020-11-09 12:33:44 +01:00
Nicki Skafte
01a925d333
[Docs] Note on running metric in dp ( #4494 )
...
* note
* Update docs/source/metrics.rst
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
2020-11-09 11:30:28 +01:00
William Falcon
ee35907170
Accelerator docs ( #4583 )
...
* accelerator docs
* accelerator docs
2020-11-08 17:24:41 -05:00
William Falcon
09a51697ed
Adds shortcut for path to log ( #4573 )
...
* added log_dir shortcut to trainer properties for writing logs
* added log_dir shortcut
* added log_dir shortcut
* added log_dir shortcut
* added log_dir shortcut
* added log_dir shortcut
* added log_dir shortcut
* added log_dir shortcut
* added log_dir shortcut
2020-11-08 12:16:22 -05:00
William Falcon
f63fec9323
updated trainer docs ( #4571 )
2020-11-07 15:41:02 -05:00
William Falcon
e0bdf8124b
updated trainer docs ( #4570 )
2020-11-07 14:53:04 -05:00
William Falcon
bb356a73cb
added trainer api docs ( #4569 )
2020-11-07 14:18:45 -05:00
Adrian Wälchli
9b7f01654a
Update old "module_arguments" and "hparams" references in docs ( #4417 )
...
* replace module_arguments refernces
* update hparams docs
* add missing save_hyperparameters in example
* deprecate instead of remove
* Update docs/source/hyperparameters.rst
Co-authored-by: chaton <thomas@grid.ai>
* Update docs/source/hyperparameters.rst
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
2020-11-03 12:13:10 +01:00
Nicki Skafte
19187d38f9
[Metrics] Detach bugfix ( #4313 )
...
* detach on buffer
* doc update
* remove file
* changelog
* suggestions
* Update docs/source/metrics.rst
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
* fix for 4266
* Update docs/source/metrics.rst
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
* Update CHANGELOG.md
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Ananya Harsh Jha <ananya@pytorchlightning.ai>
Co-authored-by: Roger Shieh <sh.rog@protonmail.ch>
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2020-11-02 19:44:49 +00:00
chaton
9b8102d1a5
[DOC] Clarify `tpu_cores` training. ( #4475 )
...
* better explanation around tpu_cores
* more details on tpu training
* Apply suggestions from code review
Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
2020-11-02 15:23:24 +00:00
Sean Naren
f40d08679d
Add manual logging to training_step manual optimization ( #4476 )
2020-11-02 10:46:02 +00:00
Adrian Wälchli
6ae4c6ec85
update docs on checkpoint_callback Trainer argument ( #4461 )
...
* docs update
* update callbacks docs
* docs
* notebook examples
* warning
* line lenght
* update deprecation
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Co-authored-by: Roger Shieh <55400948+s-rog@users.noreply.github.com>
2020-11-02 06:18:20 +01:00
Kevin Mathew T
b50dd12332
ReduceLROnPlateau doc fixed ( #4459 )
2020-10-31 08:15:11 -04:00
Dusan Drevicky
38bb4e2da0
[Metrics] Add multiclass auroc ( #4236 )
...
* Add functional multiclass AUROC metric
* Add multiclass_auroc tests
* fixup! Add functional multiclass AUROC metric
* fixup! fixup! Add functional multiclass AUROC metric
* Add multiclass_auroc doc reference
* Update CHANGELOG
* formatting
* Shorter error message regex match in tests
* Set num classes as pytest parameter
* formatting
* Update CHANGELOG
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-10-30 19:56:13 +01:00
Nicki Skafte
e0b856c105
[Metrics] Confusion matrix class interface ( #4348 )
...
* docs + precision + recall + f_beta + refactor
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
* rebase
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
* fixes
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
* added missing file
* docs
* docs
* extra import
* add confusion matrix
* add to docs
* add test
* pep8 + isort
* update tests
* move util function
* unify functional and class
* add to init
* remove old implementation
* update tests
* pep8
* add duplicate
* fix doctest
* Update pytorch_lightning/metrics/classification/confusion_matrix.py
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
* changelog
* bullet point args
* bullet docs
* bullet docs
Co-authored-by: ananyahjha93 <ananya@pytorchlightning.ai>
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Roger Shieh <55400948+s-rog@users.noreply.github.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2020-10-30 11:44:25 +01:00
Jeff Yang
ebe3a31ddd
[docs] distributed_backend -> accelerator ( #4429 )
...
* distributed_backend -> accelerator
* distributed_backend -> accelerator
* use_amp -> precision
* format
Co-authored-by: rohitgr7 <rohitgr1998@gmail.com>
2020-10-30 00:45:24 +06:30
Martin Hwang
b459fd26ac
fix: `nb` is set total number of devices, when nb is -1. ( #4209 )
...
* fix: `nb` is set total number of devices, when nb is -1.
Refs: #4207
* feat: add test code
1. test combination `auto_select_gpus`, `gpus` options using
Trainer
2. test `pick_multiple_gpus` function directly
Refs: #4207
* docs: modify contents in `Select GPU devices`
Refs: #4207
* refactore: reflect the reuslt of review
Refs: #4207
* refactore: reflect the reuslt of review
Refs: #4207
* Update CHANGELOG.md
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Roger Shieh <55400948+s-rog@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-10-29 10:50:37 +01:00
Nicki Skafte
4a095e1c5c
[Docs] Warning on metric states ( #4388 )
...
* warning on states
* suggestion
* Update metrics.rst
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
2020-10-28 16:42:52 +01:00
William Falcon
98205fb438
Enable custom apex and amp plugins ( #4355 )
...
* enable custom apex, amp plugin
* enable custom apex, amp plugin
* enable custom apex, amp plugin
* enable custom apex, amp plugin
2020-10-25 17:11:07 -04:00
Adrian Wälchli
29fa0caff8
update old references to filepath in ModelCheckpoint docs ( #4339 )
...
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-10-25 17:43:16 +01:00
Eric Harper
8b3adb9669
Update to NeMo Documentation ( #4328 )
...
* updated header and small fixes
Signed-off-by: ericharper <complex451@gmail.com>
* updated header and small fixes
Signed-off-by: ericharper <complex451@gmail.com>
* updated header and small fixes
Signed-off-by: ericharper <complex451@gmail.com>
* updated header and small fixes
Signed-off-by: ericharper <complex451@gmail.com>
2020-10-25 06:57:04 -04:00
nikkie
c7dc8c3c6d
remove redundant whitespace in new-project.rst ( #4346 )
...
resolve https://github.com/PyTorchLightning/pytorch-lightning/issues/4345
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-10-25 06:55:23 -04:00
Akihiro Nitta
207ff728c9
Add favicon path ( #4331 )
2020-10-24 16:32:06 +05:30
William Falcon
753362d0a4
enable ddp as a plugin ( #4285 )
...
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
* enable custom ddp plugin
Co-authored-by: chaton <thomas@grid.ai>
2020-10-22 05:15:51 -04:00
Nicki Skafte
a937394312
[Metrics] Unification of regression ( #4166 )
...
* moved to utility
* add files
* unify
* add desc
* update
* end of line
* Apply suggestions from code review
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
* add back functional test in new interface
* pep8
* doctest fix
* test name fix
* unify psnr + add class psnr, TODO: psnr test refactor ala mean squared error
* unify psnr
* rm unused code
* pep8
* docs
* unify ssim
* lower tolerance for ssim
* fix import
* pep8
* docs
* flake8
* test smaller images
* trying to fix test
* no ddp test for ssim
* pep8
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
2020-10-21 18:05:59 -04:00
Carlos Mocholí
2549ca40e6
Clean up optimizer code ( #3587 )
...
* Update optimizer code
* Update CHANGELOG
* Fix tuple of one list case
* Update docs
* Fix pep issue
* Minor typo [skip-ci]
* Use minimal match
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
* Apply suggestions from code review
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2020-10-21 21:12:48 +02:00
Jirka Borovec
ec424e7b91
add svg logo [SKIP CI] ( #3988 )
...
* docs logo
* use png
* cleaning
* vectorial
* Apply suggestions from code review
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
* Apply suggestions from code review
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-10-21 19:11:31 +02:00
chaton
09c2f4a421
update documentation for callbacks ( #4253 )
2020-10-20 16:01:08 +01:00
Jirka Borovec
d3567c33a6
move base req. to root ( #4219 )
...
* move base req. to root
* check-manifest
* check-manifest
* manifest
* req
2020-10-18 20:40:18 +02:00
Abhinav Gupta
aca072a4bc
Update multi_gpu.rst ( #4201 )
...
torch.cuda.device_count() returns the number of available GPUs
2020-10-17 10:18:57 +02:00
khaitech
155f4e9aa5
fixed typos in style guide ( #4181 )
2020-10-16 22:21:47 +02:00
Teddy Koker
5c1eff351b
Add load_from_checkpoint function to Loading docs ( #4196 )
...
* add autodoc load_from_checkpoint to docs
* autofunction -> automethod
Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
2020-10-16 14:36:49 -04:00
Jirka Borovec
f967fbba43
docs: fix fomatting
2020-10-15 00:21:31 +05:30
Nrupatunga
d7f567126b
[Doc] Lightning Module ( #4123 )
...
* make current_epoch and global_step to be same as trainer, after model restore.
* remove assignment here
* test
* minor modification
* merge with parent's master
* doc fix / improve
* doc fix!
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2020-10-14 19:43:58 +02:00
Paul
051d9b1d94
Add trainer flag step [ci skip] ( #4147 )
...
* Add trainer flag step
Add step to disable automatic optimization in the trainer
@justusschock
* Apply suggestions from code review
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-10-14 19:14:40 +02:00
Neven Miculinic
01402e3594
created minor doc fixes [ci skip] ( #3958 )
...
* created minor fixes
* adjusted the underline
* Update docs/source/amp.rst
* suggestion from code review
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2020-10-13 15:52:32 +02:00
William Falcon
710604838b
Fixes broken LM links ( #4117 )
2020-10-13 06:42:33 -04:00