Skip to solution
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.

Nudge consolestandby

Stuck? Beam a request up — the console returns a conceptual nudge that guides your logic without spoiling the implementation.

03

Study the solution

A base model is the raw next-token predictor from pretraining — it completes text but does not follow instructions. Instruction tuning fine-tunes it on (instruction, response) pairs so it answers requests, and chat models add multi-turn conversation formatting plus preference training (RLHF/RLAIF) for helpfulness and s

Solution ready — 2 min read

Classified // press E to declassify

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.

Transmission complete // awaiting log

KEEP THE
STREAK ALIVE.

Dossier 18 of 80 decoded in the AI Engineering track. One more won't hurt.

Back to track