Learn AI / Further study / Phase 4
Deep learning, transformers and generative AI
Months 8–100/5
How today's AI actually works, from neural networks to large language models, ending with a GPT you build yourself.
This phase explains how today's AI (image models, chatbots, large language models) actually works. Start with intuition, then build a small model yourself.
1. Intuition first (a weekend)
- 3Blue1Brown, Neural Networks series (YouTube, free): the best visual explanation of neurons, gradient descent, backpropagation, transformers and attention.
2. One main course (choose by learning style)
| Course | Style | Time | Cost |
|---|---|---|---|
| fast.ai, Practical Deep Learning for Coders | Top-down: build working models on day one, theory later | About 2 months part time | Free |
| Deep Learning Specialization (Andrew Ng, Coursera) | Bottom-up: math and fundamentals first | About 3 months part time | Audit free; certificate paid |
| MIT 6.S191, Introduction to Deep Learning | Fast, current lecture series with labs | About 2 weeks intensive | Free |
3. Build a language model from scratch
- Andrej Karpathy, Neural Networks: Zero to Hero (YouTube, free). You code backpropagation by hand, then build up to a small GPT-style transformer. Nothing teaches how LLMs work better.
4. Go deeper on language models
- Hugging Face LLM Course (free): tokenizers, the transformers library, fine-tuning, and sharing models.
- Stanford CS224n (NLP with deep learning) lectures on YouTube for depth.
Concepts to master
- Architectures: feed-forward networks, convolutional networks (vision), recurrent networks and why transformers replaced them, attention and self-attention.
- Training: loss functions, optimizers (SGD, Adam), learning rates, batch size, overfitting, dropout, normalization, transfer learning.
- How LLMs are made: tokenization, embeddings, next-token prediction pre-training on huge text corpora, scaling laws, then fine-tuning and reinforcement learning from human feedback (RLHF) or similar methods to make them helpful and safer.
- Using LLMs well: prompting, context windows, retrieval-augmented generation (RAG), tool use, fine-tuning vs prompting trade-offs.
- Other generative models: diffusion models for images and video; multimodal models that combine text, images and audio.
- Limits: hallucination, bias from training data, sensitivity to prompts, the gap between benchmark scores and real-world reliability.
Tools
PyTorch (most research and fast.ai), Hugging Face transformers, Google Colab or Kaggle for free GPUs.
Free books: Dive into Deep Learning and Michael Nielsen's Neural Networks and Deep Learning.
Phase 4 checklist0 of 5 done · saved in this browser