Explained · 2 min

What is pre-training of an AI model?

Pre-training is the first and biggest round of training, where a language model learns from huge amounts of text. Here is what happens and why it costs so much.

Written by AI and checked against our editorial standards. Not reviewed by a human editor.

Pre-training is the first and biggest round of training for an AI model. Hugging Face describes it as training a model from scratch: the settings start out random, and the model has no prior knowledge.

Think of it like this: a child who reads a whole library before school starts. Nobody explains each book. The child just picks up words, facts and patterns from reading so much.

A language model learns by guessing. It reads a piece of text, guesses the next word, checks the real word, and adjusts its settings a tiny bit. It does this again and again over a huge amount of text. No human has to label anything, because the text itself holds the answer. Experts call this self-supervised learning.

This is the costly part. Hugging Face notes that it takes a lot of time and computing power. That is why labs plan their big training runs long in advance.

After pre-training, the model knows a lot, but it is not yet a helpful assistant. So it gets more training, called fine-tuning, on a much smaller set of examples. That teaches it to follow instructions, chat and refuse harmful requests. Fine-tuning needs far less data to get good results.

Why it matters to you: a lab that delays pre-training delays the start of its next model, not a small update. Everything else, such as safety tests, fine-tuning and release, comes after it. So a delay here pushes back the whole line.

Learn more: Hugging Face LLM Course: How do Transformers work?

Seen in the news

  1. Anthropic and OpenAI both ask for limits on how fast AI can advance