Fine-tuning teaches a model how to behave, and it is poor at teaching it new subject matter.
A few thousand instruction pairs cannot install a vocabulary the model has never encountered.
Continued pretraining, also called domain-adaptive pretraining, is the tool for that job.
It resumes the original training procedure on a large corpus from the target domain.
The objective is unchanged: predict the next token over raw, unlabelled text.
Legal filings, clinical notes, chip design documents and low-resource languages are the usual motivations.
The scale required is the main barrier, since meaningful gains generally need billions of tokens.
That is a serious training run, not an afternoon on a single GPU.
Catastrophic forgetting is the standard hazard: train only on medicine and general ability degrades.
The usual defence is to mix a proportion of general text back into the corpus.
A lower learning rate than the original run also helps preserve what the model already knows.
The result is a base model again, fluent in the domain and unable to follow instructions.
So continued pretraining is almost always followed by instruction tuning and preference training.
That full sequence is what produces domain-specific models rather than domain-specific prompts.
For most teams the honest answer is that retrieval is cheaper and gets most of the benefit.