LESSON 12.01 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Supervised fine-tuning and loss masking
Watch a pretrained model learn to answer when the loss counts only the response.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 12.01 · FINE-TUNING BAYPRETRAINED · WRITES "WHAT COLOR IS THE"
01
Stage 1 of 6 · Pretrained model
The pretrained model reads the prompt. It writes more question words, not an answer.
Explain it simply
This model learned from plain text, so it knows that the sky is blue. But it never saw a chat. After the word bot, it writes more question words in the dotted chips. The bars below show its chance for each next token: blue gets only 0.0029, and what gets 0.22.
Eight teal prompt tokens go into the model. It writes "what, color, is, the" in dotted chips. Bars show the chance of each next token; blue gets 0.0029.
tokensweightslabels and outputlossmasked
Toy: a 2-layer model, 15 tokens, 175 weights, 3 chat pairs
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The model writes its most likely next token.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.