Berk Bayri

Pretraining

The first and most expensive stage of building a language model, where it learns to predict the next token across a very large body of text. It produces a general base model that later stages turn into a usable assistant.

Pretraining is the stage where a large language model learns most of what it knows. The model reads a very large collection of text and code and is trained on one narrow task over and over: guess the next token. Getting good at that guess forces it to pick up grammar, facts, styles of argument and patterns in code along the way. The P in GPT stands for pre-trained.

The result is a base model. A base model continues text; it does not reliably follow instructions or hold a conversation. The assistant behavior people know from chat products comes from later stages, such as instruction tuning and RLHF, which usually use much less data.

Why it matters to a company

Pretraining decides what a model can draw on and where its knowledge stops. Anything missing from the training data, including events after the data was collected and the contents of your own systems, is not in the model. That is why grounding methods such as RAG exist.

It is also the part almost no organization should do itself. Pretraining a competitive model takes thousands to tens of thousands of GPUs running for weeks or months, plus a data pipeline most companies do not have. When a team says "we want our own model", the realistic options are usually fine-tuning an open-weight model, retrieval over company documents or better prompts. Ask which problem pretraining would solve that those cannot.

Related terms