NLP, explained by playing with it

Five chapters on how language models actually work, each with something you can touch. Drag a slider and the attention weights move. Pick a head and watch where a pronoun looks. Guess what BERT will fill in, then see the real probabilities.

Free, no sign in, nothing to install. About 55 minutes end to end, or dip into any chapter on its own.

The chapters

Each one opens with a question or a failing example, says the idea in plain words, then hands you the explorer.

Ready now2 of 5, about 24 minutes

Still being writtennothing to click yet

How to use this site

Where the numbers come from

Nothing on this site is a number somebody remembered. The explorers either read a file produced by a real model run, or they do the arithmetic in your browser while you watch. Anything hand chosen for teaching carries anIllustrative label.

The data behind the explorers

Static word vectors
glove-wiki-gigaword-50
Contextual model and attention
bert-base-uncased
Sentiment
distilbert-base-uncased-finetuned-sst-2-english
Files generated
22 datasets, 6340.5 KB in total, on 2026-12-06

These are the same checkpoints and the same GloVe variant the Colab notebook loads, so the site and the live demo cannot disagree.

Source: bert-base-uncased, bert-large-uncased, distilbert-base-uncased-finetuned-sst-2-english. Generated 2026-12-05 by pipeline/param_counts.py.5.3 KB, checksum 806ad5d44018.