Skip to content

How language models work

Tokens, training and prediction: what happens inside a chatbot when it answers.

23tutors

1free to start

$3 to $12per paid lesson

How language models work tutors

23 tutors

Why language models make things up

Why language models make things up

Understand the causes of hallucination and build habits that catch it before it costs youAll levelsAI safety and ethicsNew
Skill Lab$5
From pretrained model to helpful assistant

From pretrained model to helpful assistant

Learn how instruction tuning, preference training and system prompts turn a predictor into an assistantAdvancedHow language models workNew
Skill Lab$9
Embeddings: meaning as numbers

Embeddings: meaning as numbers

See how words and documents become vectors, and why similar meanings end up close togetherIntermediateHow language models workNew
Skill Lab$6
The attention formula, step by step

The attention formula, step by step

Work through queries, keys, values and softmax by hand until the transformer equation makes senseAdvancedHow language models workNew
Skill Lab$9
Multimodal models: text, images and sound together

Multimodal models: text, images and sound together

See how one model can read images, hear audio and write text, and where it still stumblesIntermediateHow language models workNew
Skill Lab$6
Context windows and why chats forget

Context windows and why chats forget

Understand a model's working memory and how to keep long conversations on trackBeginnerHow language models workNew
Skill Lab$4
Interpretability: looking inside neural networks

Interpretability: looking inside neural networks

Learn how researchers try to understand what happens inside models, and what we still cannot seeAdvancedAI safety and ethicsNew
Skill Lab$12
Attention without the maths

Attention without the maths

Understand how transformers let each word look at the others, explained with pictures and storiesIntermediateHow language models workNew
Skill Lab$5
Attention mechanisms, step by step

Attention mechanisms, step by step

Compute attention by hand, then understand masks, heads, KV caching and efficient variantsIntermediateDeep learningNew
Skill Lab$8
Reading AI benchmarks and research claims

Reading AI benchmarks and research claims

Judge leaderboards, benchmark scores and model comparisons with a researcher's critical eyeAdvancedHow language models workNew
Skill Lab$9
Training versus inference, clearly

Training versus inference, clearly

Learn what happens when a model is trained, what happens when you use it, and why it mattersIntermediateHow language models workNew
Skill Lab$5
The transformer, block by block

The transformer, block by block

Trace a token through every part of a transformer and count where the parameters liveAdvancedDeep learningNew
Skill Lab$12

More in Foundations

All topics