sagelearnai

From Pre-training to Instruction Tuning

A chat assistant is the result of several training stages stacked on top of each other. Knowing what each stage contributes tells you what can be fixed by prompting, what needs retrieval, and what needs fine-tuning.

1. Pre-trainingtrillions of tokensnext-token prediction 2. Supervised fine-tuning~10k–1M curated (prompt, response)learns to follow instructions 3. Preference tuningRLHF / DPO / RLAIF on comparisonshelpful, harmless, honest Base model (knowledge) → instruct model (format) → aligned assistant (preferences)

In this lesson

  • Stage 1: Pre-training
  • Stage 2: Supervised Fine-Tuning (SFT)
  • Stage 3: Preference tuning
  • Beyond: reasoning models
  • What this means for you as an AI engineer

This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.