PromptItIn logoPromptItIn
AI glossary · Training

Pretraining

The initial phase of training a model on massive text data to learn general language representations.

PromptItIn team

A bookshelf with one card pulled out

What it means

Pretraining is the first and most compute-intensive phase of building a large language model.

The model is trained on trillions of tokens from diverse internet sources, books, and code using a self-supervised objective — typically next-token prediction (causal language modelling) for GPT-style models or masked language modelling for BERT-style models.

No human-labelled data is required; the training signal comes from predicting the natural continuations of text. Pretraining encodes broad world knowledge, language syntax, and reasoning patterns into the model's weights.

It requires thousands of GPUs running for weeks and constitutes the majority of the total training cost for frontier models.

Examples

  • GPT-4 being pretrained on approximately 13 trillion tokens scraped from the internet, books, and code repositories.
  • Llama 3 pretraining on over 15 trillion tokens, including a higher proportion of code and multilingual data than its predecessors.

Base Model

A model trained only on next-token prediction over a large corpus, before any instruction tuning.

Transfer Learning

Reusing a model trained on one task as the starting point for a related task.

Fine-Tuning

Continuing training of a pretrained model on a smaller, task-specific dataset to specialise its behaviour.

Put this into practice

PromptItIn applies techniques like pretraining for you: describe what you want and it builds the prompt.

Try PromptItIn freeAdd to Chrome, free

You might also like

How Finance Professionals Can Use AI →Prompt Engineering Guide 2026: What Actually Works →AI Video Prompt Builder →What is Prompt Engineering? →Stable Diffusion →Suno →
← Browse the AI prompt glossary