Commit Graph

2299 Commits

Author SHA1 Message Date
Adrian Wälchli e6b34ef90d
[WIP] Reduction when batch size < num gpus (#1609)
* reduce if <= num_gpus

* add test with explanation

* chlog

* fix changelog

Co-authored-by: J. Borovec <jirka.borovec@seznam.cz>
2020-05-02 11:01:44 -04:00
Jean-Baptiste SCHIRATTI fafe5d63a7
Transfer learning example (#1564)
* Fine tuning example.

* Fix (in train method) + Borda's comments (added argparse + fixed docstrings).

* Updated CHANGELOG.md

* Fix + updated docstring.

* Fixes (awaelchli's comments) + docstrings.

* Fix train/val loss.

* Fix.
2020-05-02 09:08:46 -04:00
Adrian Wälchli d06d5e68b6
Fix typo in progress bar docs (#1680)
* fix typo

* Typo

* typo Borda

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-05-02 09:08:21 -04:00
Oliver Neumann 152a2eb30c
wandb logger 'global_step' affects other logger (#1492)
* Removed unnecessary 'global_step' from wandb logger.

* Fixed wrong step implementation in wandb and missing metric skipping in logger base.

* simplified metric check in base logger

* Added Fix Description in CHANGELOG.md

* Updated wandb logger tests.

* udpate test, step=3

* Moved Fix Description in CHANGELOG.md to unreleased.

* Update CHANGELOG.md

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-05-02 08:50:47 -04:00
Jacob Zhong 4dc77b5a1a
Change lightning module params to dict when loading (#1639)
* change module params to dict

* tiny change

* reverse
2020-05-02 08:44:35 -04:00
Dmitry Lipin 210cd657dd
fix LightningTemplateModel (#1577)
* fix LightningTemplateModel

* update CHANGELOG.md

* update LightningTemplate

* update changelog

* update changelog

* loss fix
2020-05-02 08:41:37 -04:00
Justus Schock cf0d5dc470
Docker release (#1613)
* Update docker_builds.yml

* Update docker_builds.yml

* nightly

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-05-02 08:40:31 -04:00
Jirka Borovec f380027951
refactor default model (#1652)
* refactor default model

* drop redundant seeds

* formatting

* path

* formatting

* rename
2020-05-02 08:38:22 -04:00
Fedor Korotkov b4b73f92dd
Trigger automatic rebase on issue comment (#1695)
* Trigger automatic rebase on issue comment

Instead of `pull_request` event (created, closed, etc.).

Fixes https://github.com/cirrus-actions/rebase/issues/43

* Removed workaround
2020-05-02 06:47:31 -04:00
Travis Addair 2950f66983
Fix Horovod distributed backend to set the root_gpu property (#1669)
* params

* drop acc

* Fix Horovod distributed backend to set the root_gpu

* Fixed test

* Fixed tests

* Fixed lint

* Set root_gpu during initialization

* chlog

Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2020-05-01 14:13:35 -04:00
Jirka Borovec 34bc149359
move unnecessary dict trainer_options (#1469)
* move unnecessary dict trainer_options

* fix tests

* fix tests

* formatting

* missing
2020-05-01 10:43:58 -04:00
Jirka Borovec 97c7b6b314
fixing LBFGS test (#1678)
* params

* drop acc

* acc
2020-05-01 10:41:15 -04:00
Nicki Skafte 142bc0230e
Learning rate log callback (#1498)
* base implementation

* docs + implementation

* fix styling

* add lr string

* renaming

* CHANGELOG.md

* add tests

* Apply suggestions from code review

Co-Authored-By: Adrian Wälchli <aedu.waelchli@gmail.com>

* Apply suggestions from code review

* Update pytorch_lightning/callbacks/lr_logger.py

* Update pytorch_lightning/callbacks/lr_logger.py

* add test for naming

* base implementation

* docs + implementation

* fix styling

* add lr string

* renaming

* CHANGELOG.md

* add tests

* Apply suggestions from code review

Co-Authored-By: Adrian Wälchli <aedu.waelchli@gmail.com>

* Apply suggestions from code review

* Update pytorch_lightning/callbacks/lr_logger.py

* Update pytorch_lightning/callbacks/lr_logger.py

* add test for naming

* Update pytorch_lightning/callbacks/lr_logger.py

Co-Authored-By: Adrian Wälchli <aedu.waelchli@gmail.com>

* suggestions from code review

* fix styling

* rebase

* fix tests

Co-authored-by: Nicki Skafte <nugginea@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2020-04-30 08:06:41 -04:00
Nathan Breitsch 3eac6cfd4f
Don't convert namedtuple to tuple (#1589)
* Don't convert namedtuple to tuple

* Test namedtuples sent to device correctly
2020-04-30 08:04:50 -04:00
William Falcon d40425d257
added warning to crash (#1625)
* added warning to crash

* formatting

Co-authored-by: J. Borovec <jirka.borovec@seznam.cz>
2020-04-30 08:04:18 -04:00
weipengOO98 2ec8d61e94
Update new-project.rst (#1655)
fix a typo
2020-04-30 07:58:42 -04:00
Jacob Zhong f9c9e39ab8
Add log output for slurm (#1657)
* add log output for slurm

* change log levels

* formatting

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-04-30 07:58:03 -04:00
Peter Yu 8d564b5e38
call on_load_checkpoint() when resuming from checkpoint (#1666) 2020-04-30 07:57:24 -04:00
Oliver Neumann 53aa5636cf
Fixed broken link in PR template (#1675)
* Fixed broken link in PR template.

* Updated CHANGELOG.md
2020-04-30 07:54:50 -04:00
Peter Yu 42d5cfc3b0
None check for filepath in ModelCheckpoint (#1654)
Check if the optional filepath is None before checking if it exists

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-04-29 16:36:28 +00:00
Jacob Zhong 9b86aea98b
Update docs (#1656)
* edit doc

mentioned in #646

* edit doc

* underline

* class reference

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2020-04-29 12:55:06 +00:00
Jirka Borovec 79196246cf
changelog (#1643) 2020-04-28 06:27:53 -04:00
William Falcon ecb746e869
Update README.md 2020-04-27 23:54:20 -04:00
William Falcon e40e27f59e
Merge pull request #1645 from danpcampbell/bugfix/1637_slurm-fix
Only call load_spawn_weights if COLAB_GPU or KAGGLE_URL_BASE
2020-04-27 20:08:06 -04:00
Dan Campbell 981758fd04 Only call load_spawn_weights if COLAB_GPU or KAGGLE_URL_BASE
environment variables are set
2020-04-27 19:46:29 -04:00
William Falcon b0ec7a0655
Update README.md 2020-04-27 17:41:46 -04:00
William Falcon 4fdf02965f
Merge pull request #1642 from PyTorchLightning/new-master
Propper master...
2020-04-27 17:41:11 -04:00
Jirka Borovec 994b77721c
Merge branch 'master' into new-master 2020-04-27 22:13:42 +02:00
William Falcon 835ea9c2e3
Update README.md 2020-04-27 10:31:38 -04:00
J. Borovec cac8f0250c releasing 2020-04-27 16:20:32 +02:00
William Falcon 0782c6e8c4 test pickling (#1636)
fix hparams issue

cache

cache

cache

cache

ddp pickle

ddp pickle

ddp pickle

ddp pickle

ddp pickle

ddp pickle

ddp pickle

ddp fix

pep8
2020-04-27 16:07:54 +02:00
William Falcon 9557b73cad Fixes CPU DDP breaking change and DDP change (#1635)
ddp pickle

ddp pickle

ddp pickle

ddp pickle

ddp pickle

ddp pickle

ddp pickle
2020-04-27 16:01:00 +02:00
Justus Schock b83b8005f9 Allow metrics logged together with hparams (#1630)
Update tensorboard.py

Update CHANGELOG.md

Update tensorboard.py

Update test_tensorboard.py

Update test_tensorboard.py

tests pep8
2020-04-27 15:58:29 +02:00
Wojciech Jabłoński 9604d7bf89 Fix ModelCheckpoint not being fixable (#1632) 2020-04-27 15:56:20 +02:00
J. Borovec 2180aa19ad Remove warning (#1634)
Remove warning

Update CHANGELOG.md
2020-04-27 15:53:01 +02:00
William Falcon afd0e5d02f fix hparams issue (#1623)
fix hparams issue

fix hparams issue
2020-04-27 15:48:58 +02:00
J. Borovec 813e37916d try GH actions cache (#1558, #1624)
spec cache

spec cache

trigger

extras

revert

refactor

cache

cache

cache

cache
2020-04-27 15:48:58 +02:00
Jirka Borovec 68c9a110a2 changelog (#1616)
* changelog

* warning

* pull

* typo

* typo
2020-04-27 15:31:38 +02:00
Peter Yu 0f019d7a94 pin actions/checkout version to v2 (#1617) 2020-04-27 15:31:38 +02:00
William Falcon 2096306362 Update README.md 2020-04-27 15:31:38 +02:00
William Falcon 694f1d789d
Update __init__.py 2020-04-27 09:04:55 -04:00
William Falcon 040c1f24e4
Merge pull request #1636 from PyTorchLightning/callback
test pickling
2020-04-27 09:04:30 -04:00
William Falcon e7ea564df2 pep8 2020-04-27 08:47:19 -04:00
William Falcon 63addd091c ddp fix 2020-04-27 08:28:39 -04:00
William Falcon a24c88ab08 ddp pickle 2020-04-27 08:19:19 -04:00
William Falcon 710dbf5a12 ddp pickle 2020-04-27 08:04:02 -04:00
William Falcon a3cebb4469 ddp pickle 2020-04-27 08:04:02 -04:00
William Falcon 5c0118fe9d ddp pickle 2020-04-27 08:03:32 -04:00
William Falcon 013fd9886e
Merge pull request #1624 from PyTorchLightning/tests/cache
resume GH action
2020-04-27 07:46:35 -04:00
William Falcon 4c4d0e6bc6
Merge pull request #1635 from PyTorchLightning/pkl
Fixes CPU DDP breaking change and DDP change
2020-04-27 07:42:42 -04:00