Sahin Boydas
Random theme
Select theme
Dive into Deep Learning cover

Dive into Deep Learning: Why Engineers and Teachers Keep Using It

by Aston Zhang, Zachary C. Lipton, Mu Li & Alexander J. Smola · Cambridge University Press, 2024

By Sahin Boydas✓ Updated December 2026On 2 book lists

Dive into Deep Learning is a textbook written as a set of Jupyter notebooks. Aston Zhang, Zachary Lipton, Mu Li and Alex Smola built it so that every equation sits next to code you can run. It covers the path from linear regression to convolutional and recurrent networks, attention, transformers and optimization. Cambridge University Press prints it, and the full text stays free at d2l.ai.

Engineers like it because nothing stays abstract for long. A chapter explains an idea, derives it, then implements it from scratch before showing the short library version. That order makes it easy to see what a framework call actually does.

Teachers use it for the same reason. The book's site lists more than 500 universities in over 70 countries that have taught from it.

How Tech People Read It

Jensen Huang

NVIDIA's founder endorsed the book in the praise printed with it. His company's GPUs train many of the models the book teaches, so his backing tells engineers the material matches what the industry builds.

Bernhard Schölkopf

The director of the Max Planck Institute for Intelligent Systems singled out the hands-on side. He pointed to the Jupyter notebooks woven through the text as the feature that sets it apart in the machine learning literature.

Colin Raffel

Raffel, a researcher known for work on large language models, praised the balance between practice and explanation. Readers who want to understand a method and also make it run get both in the same chapter.

Self-taught engineers

Developers moving into machine learning use it as a free course. They work through a notebook, change a parameter, and watch what happens to the loss, which builds intuition faster than reading alone.

The Main Ideas

  • Each concept is explained in math, then implemented from scratch, then rebuilt with a framework's high-level API.
  • Training a network is an optimization problem, and the choice of optimizer and learning rate shapes the result.
  • Convolutions exploit the structure of images, so a model needs far fewer parameters than a fully connected one.
  • Attention lets a model weigh every part of its input, and transformers build entire architectures from it.
  • Good results depend on practical details such as initialization, regularization and careful data handling.

Who Should Read It

Read it if you can write Python, remember some linear algebra and calculus, and want to understand deep learning by running it. It works for a self-study plan or a university course. Skip it if you only need to call a hosted model through an API, or if you want a short conceptual overview without code.

The Book

Cover of Dive into Deep Learning by Aston Zhang, Zachary C. Lipton, Mu Li & Alexander J. Smola

Book 01 Beginner to intermediate

Dive into Deep Learning

by Aston Zhang, Zachary C. Lipton, Mu Li & Alexander J. Smola

Publisher
Cambridge University Press, 2024
Free online
Yes, at d2l.ai
Goodreads
4.47 of 5 from 29 ratings

Why read it

Runnable code for every chapter, free to read online.

What people said

  • “Dive into Deep Learning strikes an excellent balance between hands-on learning and in-depth explanation.”

    Colin Raffel, assistant professor, UNC Chapel Hill; endorsement printed with the book thenile.co.nz ↗

  • “… a highly welcome addition to the machine learning literature, with a focus on hands-on experience implemented via the integration of Jupyter notebooks”

    Bernhard Schölkopf, director, Max Planck Institute for Intelligent Systems; endorsement printed with the book thenile.co.nz ↗

  • “Dive into Deep Learning is an excellent text on deep learning”

    Jensen Huang, founder and CEO, NVIDIA; endorsement printed with the book thenile.co.nz ↗

Watch

Dive into Deep Learning D2L at WAIC'20Alex SmolaCo-author Alex Smola presents the book and its project at WAIC 2020.
Dive into Deep Learning - Lecture 1: PyTorch Tensor Basics, Operations, Functions, and BroadcastingDr. Data ScienceThe first lecture of a video course taught from the book.

On These Book Lists

Frequently Asked Questions

Is Dive into Deep Learning free?

Yes. The full book is free to read at d2l.ai, with notebooks you can download and run. Cambridge University Press sells a printed edition.

Which framework does Dive into Deep Learning use?

The main code is in PyTorch. The site also offers versions in other frameworks, such as JAX and TensorFlow, for many chapters.

Is Dive into Deep Learning good for beginners?

It suits beginners who already program in Python and know basic linear algebra, calculus and probability. The book includes a preliminaries chapter to refresh those topics.

Who wrote Dive into Deep Learning?

Aston Zhang, Zachary C. Lipton, Mu Li and Alexander J. Smola wrote the first edition. Several of them worked at Amazon when the project began.

Dive into Deep Learning or Deep Learning with Python?

Deep Learning with Python is the gentler start and focuses on building models with Keras. Dive into Deep Learning goes deeper into the math and implements each method from scratch.