Menu

streamft 1.2.1: why your SFT rows are silently dropped
📰

streamft 1.2.1: why your SFT rows are silently dropped

DEV Community: python·Atom Zero·1 day ago
#q1qTiEjy
#devtopython#devto#dev#rows#prompt
Long article (331 words) — no AI summary yet.
Reading 0:00
15s threshold

When you fine-tune a chat model on a small GPU, one of the quietest failure modes is a row that never trains.

streamft builds the loss mask from the chat template: the prompt tokens are masked with -100 and only the assistant continuation is trained. If the prompt is not an exact prefix of the templated row, the mask would cover nothing, so the row is dropped instead of training on the prompt itself.

Until 1.2.1 the message blamed every drop on a template mismatch:

[sft] 48/130 rows dropped: the prompt is not an exact prefix of the templated row

Enter fullscreen mode

Exit fullscreen mode

That is misleading. On a 130-row multi-turn tool-use dataset at --seq 512 , the measured reason was different: 46 rows needed 768 tokens and 2 needed 1024. All 48 were truncated , not broken templates.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.