Commit Graph

54 Commits

Author SHA1 Message Date
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
William Falcon 710604838b
Fixes broken LM links (#4117) 2020-10-13 06:42:33 -04:00
William Falcon 8e83ac5aa9
docs (#4101) 2020-10-12 16:48:07 -04:00
William Falcon 4b117165fc
clean up docs (#4095)
* docs

* docs

* docs

* docs
2020-10-12 11:56:16 -04:00
William Falcon 6950874ae0
docs (#4093)
* enabled manual returns

* style

* docs
2020-10-12 11:13:26 -04:00
William Falcon 0cd1888612
Sg3 (#4082)
* docs

* docs

* docs
2020-10-11 13:30:25 -04:00
William Falcon 9a0918e39b
docs fixes (#4080)
* docs

* docs

* docs

* docs

* docs

* docs

* docs

* docs

* docs
2020-10-11 13:12:19 -04:00
William Falcon 3227ba89f3
docs clean up (#4068)
* docs

* docs
2020-10-10 22:48:50 -04:00
William Falcon a4b9221fc5
ref: decouple apex second attemp part n/n (#4065)
* ref: decouple apex second attemp part n/n

* ref: decouple apex second attemp part n/n
2020-10-10 22:04:50 -04:00
William Falcon bfdea3ea28
Multi opts tests and clarification (#4016)
* ref: clean up opts docs

* ref: clean up opts docs
2020-10-08 22:55:59 -04:00
William Falcon e68b949772
docs (#4003) 2020-10-08 15:54:52 -04:00
William Falcon db7997c38c docs 2020-10-08 07:05:26 -04:00
edenlightning 6dfa748ce3
Add video tutorials to docs (#3977)
* videos in trainer api

* videos in docs

* videos in docs

* videos in trainer api

* videos in docs

* videos in docs

* videos in docs

* videos in docs

* Update new-project.rst

* docs

* Update new-project.rst
2020-10-08 05:49:56 -04:00
William Falcon 048a816be3
added tests for the training epoch end (#3967) 2020-10-07 22:27:36 -04:00
edenlightning 27f536b2ce
[CI SKIP] Fix early stop docs (#3940)
* Update early_stopping.rst

* Update __init__.py

* Update new-project.rst

* Update early_stopping.rst

* Update __init__.py

* Update early_stopping.rst

* Update __init__.py

Co-authored-by: William Falcon <waf2107@columbia.edu>
2020-10-07 13:01:50 -04:00
Jeff Yang 62320632d4
Some docs update (#3794)
* docs update

* docs update

* suggestions

* Update docs/source/introduction_guide.rst

Co-authored-by: William Falcon <waf2107@columbia.edu>
2020-10-03 08:15:07 -04:00
William Falcon 00ba2b24b7
Drop all result docs. Make the separation between flow and logging clear (#3744)
* remove results docs. separate flow from log
2020-09-30 08:31:16 -04:00
edenlightning 0009f29848
Update new-project.rst (#3734) 2020-09-29 23:44:27 -04:00
William Falcon c0e26b8766
fix examples (#3623)
* fix examples

* fix examples
2020-09-23 07:36:51 -04:00
William Falcon f53e739637
clarify forward (#3611)
* clarify forward

* clarify forward

* clarify forward

* clarify forward
2020-09-22 14:00:02 -04:00
William Falcon 2a10cfaf3d
clarify forward (#3609)
* clarify forward

* clarify forward
2020-09-22 13:37:11 -04:00
edenlightning 02ce7e86a6
Docs- update lightning 2 steps guide (#3602)
* new-project

* Update new-project.rst

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

* enable any logged or written metric to be accessible in callbacks

Co-authored-by: William Falcon <waf2107@columbia.edu>
2020-09-22 06:00:54 -04:00
Jeff Yang 951048a81e
docs: use ref for anchor links, fix a few typo (#3486) 2020-09-13 21:04:21 -04:00
Charles Catta 22045b12b1
Fix non autoplaying videos on Safari iOS (#3343) 2020-09-04 08:49:14 +02:00
Akihiro Nitta a91fced3b8
Update docs/source/new-project.rst (#3272) 2020-08-31 16:48:50 +02:00
William Falcon f46318ebfe
clean docs new guide (#3270)
* updated docs

* updated docs

* updated docs

* updated docs

* updated docs
2020-08-30 11:01:16 -04:00
William Falcon 14b28190dd
simplify docs (#3267)
* updated docs

* updated docs

* updated docs

* updated docs

* updated docs

* updated docs
2020-08-30 09:31:36 -04:00
William Falcon 2b3b968064
Simpledocs (#3265)
* updated docs

* updated docs

* updated docs
2020-08-30 06:51:34 -04:00
Odd Eirik Igland c044e2c08d
fix(docs): test_dataloader use transformed dataset (#3090)
* fix(docs): test_dataloader use transformed dataset

* suggestion

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2020-08-22 11:40:42 +02:00
William Falcon cc205f6a65
0.9.0 readme (#3075)
* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme

* 0.9.0 readme
2020-08-20 11:45:28 -04:00
edenlightning 6abd742145
Create 3 steps to Lightning guide to replace quick-start (#3055)
* Update new-project.rst

* Update new-project.rst

* Create 3_steps.rst

* revert

* remove the callbacks vid

* fix blank line

* change ref

* spelling

* spelling

* Update docs/source/new-project.rst

Co-authored-by: Nathan Raw <nxr9266@g.rit.edu>

* spelling

* spelling

* spelling

* spelling

* spelling

* spelling

* spelling

Co-authored-by: William Falcon <waf2107@columbia.edu>
Co-authored-by: Nathan Raw <nxr9266@g.rit.edu>
2020-08-19 21:22:39 -04:00
Davian Yang 9f6be96f84
Fix typo in Quick Start/Step-by-step walk-through (#3007)
* Fix typo in Quick Start/Step-by-step walk-through

* Fix typo in Quick Start/Step-by-step walk-through

* Fix snippets in lightning module

* Remove testblock 

doctest does not have torch with CUDA, so x.cuda() will fail

* Remove test code

"..." is not python, so doctests fail

* Fix #3005

* Fix indentation, stage in docs

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-08-18 21:51:38 +00:00
William Falcon 5dfc7b157e
quick start docs changes (#3028)
* updated code example

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj

* added warning when changing monitor and using results obj
2020-08-17 23:17:51 -04:00
William Falcon 44802f7697 tasks docs 2020-08-15 22:36:53 -04:00
William Falcon 639a4cbd25
autoplay (#2968) 2020-08-13 19:06:55 -04:00
edenlightning 5e7ae348b4
Add labels to sphinx docs (#2964)
* Add label

* add ref

* add ref

* add ref

* add label

* add label

* add label

* add label

* Update fast_training.rst

* label

* label

* label

* label

* label

* label

* label

* label

* label

* label

* label

* Update performance.rst

* Update production_inference.rst

* Update profiler.rst

* Update results.rst

* Update sequences.rst

* Update single_gpu.rst

* Update slurm.rst

* Update test_set.rst

* Update tpu.rst

* Update trainer.rst

* Update training_tricks.rst

* Update transfer_learning.rst

* Update weights_loading.rst

* Update governance.rst

* Update hooks.rst

* Update bolts.rst

* Update child_modules.rst

* Update hyperparameters.rst

* Update transfer_learning.rst
2020-08-13 18:56:51 -04:00
William Falcon 9a503de6af
Replace docs gifs with videos snippets so user can play at own speed (#2966)
* update docs
2020-08-13 18:52:47 -04:00
Jeff Yang 07c023c32f
fix(docs): docstring for amp_backend (#2960)
* fix(docs): docstring for amp_backend

* fix(docs): early_stop_checkpoint -> early_stop_callback

* docs

Co-authored-by: ananyahjha93 <ananya@pytorchlightning.ai>
2020-08-13 23:25:56 +02:00
William Falcon 6c5a0a172f
Resultd (#2947)
* updated docs
2020-08-13 09:58:05 -04:00
William Falcon d13e5c9e53
document lightiningmodule better (#2920)
* updated docs
2020-08-11 19:39:43 -04:00
William Falcon 2e6e254c76
quick start docs (#2731)
* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests

* added tests
2020-07-27 23:53:19 -04:00
Jirka Borovec 0fe933e23d
fixing TPU tests (#2632)
* init

* rename

* tpu_core_idx

* idx 8

* idxs

* @pl_multi_process_test

* assert

* assert

* deamon

* no close

* imort

* msg

* use_single_gpu

* dataset

* idx

* fix idx

* dataset

* format

* add pickable

* typo

* apex

* typo

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* docs

* typo

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* tests

* docs

* docs

* Apply suggestions from code review

Co-authored-by: Ethan Harris <ewah1g13@soton.ac.uk>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* Apply suggestions from code review

Co-authored-by: Ethan Harris <ewah1g13@soton.ac.uk>

* docs

* Apply suggestions from code review

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

Co-authored-by: Ethan Harris <ewah1g13@soton.ac.uk>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2020-07-27 19:07:09 -04:00
William Falcon 54601bdf8e
DM docs (#2713)
* updated docs
2020-07-26 01:38:55 -04:00
Rohit Gupta b96dd21d69
Update new project code sample (#2287) 2020-06-19 23:41:03 -04:00
William Falcon 2411c3be70
replace train_percent_check with limit_train_batches (#2220)
* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* drop train_percent_check

* chlog

* deprecated

* deprecated

* deprecated

* tests

* tests

* Apply suggestions from code review

* tests

* hydra support

* tests

* hydra support

* hydra support

* hydra support

* tests

* typo

* typo

* Update test_dataloaders.py

* docs

* docs

* docs

* docs

Co-authored-by: Jirka <jirka@pytorchlightning.ai>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-06-17 13:42:28 -04:00
Lezwon Castelino 7c7e50ca47
Allow user to select individual TPU core to train on (#1729)
* added tpu_id

added tpu_id to mixins

* train on individual tpu

* parallel loader if tpu_id is None

* removed progress_bar_refresh_rate

* chlog

* replaced num_tpu_cores with tpu_cores

* set tpu_id to None if int

* changed num_tpu_cores to tpu_cores in docs

* updated docs

* updated __init__.py
removed self.tpu_id for ParallelLoader

* Update pytorch_lightning/trainer/__init__.py

* check if tpu_cores is a list

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>

* xla device conditional

* num_tpu_cores deprecation

* removed duplicate warning

* fixed pep8 error

* Revert "removed duplicate warning"

This reverts commit 8adb0a9b

* deprecated api update

* fixed recursion error

* fixed tests

* fixed flake errors

* removed current_tpu_index

* Update CHANGELOG.md

* Update trainer.py

Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: William Falcon <waf2107@columbia.edu>
2020-05-17 16:30:54 -04:00
Adrian Wälchli a6de1b8d75
doctest for .rst files (#1511)
* add doctest to circleci

* Revert "add doctest to circleci"

This reverts commit c45b34ea911a81f87989f6c3a832b1e8d8c471c6.

* Revert "Revert "add doctest to circleci""

This reverts commit 41fca97fdcfe1cf4f6bdb3bbba75d25fa3b11f70.

* doctest docs rst files

* Revert "doctest docs rst files"

This reverts commit b4a2e83e3da5ed1909de500ec14b6b614527c07f.

* doctest only rst

* doctest debugging.rst

* doctest apex

* doctest callbacks

* doctest early stopping

* doctest for child modules

* doctest experiment reporting

* indentation

* doctest fast training

* doctest for hyperparams

* doctests for lr_finder

* doctests multi-gpu

* more doctest

* make doctest drone

* fix label build error

* update fast training

* update invalid imports

* fix problem with int device count

* rebase stuff

* wip

* wip

* wip

* intro guide

* add missing code block

* circleci

* logger import for doctest

* test if doctest runs on drone

* fix mnist download

* also run install deps for building docs

* install cmake

* try sudo

* hide output

* try pip stuff

* try to mock horovod

* Tranfer -> Transfer

* add torchvision to extras

* revert pip stuff

* mlflow file location

* do not mock torch

* torchvision

* drone extra req.

* try higher sphinx version

* Revert "try higher sphinx version"

This reverts commit 490ac28e46d6fd52352640dfdf0d765befa56988.

* try coverage command

* try coverage command

* try undoc flag

* newline

* undo drone

* report coverage

* review

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>

* remove torchvision from extras

* skip tests only if torchvision not available

* fix testoutput torchvision

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-05-04 22:16:54 -04:00
weipengOO98 2ec8d61e94
Update new-project.rst (#1655)
fix a typo
2020-04-30 07:58:42 -04:00
William Falcon a258d3d31b fixed val_loss for early stopping 2020-04-26 12:27:19 -04:00
William Falcon 198d7715ee docs clean up 2020-04-26 11:06:36 -04:00