Tagged articles

assistant-only loss

1 articles · Page 1 of 1
Wu Shixiong's Large Model Academy
Wu Shixiong's Large Model Academy
Aug 7, 2026 · Artificial Intelligence

Why a Single -100 Line Determines Who the Multi‑Round SFT Learns to Speak

The article explains how using -100 as an ignored label in PyTorch cross‑entropy loss silently masks non‑assistant tokens, how to locate assistant spans via prefix‑difference, the trade‑offs between supervising only the final reply versus all assistant turns, and the essential pre‑training checks to avoid hidden masking errors in multi‑round SFT.

LLMPyTorchSFT
0 likes · 14 min read
Why a Single -100 Line Determines Who the Multi‑Round SFT Learns to Speak