Sahin Boydas
Random theme
Select theme
Deep Learning for Coders with fastai and PyTorch cover

Deep Learning for Coders with fastai and PyTorch: train first, understand later

by Jeremy Howard & Sylvain Gugger · O'Reilly, 2020

By Sahin Boydas✓ Updated December 2026On 1 book list

Jeremy Howard was president of Kaggle and founded the medical AI company Enlitic before he and Rachel Thomas started fast.ai, a free course meant to bring deep learning to people without PhDs. Deep Learning for Coders with fastai and PyTorch, written with Sylvain Gugger and published by O'Reilly in 2020, is the book of that course. Its chapters were written as Jupyter notebooks, and those notebooks are free on GitHub.

The book teaches top-down. In the first chapter you train an image classifier in a few lines. In the second you build a small app that tells bear species apart and put it online. Then the book works backward, opening each layer: how stochastic gradient descent learns, how a convolution works, how collaborative filtering and tabular models are built, how a language model is trained. By the end you write your own training loop, optimizer and ResNet from scratch.

A chapter on data ethics sits near the front, on purpose, with real cases of models causing harm. The fast.ai course has been rerecorded since 2020 and now uses some newer tools, while the book keeps its original text and the fastai library it was written for.

How Tech People Read It

Peter Norvig

Norvig, director of research at Google and coauthor of the standard AI textbook, called it a top resource for programmers who want real skill in deep learning, in praise collected on the fast.ai site. His emphasis is on the reader: programmers who learn best by running code. The book is written for exactly them.

Hal Varian

Varian, Google's chief economist, used his endorsement to tell practitioners they do not need a doctorate to solve real problems with deep learning. That is the book's founding idea. For managers and analysts outside research, it is a statement that the field is open to them.

Emmanuel Ameisen

Ameisen, author of Building Machine Learning Powered Applications, wrote that he wished a book like this had existed when he started in machine learning. His own book is about taking models into products, and he values that this one gets readers to a deployed model in the second chapter.

The Main Ideas

  • You can train useful deep learning models before you understand all the math behind them.
  • Transfer learning, starting from a pretrained model, gets strong results with little data and compute.
  • Getting a model into production early shows you what matters about the data and the problem.
  • Every part of a training pipeline, from the data loader to the optimizer, can be built from simple pieces you can write yourself.
  • Data ethics belongs in the first lessons, because model errors and biases harm real people.

Who Should Read It

Read it if you can program in Python and want to build working models quickly, then understand them deeply. It pairs well with the free video course. Skip it if you prefer theory first, or want a framework-neutral treatment; Understanding Deep Learning or Deep Learning with Python on the same list suit that better, and some fastai code in the book now needs adjusting.

The Book

Cover of Deep Learning for Coders with fastai and PyTorch by Jeremy Howard & Sylvain Gugger

Book 01 Beginner

Deep Learning for Coders with fastai and PyTorch

by Jeremy Howard & Sylvain Gugger

Publisher
O'Reilly, 2020
Goodreads
4.4 of 5 from 282 ratings

Why read it

The book of the fast.ai course. It has you train image, text, tabular and recommendation models in the first chapters, then opens them up layer by layer until you build a training loop, optimisers and a ResNet from scratch. Chapters on putting a model into production and on data ethics sit alongside. Read it if you learn by doing and want results before the maths. The chapters are free as Jupyter notebooks.

What people said

  • “Altogether, this is one of the best sources for a programmer to become proficient in deep learning.”

    Peter Norvig, Director of Research, Google, in the book's praise on the fast.ai course site course.fast.ai ↗

  • “Don’t let those PhDs have all the fun—you too can use deep learning to solve practical problems.”

    Hal Varian, Emeritus Professor, UC Berkeley; Chief Economist, Google course.fast.ai ↗

  • “I wish there was a book like this when I started learning ML, it is an instant classic!”

    Emmanuel Ameisen, author of Building Machine Learning Powered Applications course.fast.ai ↗

Watch

Deep Learning for Coders with fastai and PyTorch: Preview of Lesson 1PyTorch FoundationJeremy Howard previews the first lesson of the book.
Practical Deep Learning for Coders: Lesson 1Jeremy HowardLesson 1 of the free fast.ai course, which is built on the same notebooks as the book.

On These Book Lists

Frequently Asked Questions

Is Deep Learning for Coders free?

The full text is free as Jupyter notebooks in the fastbook repository on GitHub, for personal use. O'Reilly sells the printed book.

Do I need math to read Deep Learning for Coders?

Only high school math to start. The book introduces the math it needs as it goes, after you have seen the code work.

Is Deep Learning for Coders still relevant?

The core teaching holds up. The fastai library and the course have moved on since 2020, so some code needs updates, and the book predates large language models.

What is the difference between the book and the fast.ai course?

The course videos follow the same notebooks and add live explanation. Many readers watch a lesson, then read the matching chapter.