lightning/pl_examples
Jerome Anand 812c2dc3d3
Add support for Habana accelerator (HPU) (#11808)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
Co-authored-by: Aki Nitta <nitta@akihironitta.com>
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
Co-authored-by: four4fish <88516121+four4fish@users.noreply.github.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: ananthsub <ananth.subramaniam@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kaushik B <kaushikbokka@gmail.com>
Co-authored-by: Kaushik B <45285388+kaushikb11@users.noreply.github.com>
Co-authored-by: jjenniferdai <89552168+jjenniferdai@users.noreply.github.com>
Co-authored-by: Kushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
Co-authored-by: Akarsha Rao <94624926+raoakarsha@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.comk-Pro.local>
2022-03-25 10:24:52 +00:00
..
basic_examples Deprecate `on_epoch_start/on_epoch_end` hook (#11578) 2022-02-07 14:15:27 +00:00
bug_report update bug_report model links and notebook (#10665) 2021-11-22 11:19:46 +00:00
domain_templates Update `gpus` flag with `accelerator` and `devices` flag (#12156) 2022-03-23 19:52:12 +00:00
fault_tolerant Fault Tolerant: move signal to SIGTERM (#10605) 2021-11-26 13:37:27 +00:00
hpu_examples/simple_mnist Add support for Habana accelerator (HPU) (#11808) 2022-03-25 10:24:52 +00:00
integration_examples Lightning Lite Examples (#9987) 2021-11-02 08:04:29 +00:00
ipu_examples Replace `yapf` with `black` (#7783) 2021-07-26 13:37:35 +02:00
loop_examples fix typos (#11937) 2022-02-16 17:27:51 -08:00
README.md fix typos (#11937) 2022-02-16 17:27:51 -08:00
__init__.py Replace `yapf` with `black` (#7783) 2021-07-26 13:37:35 +02:00
run_examples.sh Fault Tolerant: move signal to SIGTERM (#10605) 2021-11-26 13:37:27 +00:00
test_examples.py MANIFEST.in and setup.py clean-up (#7614) 2021-11-19 15:38:42 +01:00

README.md

Examples

Our most robust examples showing all sorts of implementations can be found in our sister library Lightning Bolts.


MNIST Examples

5 MNIST examples showing how to gradually convert from pure PyTorch to PyTorch Lightning.

The transition through LightningLite from pure PyTorch is optional but it might be helpful to learn about it.


Basic Examples

In this folder, we have 2 simple examples:


Domain Examples

This folder contains older examples. You should instead use the examples in Lightning Bolts for advanced use cases.


Basic Examples

In this folder, we have 1 simple example:


Loop examples

Contains implementations leveraging loop customization to enhance the Trainer with new optimization routines.

  • K-fold Cross Validation Loop: Implementation of cross validation in a loop and special datamodule.
  • Yield Loop: Enables yielding from the training_step like in a Python generator. Useful for automatic optimization with multiple optimizers.