Interview practice question
Training is slower than expected
Machine Learning · ML Frameworks · Intermediate
Your PyTorch training runs at half the throughput you expected. How do you find and fix the bottleneck?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Profile with PyTorch Profiler; check GPU utilization.
- Data loading: workers, formats, preprocessing.
- Mixed precision; torch.compile.
- Avoid CPU-GPU syncs.
- Batch size and kernel efficiency.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.