~/lightning

Lightning Talk: Profiling and Memory Debugging Tools for Distributed ML Workloads on GPUs

Lightningat PyTorch Conference 2023 · 2023-10-16..10-17· [machine-learning]
name:Aaron Shi
links:none on file
slides:none on file

Overview of concrete debugging steps and outcomes for PyTorch GPU memory: introduces Memory Snapshot that records allocation stacks and produces time-series plots (drag a file into pyto.org/memory viz) and the Reference Cycle Detector that emits object-graph warnings when tensors survive GC. Shows a reproducible bug where GC must run every 100 iterations to reclaim cycle-held tensors, and fixing reference cycles cuts peak GPU usage and reduces fragmentation. Also mentions Profiler/Kineto, Holistic Trace Analysis and Dynolog as tracing and on-demand tools.

AI-written summary · about

  1. 0:00Introduction to GPU issues
  2. 0:39Memory snapshot tool
  3. 1:47Training example analysis
  4. 2:34Debugging a memory bug
  5. 3:42Memory profiler integration
  6. 4:24Understanding reference cycles
  7. 6:35Complex reference cycles
  8. 7:37Reference cycle detector
  9. 8:38Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.