Pre-Labs 1-3: CNNs, Transformers, PyTorch Lightning
This first set of "review" labs covers deep learning fundamentals and introduces two of the core libraries we will use for model training: PyTorch and PyTorch Lightning.
These labs are optional -- it's possible to get most of the value out of the main set of labs without detailed knowledge of the material here.
But if you find yourself getting tripped up on PyTorch or Lightning details or on the model architecture, come back and review these labs.
The videos above give a quick high-level overview of each lab.
If you need a refresher or a deeper dive on any of the topics or libraries, then work through the notebooks as well. We recommend only completing the exercises for the labs that are of most interest to you.
Click the badges below to access individual lab notebooks on Colab and videos on YouTube
Lab | Colab | Video |
---|---|---|
Lab 01: Deep Neural Networks in PyTorch | ||
Lab 02a: PyTorch Lightning | ||
Lab 02b: Training a CNN on Synthetic Handwriting Data | ||
Lab 03: Transformers and Paragraphs |
Running the labs
One-click setup on Colab
To make it as easy as possible to run the labs, we've made them compatible with Google Colab.
Wherever you see an "Open in Colab" badge, like the one below, just click on it and you'll be dropped into a hosted notebook environment for the lab, complete with free GPU. The badge below opens Lab 01, on PyTorch.
You can read more here.
Setup on your own Linux machine
If you have a Linux machine with an NVIDIA GPU and drivers, either locally or in the cloud, you can also run the labs there. The video above and text instructions here should be enough to get you going.
Don't get stuck on setup!
Remember that Google Colab is always there as an option if you run into issues while setting up.
Rather than getting frustrated with some obnoxious library linking or driver issue that's irrelevant to the material you are really trying to learn and getting stuck in an installation quagmire, just run the labs on Colab so you can get back to learning about machine learning!