~/talk

How profiling helped diagnose spikes in GPU utilization

TalkinRussianat PyCon Russia 2024 · 2024-07-26..07-27· [machine-learning, devops-and-delivery]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 3:19GPU spikes problem
  3. 5:44Infrastructure setup
  4. 7:10Performance degradation
  5. 10:42Failed optimizations
  6. 12:32Manual debugging fails
  7. 13:17Introducing profilers
  8. 16:50PyTorch profiler setup
  9. 18:18Handling trace files
  10. 20:58Distributed training issues
  11. 21:41NVIDIA profiling tools
  12. 24:13Systems profiling tools
  13. 27:48Limited C as last resort
  14. 28:30Choosing the right tool
  15. 29:54Profiling results and fixes
  16. 32:07Key takeaways
  17. 34:16Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.