PyTorch Lightning¶ All Tutorial 1: Introduction to PyTorch This tutorial will give a short introduction to PyTorch basics, and get you setup for writing your own neural networks. This notebook is part of a lecture series on Deep... GPU/TPU,UvA-DL-Course Tutorial 2: Activation Functions In this tutorial, we will take a closer look at (popular) activation functions and investigate their effect on optimization properties in neural networks. Activation functions... GPU/TPU,UvA-DL-Course Tutorial 3: Initialization and Optimization In this tutorial, we will review techniques for optimization and initialization of neural networks. When increasing the depth of neural networks, there are various challenges... Image,Initialization,Optimizers,GPU/TPU,UvA-DL-Course Tutorial 4: Inception, ResNet and DenseNet In this tutorial, we will implement and discuss variants of modern CNN architectures. There have been many different architectures been proposed over the past few years. Some... Image,GPU/TPU,UvA-DL-Course Tutorial 5: Transformers and Multi-Head Attention In this tutorial, we will discuss one of the most impactful architectures of the last 2 years: the Transformer model. Since the paper Attention Is All You Need by Vaswani et... Text,GPU/TPU,UvA-DL-Course Tutorial 6: Basics of Graph Neural Networks In this tutorial, we will discuss the application of neural networks on graphs. Graph Neural Networks (GNNs) have recently gained increasing popularity in both applications... Graph,GPU/TPU,UvA-DL-Course Tutorial 7: Deep Energy-Based Generative Models In this tutorial, we will look at energy-based deep learning models, and focus on their application as generative models. Energy models have been a popular tool before the... Image,GPU/TPU,UvA-DL-Course Tutorial 8: Deep Autoencoders In this tutorial, we will take a closer look at autoencoders (AE). Autoencoders are trained on encoding input data such as images into a smaller feature vector, and afterward,... Image,GPU/TPU,UvA-DL-Course Tutorial 9: Normalizing Flows for Image Modeling In this tutorial, we will take a closer look at complex, deep normalizing flows. The most popular, current application of deep normalizing flows is to model datasets of... Image,GPU/TPU,UvA-DL-Course Tutorial 10: Autoregressive Image Modeling In this tutorial, we implement an autoregressive likelihood model for the task of image modeling. Autoregressive models are naturally strong generative models that constitute... Image,GPU/TPU,UvA-DL-Course Tutorial 11: Vision Transformers In this tutorial, we will take a closer look at a recent new trend: Transformers for Computer Vision. Since [Alexey Dosovitskiy et... Image,GPU/TPU,UvA-DL-Course Tutorial 12: Meta-Learning - Learning to Learn In this tutorial, we will discuss algorithms that learn models which can quickly adapt to new classes and/or tasks with few samples. This area of machine learning is called... Few-shot-learning,MAML,ProtoNet,GPU/TPU,UvA-DL-Course Tutorial 13: Self-Supervised Contrastive Learning with SimCLR In this tutorial, we will take a closer look at self-supervised contrastive learning. Self-supervised learning, or also sometimes called unsupervised learning, describes the... Image,Self-Supervised,Contrastive-Learning,GPU/TPU,UvA-DL-Course GPU and batched data augmentation with Kornia and PyTorch-Lightning In this tutorial we will show how to combine both Kornia.org and PyTorch Lightning to perform efficient data augmentation to train a simpple model using the GPU in batch mode... Image,GPU/TPU,Lightning-Examples Barlow Twins Tutorial This notebook describes the self-supervised learning method Barlow Twins. Barlow Twins differs from other recently proposed algorithms as it doesn't fall under the category of... Image,Self-Supervised,GPU/TPU,Lightning-Examples PyTorch Lightning Basic GAN Tutorial How to train a GAN! Main takeaways: 1. Generator and discriminator are arbitrary PyTorch modules. 2. training_step does both the generator and discriminator training. Image,GPU/TPU,Lightning-Examples PyTorch Lightning CIFAR10 ~94% Baseline Tutorial Train a Resnet to 94% accuracy on Cifar10! Image,GPU/TPU,Lightning-Examples PyTorch Lightning DataModules This notebook will walk you through how to start using Datamodules. With the release of `pytorch-lightning` version 0.9.0, we have included a new class called... GPU/TPU,Lightning-Examples Introduction to Pytorch Lightning In this notebook, we'll go over the basics of lightning by preparing models to train on the [MNIST Handwritten Digits dataset](https://en.wikipedia.org/wiki/MNIST_database). Image,GPU/TPU,Lightning-Examples TPU training with PyTorch Lightning In this notebook, we'll train a model on TPUs. Updating one Trainer flag is all you need for that. The most up to documentation related to TPU training can be found... Image,GPU/TPU,Lightning-Examples How to train a Deep Q Network Main takeaways: 1. RL has the same flow as previous models we have seen, with a few additions 2. Handle unsupervised learning by using an IterableDataset where the dataset... RL,GPU/TPU,Lightning-Examples Finetune Transformers Models with PyTorch Lightning This notebook will use HuggingFace's `datasets` library to get data, which will be wrapped in a `LightningDataModule`. Then, we write a class to perform text classification on... Text,GPU/TPU,Lightning-Examples Getting started Lightning in 2 steps How to organize PyTorch into Lightning Rapid prototyping templates LightningLite - Stepping Stone to Lightning Best practices Speed up model training Managing Data Style guide Lightning project template Benchmark with vanilla PyTorch Lightning API LightningModule Minimal Example Training Inference LightningModule API Trainer Basic use Under the hood Trainer in Python scripts Validation Testing Reproducibility Trainer flags Trainer class API Common Use Cases Cloud Training Computing cluster Child Modules Debugging Early stopping Hyperparameters Inference in Production IPU support Lightning CLI and config files Learning Rate Finder Loggers Multi-GPU training Model Parallel GPU Training Mixed Precision Training Saving and loading weights Fault-tolerant Training Custom Checkpointing IO Optimization Performance and Bottleneck Profiler Training Type Plugins Registry Sequential Data Single GPU Training Training Tricks Pruning and Quantization Transfer Learning TPU support Test set Optional extensions Accelerators Accelerator API Callback Examples Built-in Callbacks Persisting State Best Practices Available Callback hooks LightningDataModule Why do I need a DataModule? What is a DataModule LightningDataModule API Using a DataModule DataModules without Lightning Hyperparameters in DataModules Logging Logging from a LightningModule Make a custom logger Control logging frequency Progress Bar Configure console logging Logging hyperparameters Snapshot code Supported Loggers Plugins TrainingTypePlugin PrecisionPlugin Training Type Plugins Precision Plugins Cluster Environments Loops Understanding the default Trainer loop Overriding the default loops Creating a new loop from scratch Loop API Subloops Built-in Loops Available Loops in Lightning Flash Advanced Examples Advanced Features Tutorials Step-by-step walk-through PyTorch Lightning 101 class From PyTorch to PyTorch Lightning [Blog] From PyTorch to PyTorch Lightning [Video] Tutorial 1: Introduction to PyTorch Tutorial 2: Activation Functions Tutorial 3: Initialization and Optimization Tutorial 4: Inception, ResNet and DenseNet Tutorial 5: Transformers and Multi-Head Attention Tutorial 6: Basics of Graph Neural Networks Tutorial 7: Deep Energy-Based Generative Models Tutorial 8: Deep Autoencoders Tutorial 9: Normalizing Flows for Image Modeling Tutorial 10: Autoregressive Image Modeling Tutorial 11: Vision Transformers Tutorial 12: Meta-Learning - Learning to Learn Tutorial 13: Self-Supervised Contrastive Learning with SimCLR GPU and batched data augmentation with Kornia and PyTorch-Lightning Barlow Twins Tutorial PyTorch Lightning Basic GAN Tutorial PyTorch Lightning CIFAR10 ~94% Baseline Tutorial PyTorch Lightning DataModules Introduction to Pytorch Lightning TPU training with PyTorch Lightning How to train a Deep Q Network Finetune Transformers Models with PyTorch Lightning API References API References Accelerator API Core API Callbacks API Loggers API Loop API Plugins API Profiler API Trainer API LightningLite API Tuner API Utilities API Bolts Bolts Examples Community Examples PyTorch Ecosystem Examples Autoencoder BYOL DQN GAN GPT-2 Image-GPT SimCLR VAE Partner Domain Frameworks Conversational AI Community Contributor Covenant Code of Conduct Contributing How to become a core contributor Lightning Governance Changelog Indices and tables¶ Index Search Page