facebookresearch/HolisticTraceAnalysis
A library to analyze PyTorch traces.
What it solves
Holistic Trace Analysis (HTA) identifies performance bottlenecks in distributed training workloads. It helps developers understand why their training jobs might be running slowly by analyzing trace data collected from PyTorch Profiler (Kineto).
How it works
HTA processes trace files collected from a training job. By initializing a TraceAnalysis object with the folder containing your traces, you can run various diagnostic functions. These functions break down GPU activity, calculate communication-computation overlap, analyze kernel patterns, and even compare different traces to visualize performance shifts.
Who it’s for
It is designed for machine learning engineers and researchers who are training large-scale models in distributed environments and need to debug performance issues or optimize GPU utilization.
Highlights
- Temporal Breakdown: Categorizes GPU time into computation, communication, memory events, and idle time.
- Kernel Analysis: Identifies the longest-running kernels and provides statistics on kernel launch patterns.
- Idle Time Attribution: Helps determine if the GPU is waiting on the host, other kernels, or unknown causes.
- Communication/Computation Overlap: Calculates how effectively your code hides communication latency behind computation.
- Trace Comparison: Includes tools to identify and visualize differences between two separate trace files.
- Augmented Insights: Provides data on memory bandwidth utilization and queue lengths for deeper performance tuning.
Related
- Dispatch
- Project
- Project
- Project
- Project