@QingQ77: 'Dive into Deep Learning' is an excellent introductory book, but its update speed struggles to keep pace with the field's development. Since the Transformer, content like CLIP, Diffusion, vLLM, and more has proliferated. While online resources are abundant, they are highly fragmented—today you study Attention, tomorrow LoRA, the day after...
Summary
This project is a systematic deep learning notes repository covering PyTorch, Transformers, generative models, and more. It aims to address the fragmentation of learning materials and provides code implementations along with practical guides.
View Cached Full Text
Cached at: 05/10/26, 02:21 AM
Dive into Deep Learning is a great introductory book, but its update pace hasn’t kept up with the development of this field. Since the advent of Transformers, content like CLIP, Diffusion, and vLLM has become increasingly prominent. Although online materials are abundant, they are very scattered. One day you study Attention, the next day LoRA, and the day after diffusion models. In the end, what remains are often just fragments, making it hard to truly form a coherent system. This project is currently primarily maintained and published using Quarto Markdown, and built as a static website. Quarto Markdown is a plain-text format based on Markdown, suitable for version control and continuous updates. Content mainly includes:
- PyTorch Core and Engineering Practices
- Attention Mechanisms and Transformer Series Models
- Generative Models, such as GANs, VAEs, Diffusion
- Multimodal Models, such as CLIP, etc.
- Hugging Face Ecosystem and Practical Applications
- Practical Notes from Data Processing to Training, Inference, and Deployment
https://github.com/jshn9515/deep-learning-notes…
jshn9515/deep-learning-notes
Source: https://github.com/jshn9515/deep-learning-notes
Deep Learning Notes
English | Simplified Chinese
dnnl-title
For a long time, I struggled with how to learn deep learning effectively.
Dive into Deep Learning is an excellent introductory book, but its update pace has gradually fallen behind the speed of progress in this field. Since the rise of Transformers, topics like CLIP, Diffusion, and vLLM have become increasingly important. Although there is no shortage of online material, most of it is scattered. One day you study Attention, the next day LoRA, and the day after that diffusion models. In the end, what often remains are only fragments, and it is hard to build a truly coherent understanding.
So I decided to systematically organize what I have learned. From the fundamentals of PyTorch, to Attention and Transformers, and then to GANs, CLIP, Stable Diffusion, and SAM3, I try to explain the core ideas, mathematical derivations, code implementations, and common pitfalls of each topic as clearly as possible. This repository is the public version of those notes. If you are also learning deep learning on your own, I hope it can be helpful to you.
📌 About These Notes
This project is primarily maintained and published in Quarto Markdown, and built as a static website. Quarto Markdown is a plain-text format based on Markdown, which makes it well suited for version control and continuous updates.
The content mainly includes:
- PyTorch fundamentals and engineering practice
- Attention mechanisms and Transformer-based models
- Generative models, such as GANs, VAEs, and diffusion models
- Multimodal models, such as CLIP
- The Hugging Face ecosystem and its practical use
- Practical notes covering the full workflow from data processing to training, inference, and deployment
To make the material easier to use, I also periodically prepare corresponding Jupyter Notebook versions:
- Monthly Releases: provide relatively stable packaged Notebook versions
- GitHub Actions Artifacts: provide the latest build outputs
If you want a stable version, please check the Releases page. If you want the latest version, please check the Artifacts in GitHub Actions.
If you prefer generating Notebook files from the source yourself, you can also install Quarto locally and use the quarto convert command to convert .qmd files into Jupyter Notebooks. For example:
bash quarto convert path/to/file.qmd
🔧 Environment
All code in this repository has been tested in the following environment:
- Python 3.14
- PyTorch 2.11
See requirements.txt for the full list of dependencies.
Before running the related content, please first enter the dnnl directory and install the dnnl library according to the instructions in dnnl/README.md. This library contains some custom implementations and utility functions used throughout the notes, and many examples will not run properly without it.
This project uses Transformers v5. If you are following other repositories or tutorials based on v4, there may be significant API differences (such as tokenizers and quantization configurations). Please refer to the official migration guide (https://github.com/huggingface/transformers/blob/main/MIGRATION_GUIDE_V5.md) for adjustments.
🤝 Contributions
If you find an explanation unclear, notice a problem in the code, or have topics you would like me to add, feel free to contribute through Issues or Pull Requests.
Possible contributions include, but are not limited to:
- Pointing out errors or inaccuracies in the notes
- Adding clearer explanations, derivations, or code comments
- Suggesting improvements to structure, wording, or formatting
- Recommending topics or practical cases for future coverage
Since this is a project I am building and refining while learning, there will inevitably be places where my understanding is incomplete or my explanations are not precise enough. I read all helpful feedback carefully and try to improve the notes whenever possible.
If you would like to make a larger change, it is recommended to open an Issue first with a brief description so that we can discuss it in advance.
🙏 Acknowledgements
While organizing these notes, I have benefited from many excellent resources. In particular, Dive into Deep Learning by Aston Zhang, Zachary C. Lipton, Mu Li, and Alexander J. Smola, as well as Professor Hung-yi Lee’s deep learning lecture series, have helped me greatly in understanding many core concepts in deep learning.
This project website is built with Quarto (https://quarto.org/).
📄 License
- The notes in this repository are licensed under CC BY-NC 4.0.
- The
dnnllibrary is licensed under MIT.
Similar Articles
@Xx15573208: I've read many articles about Transformers and understand the theory, but when I actually sit down to write code, I have no idea where to start. LLMs-from-scratch is specifically designed to solve this problem: it accompanies the book "Build a Large Language Model" and guides you through implementing GPT from scratch using PyTorch…
LLMs-from-scratch is a GitHub repository that accompanies the book "Build a Large Language Model," providing complete code to implement GPT from scratch with PyTorch, covering the full pipeline including pretraining, fine-tuning, and RLHF. It has gained 93K+ stars and is ideal for developers who want to deeply understand the principles behind large language models.
@antiAIvo: I've gone through the basics of the Transformer architecture, inference, and training process. Next, I'll start a new l…
The author introduces a learning track on large model inference optimization, covering topics such as KV Cache, Continuous Batching, PagedAttention, and a comparison between vLLM and SGLang, highlighting it as cutting-edge in AI deployment.
Discover AI: A Learning Guide - 51 hands-on labs for learning how AI actually works.
Discover AI 是一款离线学习应用,提供 51 个动手实验,从神经元、梯度下降到注意力、RAG、智能体、微调、量化与部署,部分实验可真实运行(如内置 1.37M 参数的小型 transformer),无需账号且无遥测,代码已在 GitHub 开源。
@Xudong07452910: Want to get started with 'Reinforcement Learning'? The biggest fear is learning a bunch of formulas and still not knowing how it actually runs. Recently I came across a very suitable introductory textbook: 'The Little Book of Reinforcement Learning'. Its advantage is that it's short, but it doesn't stop at the conceptual level. From basic RL…
Recommend 'The Little Book of Reinforcement Learning' as an introductory textbook for reinforcement learning. It's short but covers fundamentals to algorithms, and comes with PyTorch implementations and supplementary derivations, suitable for understanding core RL concepts.
@NFTCPS: You keep talking about AI, but can't even explain what a Transformer is? There's a repo that goes all out — builds a GPT from scratch without using any high-level libraries. It lays out exactly how Attention, Multi-Head, Feed-Forward, Embedding, Residual connections, and Layer Norm are pieced together. And it's not just the model; the entire pipeline is covered…
A GitHub open-source project that implements the complete GPT training pipeline from scratch, including data preprocessing, pretraining, SFT, and RLHF post-training, all based on native PyTorch. Ideal for developers who want to deeply understand the Transformer architecture.