AI GLOSSARY · AI CONCEPTS

Pretraining

Markdown version · Wikidata Q124149651

Definition

Pretraining is the first, large training stage in which a model learns general patterns from a big dataset, before it is adapted to a task or to following instructions by fine-tuning or other later stages.

Also called: pre-training, pretrained model, pre-trained model.

In plain language

Pretraining is the long first stage of teaching an AI model. A language model reads a very large amount of unlabelled text and learns to predict what comes next. Think of it as reading widely before taking a specific job. The result is a general-purpose starting point, not a finished assistant. Anthropic's documentation says pretrained models are not inherently good at answering questions or following instructions, so later stages such as fine-tuning refine them. Pretraining is done by the model makers, not by most users. What the model learned is fixed once it ends, so it does not know about anything newer than its training data unless that is supplied in the prompt.

Technical definition

Pretraining trains a model on a large unlabelled corpus. Anthropic's glossary describes autoregressive language models as pretrained to predict the next word given the previous text in the document. BERT's authors describe pre-training deep bidirectional representations from unlabeled text, after which the model can be adapted to many tasks by adding one output layer. The GPT-3 paper's abstract describes a common approach as pre-training on a large text collection followed by task-specific fine-tuning, and tests few-shot use without gradient updates. A pretrained checkpoint is then refined, for example by fine-tuning or RLHF.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    What Is an LLM? The Facts Agent Users Need

    What you see
    The guide explains that an LLM predicts text one token at a time inside a fixed context window, and which context, cost and error facts follow.
    Why it exercises the concept
    Next-token prediction is the pretraining objective for a language model. The guide shows what that produces in daily agent use.
  2. Coding tool · Illustrative, not executed

    Claude Code

    What to try
    /model
    What you see
    The /model command opens a picker and switches the model for the rest of the session.
    Why it exercises the concept
    Each model listed went through pretraining and later stages before release. Switching models changes which result you are using, not what you can teach it in the session.
  3. Skill by Skill Almanac · Illustrative, not executed

    local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A calculation of whether an open-weight language model will run on a given GPU, Mac or PC, with weight, KV-cache and overhead memory per quantization.
    Why it exercises the concept
    Downloading a pretrained open-weight model means fetching its trained weights. This skill estimates whether your hardware can hold them.

How it shows up when you use agents

You do not run pretraining. It happened before the model reached Claude Code, Codex, Cursor or Gemini CLI. You feel its effects: the model's broad knowledge, its fixed knowledge cutoff, and its habit of continuing text. See Large language model.

What breaks when this is misunderstood: people expect the model to know recent events or your private code because "it was trained on a lot". Pretraining data is fixed and general. Your repository reaches the model only through the prompt, so put the relevant files and instructions there.

Pretraining is also not the same as what you do later. Fine-tuning adapts a pretrained model with further data; prompting does not change the model at all. Next action: if answers miss your context, add context, do not assume more training is needed.

Common confusions

  • Pretraining versus fine-tuning. Pretraining is the first broad stage; fine-tuning further trains the pretrained model on additional data. Anthropic's glossary describes fine-tuning as further training a pretrained model.
  • Pretrained model versus finished assistant. Anthropic's documentation says pretrained models are not inherently good at answering questions or following instructions. Later stages make them more useful as assistants.
  • Pretraining versus training data. Pretraining is the process; Training data is what it learns from.
  • Pretraining versus prompting. Prompting changes the input, not the model's learned parameters.
Show all 13 related terms

Terms that mention Pretraining

26 terms mention this one

Guides that mention Pretraining

More in AI concepts

Next steps

  1. What Is an LLM? The Facts Agent Users Need The long-form guide.
  2. local-model-sizing A skill that exercises it.
  3. Large language model (LLM) Related term.
  4. Fine-tuning Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .

This entry is still in review, so it is not listed in search engines yet.

Change log (2)
  • : First version.
  • : Verifier pass: applied verifier corrections (unsourced claims dropped or softened, attributions tightened).