Chapter 111 / 6
SFT, Instruction Tuning & PEFT
Implement prompt-token loss masking given (prompt_len, total_len) per sample
Easy
Target interface
build_labels(input_ids, prompt_len, total_len)Implement the function/class skeleton in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.