← Goal templates
Transformers and large language models
How ChatGPT-style models work, down to attention and a GPT you build yourself.
Understand the transformer, the architecture behind every modern language model: attention, embeddings and training, from 3Blue1Brown's visual chapters and The Illustrated Transformer to the original paper, then build a small GPT with Andrej Karpathy.
intermediateabout 3 weeks at 60 min a day7 free sources
What you'll cover
Phase 1
The big picture
- What a language model predicts
- Tokens and embeddings
- How LLMs are trained and fine-tuned
Phase 2
Attention
- Queries, keys and values
- Multi-head attention
- Positional information
- Where facts are stored
Phase 3
The paper and the code
- Reading 'Attention Is All You Need'
- Encoder and decoder
- Building a GPT from scratch
An outline. Your own plan is made when you start, around your level and deadline.
Sources
Free, and fetched for you
- LectureIntro to Large Language Models (Andrej Karpathy)youtube.com ↗
- LectureTransformers, the tech behind LLMs (3Blue1Brown)youtube.com ↗
- LectureAttention in transformers, step-by-step (3Blue1Brown)youtube.com ↗
- LectureHow might LLMs store facts (3Blue1Brown)youtube.com ↗
- Web pageThe Illustrated Transformer (Jay Alammar)jalammar.github.io ↗
- PaperAttention Is All You Needarxiv.org ↗
- LectureLet's build GPT: from scratch, in code, spelled out (Andrej Karpathy)youtube.com ↗
All sources belong to their creators and are free to watch or read; Confu links to them and turns them into study PDFs for you.
More templates
- Neural networks from scratchFrom a single neuron to backpropagation you could code yourself.
- Reinforcement learning, from basics to PPOAgents, rewards and policies, up to the algorithm behind RLHF.
- Linear algebra, the visual wayVectors, matrices and eigenvectors you can actually picture.
- The essence of calculusDerivatives and integrals as ideas, not just rules.