Phase 428 DaysIntermediate โ†’ Advanced

Phase 4 โ€” Deep Learning

Build and train neural networks from scratch in PyTorch โ€” from perceptrons to transformers โ€” with diagnostic-driven iteration instead of random trial-and-error.

  • Implement custom training loops with proper checkpointing and metric tracking.
  • Understand CNN, RNN, LSTM, and Transformer architectures at the code level.
  • Apply transfer learning to reduce data requirements for real-world tasks.

โšก Must Know

  • MLP โ€” perceptron, hidden layers, forward pass
  • Backpropagation + Chain Rule
  • Activation Functions โ€” ReLU, Sigmoid, Softmax
  • Loss Functions โ€” CrossEntropy, MSE
  • Optimizers โ€” SGD, Adam, RMSProp
  • PyTorch Tensors + Autograd
  • nn.Module + Custom Training Loops
  • DataLoader + Dataset
  • Dropout + L2 Regularization
  • Batch Normalization
  • CNN โ€” filters, pooling, strides, padding
  • Transfer Learning โ€” freeze, fine-tune
  • LSTM + GRU โ€” sequence modeling
  • Attention Mechanism + Transformers
  • Weights & Biases โ€” experiment tracking

โœจ Good to Know

  • Learning Rate Schedulers
  • ResNet, VGG, EfficientNet architectures
  • Image Augmentation โ€” torchvision.transforms
  • Word2Vec + GloVe embeddings
  • Seq2Seq + Encoder-Decoder models
  • GPU training โ€” .cuda(), .to(device)

๐Ÿ“š Resources

Deep Learning Specialization
Courseby Andrew Ng

The canonical deep learning curriculum โ€” covers backprop to transformers.

deeplearning.ai โ†—
PyTorch Official Tutorials
Docsby PyTorch Team

Hands-on tutorials from tensors to production deployment.

pytorch.org/tutorials โ†—
Andrej Karpathy โ€” Neural Networks: Zero to Hero
Videoby Andrej Karpathy

Build everything from scratch โ€” best for deep intuition.

youtube.com/karpathy โ†—
Attention Is All You Need
Paperby Vaswani et al.

Original transformer paper โ€” required reading before GenAI.

arxiv.org โ†—

๐Ÿ—๏ธ Projects

CNN Image Classifier

Train a CNN on CIFAR-10 with augmentation, checkpoints, and error analysis.

CNNPyTorchtorchvision

LSTM Sentiment Analysis

LSTM text classifier on IMDB reviews vs simpler NLP baselines.

LSTMNLPPyTorch

Mini-GPT from Scratch

Implement a compact transformer LM to deeply understand attention.

TransformernanoGPTPyTorch