d2l-ai

    d2l-ai/d2l-en

    Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.

    computer-vision
    deep-learning
    machine-learning
    nlp
    book
    data-science
    gaussian-processes
    hyperparameter-optimization
    jax
    kaggle
    keras
    mxnet
    natural-language-processing
    notebook
    python
    pytorch
    recommender-system
    reinforcement-learning
    tensorflow
    Python
    NOASSERTION
    28.7K stars
    5.0K forks
    28.7K watching
    Updated 4/20/2026
    View on GitHub
    Backblaze Advertisement

    Loading star history...

    Health Score

    75

    Weekly Growth

    +0

    +0.0% this week

    Contributors

    1

    Total contributors

    Open Issues

    201

    Generated Insights

    About d2l-en

    D2L.ai: Interactive Deep Learning Book with Multi-Framework Code, Math, and Discussions

    Continuous Integration

    Book website | STAT 157 Course at UC Berkeley

    The best way to understand deep learning is learning by doing.

    This open-source book represents our attempt to make deep learning approachable, teaching you the concepts, the context, and the code. The entire book is drafted in Jupyter notebooks, seamlessly integrating exposition figures, math, and interactive examples with self-contained code.

    Our goal is to offer a resource that could

    1. be freely available for everyone;
    2. offer sufficient technical depth to provide a starting point on the path to actually becoming an applied machine learning scientist;
    3. include runnable code, showing readers how to solve problems in practice;
    4. allow for rapid updates, both by us and also by the community at large;
    5. be complemented by a forum for interactive discussion of technical details and to answer questions.

    Universities Using D2L

    If you find this book useful, please star (★) this repository or cite this book using the following bibtex entry:

    @book{zhang2023dive,
        title={Dive into Deep Learning},
        author={Zhang, Aston and Lipton, Zachary C. and Li, Mu and Smola, Alexander J.},
        publisher={Cambridge University Press},
        note={\url{https://D2L.ai}},
        year={2023}
    }
    

    Endorsements

    "In less than a decade, the AI revolution has swept from research labs to broad industries to every corner of our daily life. Dive into Deep Learning is an excellent text on deep learning and deserves attention from anyone who wants to learn why deep learning has ignited the AI revolution: the most powerful technology force of our time."

    — Jensen Huang, Founder and CEO, NVIDIA

    "This is a timely, fascinating book, providing with not only a comprehensive overview of deep learning principles but also detailed algorithms with hands-on programming code, and moreover, a state-of-the-art introduction to deep learning in computer vision and natural language processing. Dive into this book if you want to dive into deep learning!"

    — Jiawei Han, Michael Aiken Chair Professor, University of Illinois at Urbana-Champaign

    "This is a highly welcome addition to the machine learning literature, with a focus on hands-on experience implemented via the integration of Jupyter notebooks. Students of deep learning should find this invaluable to become proficient in this field."

    — Bernhard Schölkopf, Director, Max Planck Institute for Intelligent Systems

    "Dive into Deep Learning strikes an excellent balance between hands-on learning and in-depth explanation. I've used it in my deep learning course and recommend it to anyone who wants to develop a thorough and practical understanding of deep learning."

    — Colin Raffel, Assistant Professor, University of North Carolina, Chapel Hill

    Contributing (Learn How)

    This open source book has benefited from pedagogical suggestions, typo corrections, and other improvements from community contributors. Your help is valuable for making the book better for everyone.

    Dear D2L contributors, please email your GitHub ID and name to d2lbook.en AT gmail DOT com so your name will appear on the acknowledgments. Thanks.

    License Summary

    This open source book is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See LICENSE file.

    The sample and reference code within this open source book is made available under a modified MIT license. See the LICENSE-SAMPLECODE file.

    Chinese version | Discuss and report issues | Code of conduct

    Discover Repositories

    Search across tracked repositories by name or description