mediumAI Engineering

What is the difference between a base model, an instruction-tuned model and a chat model?

1.1k views
01

Understand the problem

Pretraining vs post-training: why raw next-token predictors need alignment before they are useful assistants.

base-modelinstruction-tuningrlhfpost-training
02

Attempt it yourself

Sketch your approach before reading the solution — that's what interviews test.

Stuck? AI Nudge Available

Get a conceptual hint to guide your logic without spoiling the final implementation.

03

Study the solution

The solution is waiting

Give it an honest attempt first — then compare your thinking with the full walkthrough.

04

Read the code

Same input, different behaviour
# base model — plausible continuation, not an answer
IN:  "What is the capital of France?"
OUT: " What is the capital of Spain? What is..."   # quiz-sheet pattern

# chat model — role-structured, answers the request
IN:  [system] You are a concise assistant.
     [user]   What is the capital of France?
OUT: "Paris."
05

Join the discussion

Discussion (0)

Sign in to join the discussion.

No responses yet. Be the first to share what you think.