Continued Pretraining

Also known as: CPT, Domain-Adaptive Pretraining

Continued pretraining (CPT) resumes next-token (or masked) language modeling on a new corpus after the original pretraining run, usually to inject a domain, style, or language.

Unlike instruction SFT, CPT trains on raw documents, not chat turns. Use it when you want the model to absorb a library of text; follow with light format SFT so answers stay well formed.

Risks and mitigations

  • Catastrophic forgetting of general skills if you train too hard without replay or regularization
  • Overfitting a tiny domain dump—prefer diverse, deduplicated text
  • LoRA/PEFT CPT can reduce cost and make it easier to keep a general base

Field note (publish when ready): domain-llm Part 1 covers a Qwen3-4B classics CPT attempt and CPT vs SFT.

← Back to AI Glossary