Skip to content
Inference Academy

What is completion-only loss (loss masking)?

Computing the training loss only on the answer tokens, not on the prompt, so the model learns to produce the answer rather than imitate the prompt.

Learn it properly in the lesson →

Where it comes up

Lessons that use this term, most mentions first.

All 115 terms