What problem does it solve?
This Skill turns SGLang torch.profiler traces or live-server profiles into a compact diagnosis of dominant kernels, missed overlap opportunities, and recognizable fusion patterns.
Core Features & Use Cases
- Kernel Triage: Identify GPU kernels that dominate prefill, decode, or extend stages and map them to CPU operations and Python source locations.
- Overlap Analysis: Compare graph-off mapping traces with formal graph-on traces to assess hidden work, dependency risk, and practical overlap headroom.
- Fusion Pattern Detection: Match trace evidence against source-backed SGLang, FlashInfer, diffusion, MoE, attention, and upstream optimization catalogs before labeling an opportunity as novel.
- Live or Offline Workflows: Analyze existing trace files and profile directories or trigger profiling against a running SGLang server, including stage-specific profiling.
- Use Case: When a decode benchmark shows unexpectedly low throughput, use this Skill to determine whether attention, communication, metadata preparation, or MoE kernels dominate and whether an existing fusion or overlap path is disabled.
Quick Start
Use the SGLang torch-profiler analysis skill to triage the profile at the specified trace or profile-directory path and return the compact kernel, overlap-opportunity, and fuse-pattern report.