← all repositories
d2l-ai/d2l-zh

The deep learning book 500 universities use in Chinese and open source

An open-source Chinese textbook that binds math, code, and critical thinking into a single, living resource for deep learning.

79.1k stars Python Learning
d2l-zh
Velocity · 7d
+30
★ / day
Trend
accelerating
star history

What it does This is the Chinese edition of Dive into Deep Learning, an open-source textbook that teaches deep learning by mixing mathematical foundations with executable code. The project provides a unified resource where concepts, background knowledge, and implementation live side-by-side, aimed at readers who want to understand the math and actually build things. It is freely available online and backed by a discussion forum for technical Q&A.

The interesting bit Instead of separating theory from practice, the book embeds runnable code directly alongside the math, so you can modify a formula’s implementation and see the result immediately. The authors also treat the book as a continuously iterated product rather than a static artifact, updating content to track the field’s rapid evolution.

Key highlights

  • Adopted as a textbook or reference by more than 500 universities across over 70 countries (for both Chinese and English versions).
  • Published in print by Cambridge University Press, yet the full text and code remain freely accessible online.
  • Covers the full stack: critical thinking, mathematical derivations, and engineering skills in one place.
  • Includes companion teaching resources, such as slides and video references from a UC Berkeley introductory course.
  • Community-driven updates via GitHub contributions and a dedicated Chinese-language discussion forum.

Verdict Worth bookmarking if you are a Chinese-speaking developer or student who wants to learn deep learning by breaking code, not just reading proofs. Skip it if you are already a seasoned researcher looking for frontier survey papers rather than foundational pedagogy.

Frequently asked

What is d2l-ai/d2l-zh?
An open-source Chinese textbook that binds math, code, and critical thinking into a single, living resource for deep learning.
Is d2l-zh open source?
Yes — d2l-ai/d2l-zh is open source, released under the Apache-2.0 license.
What language is d2l-zh written in?
d2l-ai/d2l-zh is primarily written in Python.
How popular is d2l-zh?
d2l-ai/d2l-zh has 79.1k stars on GitHub and is currently accelerating.
Where can I find d2l-zh?
d2l-ai/d2l-zh is on GitHub at https://github.com/d2l-ai/d2l-zh.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.