"Deep Dive into PyTorch" is a PyTorch introductory tutorial launched by Datawhale. The repository address is https://github.com/datawhalechina/thorough-pytorch,在线阅读地址为 https://datawhalechina.github.io/thorough-pytorch/。资料说明在线文档更新落后于主仓库更新,建议查看 markdown files under the source folder.
In terms of purpose, this tutorial is used to help learners go from beginner to proficient in the PyTorch toolset, and then implement their own deep learning algorithms. The course is organized in the form of team-based learning, emphasizing both theoretical preparation and hands-on training. The prerequisites for learning are: being able to use Python programming, understanding machine learning algorithms including neural networks, and being diligent in hands-on practice.
In terms of main capabilities and content structure, the tutorial is a series of courses. Parts 1 and 2 have been released, and follow-up plans include updating more practical case studies that are closer to real applications. The chapters include: Chapter 0 Prerequisite Knowledge (a brief history of artificial intelligence, related evaluation metrics, learning commonly used packages, Jupyter-related operations); Chapter 1 PyTorch Introduction and Installation; Chapter 2 PyTorch Fundamentals (tensors and their operations, automatic differentiation, parallel computing, CUDA and cuDNN); Chapter 3 Main Components (basic configuration, data loading, model construction, loss functions, optimizers, training and evaluation, visualization); Chapter 4 Basic Practice (Fashion-MNIST fashion classification, fruit and vegetable classification practice notebook); Chapter 5 Model Definition (definition methods, building complex networks using model blocks, model modification, saving and loading); Chapter 6 Advanced Training Techniques (custom loss functions, dynamically adjusting the learning rate, fine-tuning torchvision and timm models, half-precision training, data augmentation, hyperparameter modification and saving); Chapter 7 Visualization (network structure, CNN convolutional layers, TensorBoard, wandb, SwanLab); Chapter 8 Ecosystem Introduction (torchvision, PyTorchVideo, torchtext, torchaudio); Chapter 9 Model Deployment (deployment and inference using ONNX); Chapter 10 Walkthroughs of Common Network Code (in progress, covering ResNet, Swin Transformer, Vision Transformer, RNN, LSTM, the YOLO series, image segmentation, etc.).
In terms of usage, the course content is stored in the repository in markdown format or jupyter notebook format, and in addition to reading, hands-on practice is required. The team-based learning arrangement is: Part 1, Chapters 1 to 4, with a 10-day learning period; Part 2, Chapters 5 to 8, with an 11-day learning period. The project uses the Forking workflow, and the general steps are: Fork this repository on GitHub; Clone the forked personal repository; set the upstream repository address and disable push; develop using branches, with the course branch name being lecture{#NO}, keeping the number to two digits, such as lecture07; before a PR, keep in sync with the original repository, and then initiate a PR request; use the <type>: <short summary> format for commit messages.
In terms of applicable scenarios, it is suitable for learners who have a foundation in Python and machine learning and hope to systematically learn the PyTorch deep learning workflow, and it is also suitable for conducting courses or self-study in a team-based learning format. The accompanying video tutorials can be watched on Bilibili, and the materials provide a replay link https://www.bilibili.com/video/BV1L44y1472Z。
Regarding limitations, the materials do not provide commercial information such as fees, pricing, or platform licensing; the online documentation may lag behind the main repository; Chapter 10 is marked as in progress; and the tutorial explicitly requires prior foundational knowledge and emphasizes hands-on practice. This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.