Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Mask the system message out of the SFT loss. The model never generates it at serving time, so scoring it just teaches the model to parrot persona templates.
Picture an acting class where the student has to deliver lines in a play. The director gives the student a character sheet (you are a polite assistant) and a script line from the other actor (please summarise this). The student is graded only on how they say their own line, not on whether they can recite the character sheet or echo the other actor. Grading them on the setup pieces would just teach memorisation of stage directions, which no audience pays to hear. Training is the same. The model gets graded on the assistant turn alone, because that is what gets spoken at serving time. The system and user messages are stage setup, not performance.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: state the answer B, explain why conditioning tokens should not be scored, name the -100 ignore-index mechanism, and end with the per-span loss debugging tip.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Forgetting to mask the system and user spans, so the model learns to predict the prompt template alongside the answer. The tell is training loss that drops suspiciously fast on shared system text.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.