How models work

Next-token prediction

The core task a language model is trained on: given the text so far, predict the most likely next token. Generation repeats that prediction one token at a time. Everything else these models do, from answering questions to writing code, is built on this.


Guides that cover it

Related terms

Loss function

The measure of how wrong a model's outputs are during training. Training works by repeatedly nudging the weights to ma…

Mixture of experts

A model design split into many specialist sub-networks, with a router that sends each token to only a few of them. The…

Multimodal

Able to take in or produce more than one kind of data, such as text, images, audio and video. A multimodal assistant c…

Non-determinism

The fact that the same prompt can produce different outputs each time. It comes from sampling and from how computation…

Overfitting

When a model learns its training examples too closely, including their noise and quirks, and so performs well on them …

Parameters

The learned numbers inside a model, mainly its weights, that training adjusts. Large language models have billions of …

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