Debug a training run whose loss is diverging
HardResearch30 minRERSPro outline
The question
A transformer training run was fine for 20,000 steps, then the loss spiked and became NaN. You have the logs and checkpoints. Walk me through how you find the cause.
What the interviewer is looking for
- A systematic plan, cheapest checks first
- Knows common causes: learning rate, bad data, fp16 overflow, optimizer state
- Uses checkpoints to reproduce
- Watches the right signals
- Proposes fixes and how to verify them
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Reported in: techinterview.org, datainterview.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Anthropic question.