
30 Problems
PyTorch Sheet
Get started with PyTorch for deep learning. Understand tensors, automatic differentiation, and how to build and train neural networks.
12 Easy12 Medium6 Hard
Unlock the full study plan
Upgrade to Pro to access the full curriculum.
6 sections
What you will learn
PyTorch is the most widely used deep learning framework. This plan has 30 problems in six sections: tensors and autograd first, then layers, training loops, data loading, and finally convolutions, recurrent cells and attention written from scratch.
Prerequisites
Python and some NumPy. It helps to know what a neural network layer and a loss function are; the NumPy study plan covers the array skills.
The sections, in order
- Foundations: creating and reshaping tensors, tensor operations, basic autograd and activation functions.
- Building blocks: a simple network, a custom linear layer, loss functions, batch normalization and dropout.
- Training loop: softmax, a minimal training loop, gradient accumulation, manual weight updates and early stopping.
- Training infrastructure: optimizers and schedulers, weight initialization, custom datasets, balanced data loaders and transforms.
- Advanced: SGD with momentum, Conv2d, an RNN cell, attention and a learning-rate warmup scheduler.
- Sequence and structure: an LSTM cell, multi-head and masked causal attention, residual blocks and beam search.
Where to go next
Go deeper into architectures with Cracking Deep Learning, or see how attention works inside large language models in the attention mechanism.