How profiling helped diagnose spikes in GPU utilization
summary
A MLOps engineer describes diagnosing GPU utilization spikes that caused much slower training iterations in a cloud pipeline than on the client’s on-prem hardware. The talk explains how monitoring showed GPU core usage dropping to zero, why simply increasing batch size didn’t help, and how code profiling (with discussion of profiling tools, their uses and limits) was used to find and fix the bottlenecks in data loading, preprocessing, forward/backward passes, metric calculation, and checkpointing.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 3:19GPU spikes problem
- 5:44Infrastructure setup
- 7:10Performance degradation
- 10:42Failed optimizations
- 12:32Manual debugging fails
- 13:17Introducing profilers
- 16:50PyTorch profiler setup
- 18:18Handling trace files
- 20:58Distributed training issues
- 21:41NVIDIA profiling tools
- 24:13Systems profiling tools
- 27:48Limited C as last resort
- 28:30Choosing the right tool
- 29:54Profiling results and fixes
- 32:07Key takeaways
- 34:16Q&A
