The Rabbit Hole
Visual explanations and interactive experiments. Start with one idea, try it for yourself, then follow the next question.
53 articles · 14 subjects
AI and machine learning
Explore how models learn, process language and work with images and sound. Visual explanations and experiments, from the first neuron to the latest architectures.
A neuron that learns
Train a neuron in your browser, then build up to layers, attention and a whole language model.
Try the first experiment →See the ideas in actionInside real models
Compare model architectures, explore their layer diagrams, and follow each component back to its explanation.
Explore 137 model maps →Model benchmarks
See where open and closed models sit. Explore capability, coding, reasoning and memory results, then compare performance against model size.
Explore the benchmark charts →Neural networks
Build an intuition for learning, layers and recognising patterns.
Language models
Start with the complete path from text to prediction, then explore how models extend it.
Inside a language model
A reading path from tokens and embeddings to attention, one transformer layer and the whole model.
Explore this subject →Giving tokens a sense of position
Start with RoPE, then stretch it to longer texts and explore other ways to bring token order into attention.
Explore this subject →Keeping values in range
Normalise vectors, place the norm, and stop attention scores and activations from growing too large.
Explore this subject →The residual stream
Change how layers read from and write to the stream: wider streams, scaled skips and extra paths.
Explore this subject →Inside attention
Small changes inside attention: gates, bias terms and the tokens that collect spare attention.
Explore this subject →Tokens and embeddings
Other ways to turn text into vectors: extra lookups per layer, n-gram tables and bytes instead of tokens.
Explore this subject →Remembering context efficiently
Understand the KV cache and how sharing, compression and quantisation make it smaller.
Explore this subject →Working with longer context
Keep a local window, mix local and global layers, or learn which entries or blocks attention should read.
Explore this subject →Choosing and combining experts
Learn how mixture-of-experts models route work and balance their specialists.
Explore this subject →Generating text
Explore predicting several tokens, speculative decoding and text generation through diffusion.
Explore this subject →Running models efficiently
Store weights in fewer bits, read prompts faster, overlap expert communication and grow trained models.
Explore this subject →Alternative language-model architectures
Explore recurrent models, state-space models and architectures that combine approaches.
Explore this subject →Understanding images and sound
Discover how language models represent visual and audio inputs.
Explore this subject →More articles are on the way.