How models work

Attention

The mechanism in a transformer that lets the model weigh how relevant each token is to every other token when working out meaning. It is how the model links 'it' back to the right noun several sentences earlier.


Where this is taught

15How large language models work
Tokens, embeddings, attention, context windows, temperature and training: what is actually happening when a model answers you.

Related terms

Backpropagation

The technique that calculates how much each weight in a neural network contributed to an error, working backwards from…

Base model

A model straight out of pretraining, before it has been tuned to follow instructions or hold a conversation. Given a q…

Chain of thought

Step-by-step reasoning written out before a final answer, either prompted ('think it through step by step') or built i…

Compute

Shorthand for the processing power used to train and run AI models, usually on large clusters of specialised chips in …

Constitutional AI

A training approach, published by Anthropic in 2022, in which a model critiques and revises its own responses against …

Diffusion model

The main approach behind modern image and video generators. It learns to reverse a process of gradually adding noise t…

Beyond the definition

Knowing the word is the easy part

A short assessment scores you across five skill areas and builds a path through 18 modules, skipping whatever you already know. Free, no card.

Find your level