Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Lightning Lite examples #15599

Merged
merged 12 commits into from
Nov 10, 2022
18 changes: 7 additions & 11 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,19 @@ ______________________________________________________________________

______________________________________________________________________

## MNIST Examples
## Lightning Lite Examples

5 MNIST examples showing how to gradually convert from pure PyTorch to PyTorch Lightning.
We show how to accelerate your PyTorch code with [Lightning Lite](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html) with minimal code changes.
You stay in full control of the training loop.

The transition through [LightningLite](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html) from pure PyTorch is optional, but it might be helpful to learn about it.

- [MNIST with vanilla PyTorch](convert_from_pt_to_pl/image_classifier_1_pytorch.py)
- [MNIST with LightningLite](convert_from_pt_to_pl/image_classifier_2_lite.py)
- [MNIST LightningLite to LightningModule](convert_from_pt_to_pl/image_classifier_3_lite_to_lightning_module.py)
- [MNIST with LightningModule](convert_from_pt_to_pl/image_classifier_4_lightning_module.py)
- [MNIST with LightningModule + LightningDataModule](convert_from_pt_to_pl/image_classifier_5_lightning_datamodule.py)
- [MNIST with vanilla PyTorch](lite/image_classifier_1_pytorch.py)
- [MNIST with Lightning Lite](lite/image_classifier_2_lite.py)

______________________________________________________________________

## Basic Examples
## Lightning Trainer Examples

In this folder, we have 2 simple examples:
In this folder, we have 2 simple examples that showcase the power of the Lightning Trainer.

- [Image Classifier](pl_basics/backbone_image_classifier.py) (trains arbitrary datasets with arbitrary backbones).
- [Image Classifier + DALI](convert_from_pt_to_pl/image_classifier_4_dali.py) (defines the model inside the `LightningModule`).
Expand Down
67 changes: 0 additions & 67 deletions examples/convert_from_pt_to_pl/README.md

This file was deleted.

164 changes: 0 additions & 164 deletions examples/convert_from_pt_to_pl/image_classifier_2_lite.py

This file was deleted.