2022-06-15 12:53:51 +00:00
# Examples
Our most robust examples showing all sorts of implementations
2023-03-15 19:19:41 +00:00
can be found in our sister library [Lightning Bolts ](https://lightning.ai/docs/pytorch/latest/ecosystem/bolts.html ).
2022-06-15 12:53:51 +00:00
______________________________________________________________________
2022-06-29 15:18:07 +00:00
*Note that some examples may rely on new features that are only available in the development branch and may be incompatible with any releases.*
*If you see any errors, you might want to consider switching to a version tag you would like to run examples with.*
*For example, if you're using `pytorch-lightning==1.6.4` in your environment and seeing issues, run examples of the tag [1.6.4 ](https://github.com/Lightning-AI/lightning/tree/1.6.4/pl_examples ).*
______________________________________________________________________
2023-01-04 15:57:18 +00:00
## Lightning Fabric Examples
2022-06-15 12:53:51 +00:00
2023-03-15 19:19:41 +00:00
We show how to accelerate your PyTorch code with [Lightning Fabric ](https://lightning.ai/docs/fabric ) with minimal code changes.
2022-11-10 09:16:46 +00:00
You stay in full control of the training loop.
2022-06-15 12:53:51 +00:00
2023-01-05 14:07:43 +00:00
- [MNIST: Vanilla PyTorch vs. Fabric ](fabric/image_classifier/README.md )
- [DCGAN: Vanilla PyTorch vs. Fabric ](fabric/dcgan/README.md )
2022-06-15 12:53:51 +00:00
______________________________________________________________________
2022-11-10 09:16:46 +00:00
## Lightning Trainer Examples
2022-06-15 12:53:51 +00:00
2022-11-10 09:16:46 +00:00
In this folder, we have 2 simple examples that showcase the power of the Lightning Trainer.
2022-06-15 12:53:51 +00:00
2023-03-07 16:24:46 +00:00
- [Image Classifier ](pytorch/basics/backbone_image_classifier.py ) (trains arbitrary datasets with arbitrary backbones).
- [Autoencoder ](pytorch/basics/autoencoder.py )
2022-06-15 12:53:51 +00:00
______________________________________________________________________
## Domain Examples
This folder contains older examples. You should instead use the examples
2023-03-15 19:19:41 +00:00
in [Lightning Bolts ](https://lightning.ai/docs/pytorch/latest/ecosystem/bolts.html )
2022-06-15 12:53:51 +00:00
for advanced use cases.