Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Pretraining

Definition

The first, most expensive stage of training, in which a model learns general patterns by predicting the next token across a huge corpus.

In more detail

A pretrained base model can continue text but does not reliably follow instructions. That behaviour comes from post-training.

Pretraining teaches a model to predict the next token over a very large body of text, often trillions of tokens of web pages, books and code. It is where most of a model's knowledge and its knowledge cutoff come from, and it is by far the most expensive stage. Almost nobody outside the major labs pretrains from scratch; applications start from an existing model.

  • Large language model (LLM)

    A neural network trained on very large amounts of text to predict the next token, which lets it generate and transform language.

  • Post-training

    Training after pretraining that shapes a model's behaviour, including instruction tuning and preference or reinforcement learning.

  • Scaling laws

    Empirical rules showing that a language model's loss falls predictably, as a power law, when parameters, training data and compute grow.

  • Data contamination

    When benchmark or test examples appear in a model's training data, so high scores reflect memorisation rather than ability.

  • Knowledge cutoff

    The date after which a model saw little or no training data, so it does not know about later events, releases or API changes.

  • How large language models work, without the maths

    A large language model predicts the next token, one at a time. Tokens, training, context windows and why that design explains the limits you hit at work.

    Article

  • Fine-tuning

    Further training a model on task-specific examples, and knowing when RAG is enough.

    SkillAdvanced

  • Post-training

    Training after pretraining that shapes a model's behaviour, including instruction tuning and preference or reinforcement learning.

    Glossary

  • Data contamination

    When benchmark or test examples appear in a model's training data, so high scores reflect memorisation rather than ability.

    Glossary