Skip to content
Ask Sera Search
Ask SeraAnswers from our guides, research and news Search
Learn
Guides
Research
Sectors
Platforms
News
Tools
About

What is pre-training in an LLM?

Pre-training is the first and largest stage of training a language model. The model learns to predict the next token across a large collection of text.

In short. Pre-training is the first and largest stage of training a language model, in which it learns to predict the next token across a large collection of text. Fine-tuning and other post-training come after it. Much of the text comes from the public web: filtered Common Crawl data made up 60% of GPT-3's training mix.

On this page 7 sections

The evidence

  • Confirmed:

    Filtered Common Crawl made up 60% of GPT-3's training mix, or 410 billion tokens. Books, Wikipedia and the WebText2 corpus made up the rest.1arXiv, May 28, 2020

  • Confirmed:

    All GPT-3 models were trained for a total of 300 billion tokens.1arXiv, May 28, 2020

  • Confirmed:

    OpenAI says developing its foundation models involves preparing training data, pre-training and post-training. Information that is publicly available on the internet is one of its three primary sources.3OpenAI Help Center. Checked Dec 1, 2026

  • Confirmed:

    OpenAI says site owners can use robots.txt to disallow GPTBot, which may crawl publicly available content to help train its models.3OpenAI Help Center. Checked Dec 1, 2026

Confirmed by the platform

Pre-training comes first when a language model is built. The model reads a large body of text and learns its patterns before any training for a specific task.

#How does pre-training work?

In pre-training, the model learns by predicting text. OpenAI's help article on how its foundation models are developed gives the example "Instead of turning left, she turned ___." Early in training, the model's guesses are largely random. As it processes a large volume of text, it gets better at predicting the most likely next word. The text is split into tokens, which may be whole words, parts of words or punctuation.3

The model does not store the text. OpenAI says the values of the model's parameters are adjusted slightly to reflect the patterns it finds, and the model does not keep copies of the sentences it processes.3

Not every model predicts only the next word. The BERT paper pre-trains on unlabeled text by conditioning on the context to both the left and the right of each word.2

#What data is used for pre-training?

Pre-training data is mostly text collected at large scale. The GPT-3 paper trained on a filtered version of Common Crawl, a public archive of web crawls, from 2016 to 2019. Filtering cut it from 45 TB of compressed plain text to 570 GB. Filtered Common Crawl made up 60% of the training mix, and WebText2, two books corpora and English Wikipedia made up the rest. All GPT-3 models were trained for a total of 300 billion tokens.1

OpenAI says it uses three primary sources: public internet content, information from partners, and information that users, human trainers and researchers provide or generate. It filters out material such as hate speech, adult content and spam.3 What does LLM training data look like? describes the data sources in detail.

#What is the difference between pre-training and fine-tuning?

Pre-training builds a general model, and fine-tuning adapts it to a task with far less data. The GPT-3 paper describes the usual method as pre-training on a large corpus of text followed by fine-tuning on a specific task, with datasets of thousands or tens of thousands of examples.1

The InstructGPT paper shows how much post-training can change. It fine-tuned GPT-3 on labeler demonstrations and then with reinforcement learning from human feedback. Human raters preferred the outputs of a 1.3 billion parameter InstructGPT model to those of the 175 billion parameter GPT-3.4

What a model knows without a search comes from pre-training. Text published after the training data was collected is not in the model's parameters until the model is trained again. Live retrieval fills that gap. When does AI answer from training data, and when does it search? compares the two routes.

OpenAI says its GPTBot crawler may collect public content to help train its models, and that site owners can disallow it in robots.txt.3 This rule blocks it for a whole site:

Text
User-agent: GPTBot
Disallow: /

The GPTBot page lists what the crawler does and how to verify it.

Read next

Used in

Related terms

Questions

What is the difference between pre-training and training?

Pre-training is one stage of training. OpenAI lists preparing training data, pre-training and post-training as stages of developing its foundation models. Post-training includes fine-tuning and training with human feedback.

Does a model learn new facts after pre-training?

Not from the web on its own. Its parameters change only when it is trained again. To answer with newer information, an AI system retrieves pages at query time and adds them to the prompt.

Can I keep my site out of pre-training data?

For crawlers that respect robots.txt, yes. OpenAI says site owners can disallow GPTBot in robots.txt to manage whether their content may be used for training. Other companies name their own training crawlers.

About this page

Researched and reviewed by Promptly Found. Reviewed Dec 1, 2026. Next review due Mar 2027.

Notes

  1. 1
    Language Models are Few-Shot LearnersarXiv · May 28, 2020 · Checked Dec 1, 2026 · Paper
  2. 2
  3. 3
    How ChatGPT and our foundation models are developedOpenAI Help Center · Checked Dec 1, 2026 · Primary source
  4. 4
    Training language models to follow instructions with human feedbackarXiv · Mar 4, 2022 · Checked Dec 1, 2026 · Paper
Cite this page
Citation style

Promptly Found. (2026, December 1). What is pre-training in an LLM? https://promptlyfound.com/glossary/pre-training

Revisions 1
First published.