Learn how AI & LLMs actually work, by playing with them.
16 guided modules with browser-native simulators. Tokenize text, map embeddings, watch attention, tune sampling, train a tiny model, retrieve documents, wire agents and read DNA like a language. No GPU. No setup.
/ your progress
Saved only in this browser. Mark modules complete at the bottom of each page.
/ new here? how to learn
Four steps per module, about 4 hours in total
- 1
Read the goals
Each module opens with what you'll be able to do and a first thing to try.
- 2
Read one idea
Short concept notes. Unfamiliar word? Hover the ? icon or press Ctrl K to search the glossary.
- 3
Play in the live lab
Change one setting at a time and watch what moves. Reset any time; nothing can break.
- 4
Check yourself
Tick the self-check at the end, mark the module complete and follow Next.
No maths or coding background needed. Start at module 01 and go in order, or jump to any card below.
/ curriculum
The full stack of an LLM, plus biology
Follow the tracks in order or jump to what you're curious about.
Foundations
Neural Network Basics
Tune a single neuron, then watch a tiny network learn XOR and circles live.
Tokens
See how text becomes numbers with a live BPE-style tokenizer.
Vocabulary
Build a vocab from a corpus and watch coverage grow.
Embeddings & Attention
Explore a word map, do vector arithmetic and see which tokens attend to which.
Inside the model
Transformer Walkthrough
Step through one GPT block: embeddings, positions, Q/K/V attention, MLP and logits.
Pre-training
Train a tiny next-token predictor in your browser.
Sampling & Decoding
Turn temperature, top-k and top-p knobs and watch the next-token odds change.
Context, KV Cache & MoE
Fit chats in a context window, see why the KV cache speeds generation, route tokens to experts.
Fine-tuning
Watch loss curves move as you teach a model new behavior.
Building with LLMs
Prompt Builder
Compose role, context, task and format into a strong prompt.
Prompt Training
Seven habits of good prompts, with a quick quiz.
Retrieval (RAG)
Index documents, embed queries, and rank chunks live.
Orchestration
Compose agents, tools, and routers into a flow.
Agent Loop Tracer
Step through a tool-calling agent: thought, JSON call, MCP result, retry, with a token meter.
Evals, Safety & Quantization
Catch hallucinations, score with a judge, block prompt injection, shrink models.
Hands-on labs
Chat Simulator
A chat sandbox that shows tokens, cost and latency of every message.
Local LLM Setup
Pick GPU, OS, model and runtime, then get the exact setup commands.
Agentic AI, RAG & MCP Slides
A 50-slide deck on agents, retrieval and the Model Context Protocol.
/ key ideas
A model in one paragraph
A language model takes text, breaks it into tokens from a fixed vocabulary, turns each into an embedding that mixes with its neighbours through attention, and predicts the next token, which is then sampled. It learns this skill during pre-training on huge corpora, then is steered with fine-tuning and good prompts. To answer about things it never saw, we attach retrieval. To make it act, we wrap it in orchestration, and to trust it we run evals. The same ideas work on the language of life: DNA, proteins and molecules.