profile-model
Installation
SKILL.md
Profile Model
Analyze PyTorch profiler traces (.json/.json.gz files) to diagnose GPU performance issues, find slow kernels, and identify bottlenecks.
Step 1: Get Trace Path
Ask the user for the trace file path. Traces are typically:
- Single file:
/path/to/trace.jsonor/path/to/trace.json.gz - Directory (multi-rank):
/path/to/traces/containingrank0.json,rank1.json, etc.
Step 2: Load Trace as DataFrame
Load the trace into a pandas DataFrame for flexible querying.
⚠️ IMPORTANT: Ask user before caching. Do NOT cache automatically. Ask: