Learn AI / Module 5
Transformers and large language models
How models like Claude, GPT and Gemini work: tokens, attention, how they're trained and aligned, how they generate text, and where they go wrong.
0/5 lessons done
Lesson 5.1 · 10 min
Tokens and embeddings: turning text into numbers
- Explain tokenization and why models see tokens, not words
- Explain how tokens become vectors the model can process
Lesson 5.2 · 14 min
Attention and the transformer
- Explain self-attention in plain language
- Describe the structure of a transformer
- Explain why transformers replaced recurrent networks
Lesson 5.3 · 15 min
How an LLM is made: pre-training, fine-tuning and alignment
- Describe the stages of training a modern assistant model
- Explain RLHF and related alignment methods
- Explain what reasoning models do differently
Lesson 5.4 · 13 min
How LLMs generate text, and why they go wrong
- Explain sampling, temperature and context windows
- Explain why hallucinations happen and how to reduce them
Lesson 5.5 · 10 min
Beyond text: images, audio, video and multimodal models
- Explain how diffusion models generate images
- Describe multimodal models and their uses