Start here
Your plan
| Days | Module | Slides |
|---|---|---|
| 1 | Recurrent neural networks | C5 week 1 |
| 2 | Language models and sampling | C5 week 1 |
| 3 | Vanishing gradients, GRU, LSTM, bidirectional and deep RNNs | C5 week 1 |
| 4 | Word embeddings | C5 week 2 |
| 5 | Learning embeddings, sentiment and bias | C5 week 2 |
| 6 | Sequence to sequence, beam search and BLEU | C5 week 3 |
| 7 | Attention, and audio | C5 week 3 |
| 8 | Transformers, and from transformers to today's language models | C5 week 4 |
| 9 | Build it, and interview drill | notebooks |
About 1 to 1.5 hours a day, for 9 days.
Code in this course is written for PyTorch 2.15 (October 2026), TensorFlow 2.21 and Keras 3.15. The slides use TensorFlow 1-style code in places; the notes show the current way.
How each lesson works: the slides for that part open at the top of the lesson. Read them, then the notes under them: the notes explain what the slide skips, show today's PyTorch and Keras code, and point to the experiments in the notebook. Notebooks are files that come with the course: open them in Google Colab (free, nothing to install), download them for Jupyter or VS Code, or read their PDF versions with all the outputs.
This is part 5 of 5: Sequence models, from RNNs to transformers, with notes on how today's large language models grew out of these ideas.
Credit: the slides are from the Deep Learning Specialization (course 5, Sequence Models) by DeepLearning.AI, taught by Andrew Ng, shared under Creative Commons BY-SA 2.0 for non-commercial educational use. Take the full course on Coursera for the videos and graded labs.
Maths is written in plain text: W·x is a matrix product, Σ a sum, ^ a power, [l] the layer, (i) the example.