Your question is LLM Fine-Tuning Bug Hunt. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
You are given a PyTorch training script for an LLM fine-tuning run that is failing to converge or throwing runtime errors. Identify and resolve three hidden bugs in the training loop and data loader.