liveBook · Manning

Training

As explained in Grokking AI Applications

Model training is the iterative optimization process that learns parameter values from examples to improve predictions.

Model training is an iterative optimization process that learns parameter values from examples so predictions improve. Neural networks adjust interconnected components across many layers to learn increasingly complex patterns. section 1.6

A useful mental model separates two stages:

  • Training learns the model’s parameter values from examples. section 1.6
  • Inference uses the trained model to complete or predict text. section 1.6
  • Fine-tuning enhances a pretrained model for a more specific purpose. section 1.6

From patterns to prediction

A trained language model can use learned relationships in a question such as “What is the capital of Italy?” to predict “Rome.” Attention helps it focus on relevant input words, such as “Italy.” section 1.6

Figure 1.12 The two stages of GPT-3. First, it gets trained, and then the sentence completion is inferred.

Trace the distinction between GPT-3 training and sentence-completion inference. section 1.6

How Grokking AI Applications covers it

How deep it goes
Explains layers, neurons, parameters, and hierarchical representations, but does not detail optimization algorithms.
Examples
Uses GPT-3’s training-to-inference stages, Italy-to-Rome prediction, and pretrained-model fine-tuning.
What you can do after
Evaluate the difference between training, inference, and fine-tuning in a language-model workflow.
How it connects
Connects learning with deep learning, neural networks, transformers, attention, inference, and fine-tuning.

Also explained in

Compare how 24 books explain training →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking AI Applications. The section links point to the parts of the book it draws on.