AI in Motion
✦

Generative AI

VAEs, diffusion, guidance, LLM training, decoding, prompting, RAG, LoRA, quantisation, mixture of experts, agents and multimodal models.

15 animated lectures · 40 minutes

▶ Start with lecture 1
1:12
Generative AI · 01

Generative vs Discriminative Models

One kind of model learns where the boundary is; the other learns what the data looks like — and can create new examples.

Beginner · 5 chapters · 3-question quiz
1:29
Generative AI · 02

Variational Autoencoders

Encode inputs as small probability clouds in a smooth latent space — then walk through that space to generate and morph new data.

Intermediate · 6 chapters · 3-question quiz
1:38
Generative AI · 03

Diffusion Models in Depth

The forward process adds noise on a schedule; a neural network learns to reverse it. See the real DDPM noise schedule and latent diffusion.

Intermediate · 6 chapters · 3-question quiz
1:19
Generative AI · 04

Classifier-Free Guidance

How image generators follow prompts more closely: combine a conditional and an unconditional prediction and push further in the prompt’s direction.

Advanced · 5 chapters · 3-question quiz
1:26
Generative AI · 05

How Large Language Models Are Trained

Pre-training on vast text, instruction tuning, and learning from human preferences — plus the scaling laws that made models grow.

Intermediate · 6 chapters · 3-question quiz
1:31
Generative AI · 06

Decoding: Temperature, Top-k and Top-p

How a language model picks each word from its probabilities — and how temperature, top-k and top-p change its personality.

Beginner · 6 chapters · 3-question quiz
1:19
Generative AI · 07

Prompt Engineering and Chain-of-Thought

Clear roles, context, examples and step-by-step reasoning: how to get much better answers from language models.

Beginner · 6 chapters · 3-question quiz
1:24
Generative AI · 08

Retrieval-Augmented Generation (RAG)

Give a language model the right documents at the right moment: retrieve relevant passages, then generate a grounded answer with citations.

Intermediate · 6 chapters · 3-question quiz
1:17
Generative AI · 09

LoRA and Parameter-Efficient Fine-Tuning

Fine-tune a huge model by training two tiny matrices. See why LoRA needs well under 1% of the parameters of full fine-tuning.

Intermediate · 5 chapters · 3-question quiz
1:16
Generative AI · 10

Quantisation: Smaller, Faster Models

Store each weight in fewer bits. See weights snap to int8 and int4 levels, and how a 7B model shrinks from 28 GB to 3.5 GB.

Intermediate · 5 chapters · 3-question quiz
1:21
Generative AI · 11

Mixture of Experts

A router sends each token to a few specialised experts, so a model can have many parameters while using only a fraction per token.

Advanced · 5 chapters · 3-question quiz
1:13
Generative AI · 12

AI Agents and Tool Use

Language models that act: plan, call tools like search or calculators, read the results and continue until the task is done.

Intermediate · 5 chapters · 3-question quiz
1:22
Generative AI · 13

Multimodal Models and CLIP

Put images and text in one shared space by pulling matching pairs together — the idea behind CLIP, image search and vision-language assistants.

Intermediate · 5 chapters · 3-question quiz
Deep dive11:08
Generative AI · 14

Diffusion Models: The Complete Deep Dive

How image generators really work: the forward noising process and its schedule, the noise-prediction objective, U-Net denoisers, DDPM vs DDIM sampling, latent diffusion with a VAE, text conditioning with CLIP and cross-attention, classifier-free guidance, ControlNet and fast samplers.

Advanced · 33 chapters · 5-question quiz
Deep dive11:01
Generative AI · 15

GANs and VAEs: A Deep Dive into Generative Models

Two classic ways to generate data: autoencoders and variational autoencoders (ELBO, KL, reparameterisation), and generative adversarial networks (the minimax game, mode collapse, DCGAN, WGAN, conditional and cycle GANs, StyleGAN) — with evaluation and a comparison with diffusion.

Advanced · 32 chapters · 5-question quiz