Skip to content
RED SAGSkills
medium10 pts · first answer countsfine-tuningsft

Label value -100 in Hugging Face

In this Hugging Face SFT preprocessing, what happens to positions whose label is -100?

labels = input_ids.clone()
labels[:prompt_len] = -100
loss = model(input_ids=input_ids, labels=labels).loss
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions