Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
๐
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
PyTorch Memory Profiling & Viz
ยท
Module 3
Post-Mortem Debugging with Memory Viz
1
Saving Memory Snapshots on OOM Errors
Configure a script to save a memory snapshot using `torch.cuda.memory._record_mem_history()` upon an OOM error.
Visualize Memory Allocation with `pytorch.org/memory_viz`
Upload a memory snapshot to the `pytorch.org/memory_viz` tool to visualize the memory allocation timeline.
Debugging Out-of-Memory Errors with the Memory Visualizer
Use the memory visualizer's plot and stack traces to identify the exact line of code that triggered the OOM error.
Previous module
In-Depth Analysis with PyTorch Profiler & TensorBoard
Next module
System-Level and Continuous Monitoring