#8282nd of 118 in Learning and cookbooks
nndl-practice
PyTorch notebooks for a Chinese deep learning textbook, from tensors to LLM agents
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 3.6k
- License
- no license
- Last commit
- Sep 2026
- Last release
- Jun 2026
- Language
- Jupyter Notebook
3,330 on 25 Apr 20263,572 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Companion code for 邱锡鹏's 神经网络与深度学习:案例与实践 (2nd edition). Ten chapters of Jupyter notebooks implement key components from scratch in PyTorch, covering linear models, CNNs, RNNs, attention and Transformers, GNNs, and nanoGPT with LoRA, SFT, DPO, ReAct and RAG. A small teaching framework (`pytorch/nndl/`) and per-chapter pytest sanity tests are included.
Who it is for: Chinese-reading students and engineers learning deep learning in PyTorch
Strengths
- Ten chapters run from tensor basics to nanoGPT, LoRA, DPO, ReAct and RAG
- Notebooks default to CPU; longer-training chapters have short configs
- Per-chapter pytest sanity tests check operators, model shapes and key results
- Reusable `nndl` package grows from RunnerV1 to V3 across chapters
Weaknesses
- Text and notebooks are in Chinese only
- No license file, so reuse terms are unclear
- Second edition is pre-publication; code and book text may be out of sync
- Chapters 6 and 8 need IMDB / LCQMC downloaded manually
What it needs
- GPU optional
- Needs Python 3.11+, PyTorch 2.7+, torchvision, Jupyter, pytest
- Models: LeNet-5, ResNet, LSTM, Transformer, GCN
Also in Learning and cookbooks
See all 118| Rank | Project | Score |
|---|---|---|
| 1 | ai-engineering-from-scratchFree curriculum of 542 coding lessons on building AI systems from scratch | 91 out of 100 |
| 2 | generative-ai-for-beginners21-lesson course on building generative AI apps in Python and TypeScript | 83 out of 100 |
| 3 | rag_techniquesCollection of 42 runnable notebooks implementing RAG techniques | 83 out of 100 |
| #4 | cs249r_bookOpen textbook series on ML systems, with TinyTorch, labs and hardware kits | 83 out of 100 |
| #5 | agents-towards-productionJupyter tutorials for taking LLM agents from prototype to production | 82 out of 100 |