Chapter 265 / 8
Correctness, Debugging, and Performance Experiments
Debug a broken GPT training notebook containing NaNs, a mask bug, and shifted labels
Hard
Target interface
training_step(model, input_ids, attn_mask_bias)Complete the starter code in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.