mrdbourke /pytorch-deep-learning
Materials for the Learn PyTorch for Deep Learning: Zero to Mastery course.
★ 19,418⑂ 5,244👁 155⑃ 203● 253▤ 0
More from this author
+5
Daily
19,418
stars
5,244
forks
155
watchers
203
prs
253
issues
0
releases
README
Learn PyTorch for Deep Learning
Welcome to the Zero to Mastery Learn PyTorch for Deep Learning course, the second best place to learn PyTorch on the internet (the first being the PyTorch documentation).
Update April 2023: New tutorial for PyTorch 2.0 is live! And because PyTorch 2.0 is an additive (new features) and backward-compatible release, all previous course materials will still work with PyTorch 2.0.
Contents of this page
Course materials/outline
About this course
Status (the progress of the course creation)
Log (a log of the course material creation process)
Course materials/outline
📖 Online book version: All of course materials are available in a readable online book at learnpytorch.io.
🎥 First five sections on YouTube: Learn PyTorch in a day by watching the first 25 hours of material.
🔬 Course focus: code, code, code, experiment, experiment, experiment.
🏃♂️ Teaching style: https://sive.rs/kimo.
🤔 Ask a question: See the GitHub Discussions page for existing questions/ask your own.
| Section | What does it cover? | Exercises & Extra-curriculum | Slides |
| ----- | ----- | ----- | ----- |
| 00 - PyTorch Fundamentals | Many fundamental PyTorch operations used for deep learning and neural networks. | Go to exercises & extra-curriculum | Go to slides |
| 01 - PyTorch Workflow | Provides an outline for approaching deep learning problems and building neural networks with PyTorch. | Go to exercises & extra-curriculum | Go to slides |
| 02 - PyTorch Neural Network Classification | Uses the PyTorch workflow from 01 to go through a neural network classification problem. | Go to exercises & extra-curriculum | Go to slides |
| 03 - PyTorch Computer Vision | Let's see how PyTorch can be used for computer vision problems using the same workflow from 01 & 02. | Go to exercises & extra-curriculum | Go to slides |
| 04 - PyTorch Custom Datasets | How do you load a custom dataset into PyTorch? Also we'll be laying the foundations in this notebook for our modular code (covered in 05). | Go to exercises & extra-curriculum | Go to slides |
| 05 - PyTorch Going Modular | PyTorch is designed to be modular, let's turn what we've created into a series of Python scripts (this is how you'll often find PyTorch code in the wild). | Go to exercises & extra-curriculum | Go to slides |
| 06 - PyTorch Transfer Learning | Let's take a well performing pre-trained model and adjust it to one of our own problems. | Go to exercises & extra-curriculum | Go to slides |
| 07 - Milestone Project 1: PyTorch Experiment Tracking | We've built a bunch of models... wouldn't it be good to track how they're all going? | Go to exercises & extra-curriculum | Go to slides |
| 08 - Milestone Project 2: PyTorch Paper Replicating | PyTorch is the most popular deep learning framework for machine learning research, let's see why by replicating a machine learning paper. | Go to exercises & extra-curriculum | Go to slides |
| 09 - Milestone Project 3: ModeTop issues
#1051Decision boundaries not being plotted7 comments · 2024-08-21#926Clarification for discussion of shared memory in `torch.from_numpy(ndarray)` and `torch.Tensor.numpy()`6 comments · 2024-05-15#759Unable to get Reproducibilty of Tensors on GPU | Exercises | PyTorch Fundamentals5 comments · 2023-12-18#329Import "helper_functions" could not be resolved(reportMissingImports)5 comments · 2023-03-06#1171The definition of `Precision` in 02_pytorch_classification.ipynb is wrong.4 comments · 2025-01-27#1061problems with setting up dataloader3 comments · 2024-08-27#1025Plot loss Curve error4 comments · 2024-07-28#97504_pytorch_custom_datasets_video.ipynb - RuntimeError: only batches of spatial targets supported (3D tensors) but got targets of dimension: 14 comments · 2024-06-16
Discussions
#1385heyyy everyone0 comments · 2026-10-31#1384how i can build some ai0 comments · 2026-10-25#1383tensor multiplication2 comments · 2026-10-07#1381about seed and reproducibility1 comments · 2026-09-21#1380How does torch.nn.module work1 comments · 2026-09-14#1379Section 05: Problem to open the notebook2 comments · 2026-09-08#137802 Neural Network Classification -tried using circle equation instead of ReLU but didn't work1 comments · 2026-08-19#1377Adding dynamic parameters : 02. PyTorch Neural Network Classification - 6.2 Building a model with non-linearity0 comments · 2026-08-16