concept
Pretraining comes first. A model starts with random parameters and is trained on an enormous, varied collection of data. For a language model, the task is usually to predict the next token, over and over, across a vast amount of text.
From that one simple task it picks up grammar, facts, styles of writing and some ability to reason. The result is a general-purpose base model, which can continue text well but is not yet a helpful assistant.
Later stages, such as fine-tuning and instruction tuning, build on that base to make the model follow instructions, hold a conversation and behave well. Pretraining is where most of the computing power goes, and it sets the knowledge cutoff.
Example
A base model fresh from pretraining, given “The capital of France is”, will likely continue with “Paris”, but may not answer a question politely without further training.