dldl.course

Curriculum

Eight chapters, progressing newbie → expert. Each ends with an interactive lab and quiz questions.

  1. 01

    Linear algebra for deep learning

    beginner60 min

    Vectors, matrices, tensors, decompositions, and the operations that make neural networks possible. The complete working vocabulary — taught the way a practitioner uses it.

  2. 02

    Calculus and gradients — how networks learn

    beginner60 min

    Derivatives, the chain rule, the gradient, the Jacobian, and the Hessian. Plus the optimizers built on top: SGD, momentum, RMSProp, Adam.

  3. 03

    Probability and statistics, the parts that matter

    beginner55 min

    Distributions, expectations, maximum likelihood, KL divergence, cross-entropy, the bias-variance trade-off, and the information-theoretic view of loss functions.

  4. 04

    PyTorch tensors and autograd, deeply

    intermediate55 min

    The Tensor object: device, dtype, strides, views. The autograd engine: graph construction, backward, gradient accumulation, the leaf-vs-non-leaf distinction, and the operations that silently break it.

  5. 05

    `nn.Module`, layers, and architectural building blocks

    intermediate65 min

    How models are structured: subclassing nn.Module, the layer zoo (Linear, Conv, Norm, Embedding, Dropout, activations), parameter registration, initialization, and the residual/normalization combo that makes deep nets trainable.

  6. 06

    The training loop — from the 5-line core to production

    intermediate70 min

    Losses, optimizers, schedulers, dataloaders. Mixed precision, gradient accumulation, gradient clipping, checkpointing, EMA, distributed training (DDP, FSDP). The complete production training script, line by line.

  7. 07

    Convolutional networks and modern vision

    advanced60 min

    Convolution arithmetic, pooling, receptive fields, the classic architectures (LeNet → AlexNet → VGG → ResNet → EfficientNet → ConvNeXt), and the transfer-learning workflow that powers production vision.

  8. 08

    Recurrent networks — RNNs, LSTMs, GRUs, and sequence modeling

    advanced50 min

    The pre-transformer way to model sequences. Why vanilla RNNs fail, how LSTM gates solve it, when GRU is the right cheap alternative, and where recurrence still wins in 2026 (streaming, very long context, RNN-T speech).

  9. 09

    Attention and Transformers — from scratch

    advanced75 min

    Scaled dot-product attention. Multi-head attention. Position encodings (sinusoidal, learned, RoPE, ALiBi). The encoder block, the decoder block, and the architectural families (encoder-only BERT, decoder-only GPT, encoder-decoder T5). Built up from numpy to nn.Module.

  10. 10

    Generative models — VAEs, GANs, and Diffusion

    advanced70 min

    Three families of generative models, the math behind each, and where they win. VAE for structured latent spaces, GAN for photorealism with adversarial training, diffusion for the state of the art in images, audio, and video.

  11. 11

    Reinforcement learning and RLHF

    advanced60 min

    MDPs, value functions, policy gradients, PPO. Then RLHF: reward modeling, PPO for LLMs, and the modern alternatives (DPO, ORPO, KTO). The math behind how ChatGPT learned to be helpful.

  12. 12

    Capstone — fine-tuning with LoRA, QLoRA, and Unsloth

    expert90 min

    The 2026 startup playbook. Full fine-tune vs. LoRA vs. QLoRA. Unsloth for 2× speed / 70% less memory. Datasets, chat templates, evaluation, and a complete end-to-end recipe to fine-tune Llama-3 / Mistral / Gemma on a single 24GB GPU.

  13. 13

    Deployment — serving models in production

    expert55 min

    Quantization (GPTQ, AWQ, GGUF). Inference engines (vLLM, TGI, Llama.cpp, TensorRT-LLM, Ollama). KV-cache, paged attention, speculative decoding. Latency vs. throughput vs. cost. A real serving recipe.