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
LLM
Large language model: an AI model trained on very large amounts of text to predict and generate language, which can be used to answer, summarise, write, reason about and act on text.
Token
The small chunk of text, roughly a word or part of a word, that language models read and write. Providers usually price and limit usage in tokens, but token cost is not the cost of a result.
Transformer
The neural network architecture behind almost every large language model. It processes a whole sequence of tokens at once and uses attention to decide which earlier tokens matter for each next prediction.
Fine-tuning
Further training a pre-trained model on specific data so its weights change to suit a task or style. It is one of several ways a system can learn, alongside memory, retrieval and workflow changes.
RLHF
Reinforcement learning from human feedback: people compare a model's answers, a second model learns their preferences, and the main model is then trained to produce answers that score well with that preference model.
Synthetic data
Data that is generated, often by an AI model or a simulation, instead of being collected from real events or people. Useful for testing, training and privacy, but it mostly reflects what its generator already contains.
Open-weight model
An AI model whose trained weights are published for anyone to download and run on their own hardware. Open weights are not the same as open source: training data and code are usually withheld, and the licence can still restrict use.