Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Training

Also: model training

In plain words

Adjusting a model with examples and a learning rule. The aim is to improve how it handles tasks.

Billions of tiny dials

A model is a huge set of dials, each holding a number. Training turns the dials a little at a time, over millions of examples, until the model’s guesses are good. After training the dials are locked: using the model does not change them, and showing it your document does not teach it anything permanent.

The fuller definition

Training adjusts a model's parameters using data and an optimization objective so its outputs better satisfy that objective.

Go deeper

The training loop, simplified
  1. ExamplesInputs paired with the expected output.
  2. PredictionThe model produces an output.
  3. LossHow far off it was, as a number.
  4. UpdateParameters nudged to reduce the loss; repeat.

Training ends at the knowledge cutoff. Whatever the examples contained, including their gaps and biases, is what the model learned.

A concrete example

A model predicts missing or next tokens and updates parameters in response to measured error.

The distinction that matters

Providing a file in chat normally supplies context; it is not the same as training the model on that file.

Related terms

Where it is taught

How models learn from examples

Source and further reading

Hugging Face · LLM course

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC