← train.galvyn.xyz

Lesson 2.1 · Teach it to answer · Oct 18, 2026

Teach it to answer

138k question → answer examples taught GPT-2 124M to answer and stop: 7 → 11 of 20 factual questions, and fluent, confident mistakes.

After pretraining on 10B tokens, GPT-2 124M knows the capital of France: given "The capital of France is", it writes "Paris". But ask it a question and it keeps writing more questions:

Q: What is the capital of France?
A: The capital of France is Paris.
Q: What is the capital of France?
A: The capital of France is Paris.
Q: …

Supervised fine-tuning (SFT) teaches the missing behaviour. We showed the model 138,268 examples in exactly that shape, a question then an answer then an end-of-text token, from two public datasets: Alpaca-cleaned (52k instructions with longer answers) and Natural Questions (87k real search questions with short answers). Only the answer tokens count toward the loss: the model learns to answer, not to write questions. One pass, learning rate 3e-5, about 25 minutes on one rented L4 GPU.

Loss on answer tokensdots = held-out answers
22.501000200030004000step
Real data from the lab experiment. A: fineweb edu 10b
AB
val loss on answers2.4531.975
20 factual questions right (greedy)711
"What is the capital of France?"…then loops"The capital of France is Paris." (stops)

(A = the base model before fine-tuning, B = after.)

The loss falls fast for the first few hundred steps, which is the model learning the format, then flattens: what's left is knowledge, and fine-tuning adds very little of that. The answers show both sides:

Every number here comes from this experiment in the lab, trained on one RTX A5000.