llm-torch-profiler-analysis

Analyzes LLM torch-profiler traces to identify performance bottlenecks and fusion opportunities.

12|2|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/scottgl9/sglang-spark-gb10-optimizations --skill llm-torch-profiler-analysis-scottgl9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-torch-profiler-analysis
Source: https://github.com/scottgl9/sglang-spark-gb10-optimizations/tree/main/.claude/skills/llm-torch-profiler-analysis
Command: npx skills add https://github.com/scottgl9/sglang-spark-gb10-optimizations --skill llm-torch-profiler-analysis-scottgl9

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires triage_kernel_helpers, triage_overlap_helpers, profile_common, scripts, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the interpretation and diagnosis of torch-profiler trace files for large language models, enabling efficient performance tuning.

Core Features & Use Cases

  • Profiling Data Inspection: Analyze trace.json or directory profiles from SGLang, vLLM, and TensorRT-LLM frameworks.
  • Performance Bottleneck Identification: Generate detailed tables highlighting kernels, overlaps, and fusion opportunities.
  • Use Case: A developer measures GPU kernel execution on an LLM server; this Skill helps pinpoint slow kernels or fusion failures to enhance throughput.

Quick Start

Use the llm-torch-profiler-analysis skill to examine an existing trace file called 'trace.json.gz'.

Frequently Asked Questions about llm-torch-profiler-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze torch profiler traces to identify GPU performance bottlenecks in large language models?

Analyzing torch profiler traces involves inspecting execution profiles to identify GPU performance bottlenecks and kernel fusion opportunities. This process pinpoints slow kernels in LLM serving frameworks to enhance overall throughput.

Can I use this profiling analysis approach with SGLang, vLLM, and TensorRT-LLM frameworks?

Yes, you can analyze profiling data from SGLang, vLLM, and TensorRT-LLM frameworks. The approach inspects trace files or directory profiles generated by these specific large language model serving environments to locate performance issues.

What is the best way to find kernel fusion opportunities from a trace.json.gz file?

Finding kernel fusion opportunities involves inspecting the trace.json.gz file using custom scripts that parse profiling data. This generates detailed tables highlighting fusion failures and execution overlaps to guide optimization.

Do I need Python libraries to parse profiling data for LLM optimization?

Yes, Python libraries for trace parsing and custom scripts for report generation are required. These dependencies process profiling data and produce detailed tables highlighting kernels and execution overlaps for optimization.

Why does my LLM serving framework experience slow GPU kernel execution and how can I diagnose it?

Slow GPU kernel execution in LLM frameworks stems from performance bottlenecks or fusion failures. Diagnosing it involves generating detailed tables from torch profiling traces to highlight overlapping kernels and pinpoint inefficiencies.