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