Repolode
mrdbourke

mrdbourke/pytorch-deep-learning

A free, code-first online course and notebook collection teaching deep learning with PyTorch, from fundamentals through model deployment.

Stars
19,374
Forks
5,241
Open issues
150
Last commit
last month

What is it?

This repository holds the materials for the Zero to Mastery "Learn PyTorch for Deep Learning" course. The content is organized as ten numbered Google Colab notebooks, each with annotated code, images, slides, and exercises with solutions. The sections run from PyTorch fundamentals and the training workflow through neural network classification, computer vision, custom datasets, modular Python scripts, transfer learning, experiment tracking, paper replication, and model deployment.

The course is taught in an apprenticeship style: the instructor writes PyTorch code and learners write it alongside. The full materials are also published as a readable online book at learnpytorch.io, and the first five sections are available as a long YouTube video. Throughout the course a single FoodVision image classifier project serves as the running example for three milestone projects.

The course targets beginners in machine learning who have some Python experience and are comfortable with Jupyter notebooks or Google Colab. It also includes a PyTorch cheatsheet, a PyTorch 2.0 quick tutorial, and a list of extra learning resources.

Key features

  • 01Ten sequential notebooks covering PyTorch from tensor basics to model deployment.
  • 02Each section includes exercises, solutions, and extra-curriculum suggestions.
  • 03Code runs in Google Colab, with an option to use Jupyter locally.
  • 04Free online book version available at learnpytorch.io.
  • 05Includes a PyTorch cheatsheet and a PyTorch 2.0 introduction.

Use cases

  • Learning PyTorch from scratch as a machine learning beginner.
  • Following a hands-on course to build a computer vision classifier with transfer learning.
  • Studying how to structure PyTorch code into modular Python scripts.
  • Practicing experiment tracking and model deployment with a complete example project.

Quick start

  1. 1

    Open the online book at learnpytorch.io and pick a section

  2. 2

    Click the Open in Colab button at the top of the section

  3. 3

    Press SHIFT+Enter a few times to run the code cells

Things to know

  • Course materials are mainly designed to run in Google Colab, so local setup is not the primary path.
  • Designed for beginners, so it may not suit developers with substantial machine learning experience.

In collections

Topics

FAQ

What is pytorch-deep-learning?
A free, code-first online course and notebook collection teaching deep learning with PyTorch, from fundamentals through model deployment. This repository holds the materials for the Zero to Mastery "Learn PyTorch for Deep Learning" course. The content is organized as ten numbered Google Colab notebooks, each with annotated code, images, slides, and exercises with solutions. The sections run from PyTorch fundamentals and the training workflow through neural network classification, computer vision, custom datasets, modular Python scripts, transfer learning, experiment tracking, paper replication, and model deployment.
Is pytorch-deep-learning free to use? What license does it have?
pytorch-deep-learning is open source under the MIT license. Check the license terms before using it in commercial products.
Is pytorch-deep-learning still maintained?
Updated within 6 months. The last commit to pytorch-deep-learning was on Sep 27, 2026.
What can I use pytorch-deep-learning for?
Learning PyTorch from scratch as a machine learning beginner. Following a hands-on course to build a computer vision classifier with transfer learning. Studying how to structure PyTorch code into modular Python scripts. Practicing experiment tracking and model deployment with a complete example project.
How do I install pytorch-deep-learning?
Open the online book at learnpytorch.io and pick a section Click the Open in Colab button at the top of the section Press SHIFT+Enter a few times to run the code cells
Where can I get pytorch-deep-learning?
The source code and installation instructions are on GitHub: https://github.com/mrdbourke/pytorch-deep-learning

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects