sglang-diffusion-benchmark-profile

Benchmark denoise latency and profile hotspots in SGLang diffusion backends.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/hey-kong/sglang --skill sglang-diffusion-benchmark-profile-hey-kong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-benchmark-profile
Source: https://github.com/hey-kong/sglang/tree/main/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-benchmark-profile
Command: npx skills add https://github.com/hey-kong/sglang --skill sglang-diffusion-benchmark-profile-hey-kong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Diagnoses diffusion bottlenecks by benchmarking denoise latency and profiling hotspots to guide optimizations.

Core Features & Use Cases

  • Checks in denoise benchmarks, collects perf dumps, and ranks hotspots.
  • Maps hot kernels to known fast paths and fusion families, and routes confirmed issues to kernel-optimization skills.
  • Supports preflight checks, torch.profiler traces, and before/after comparisons to verify improvements.

Quick Start

Run the diffusion benchmark profile on a target model to capture a perf dump and compare results.

Frequently Asked Questions about sglang-diffusion-benchmark-profile

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

FAQPage Schema
How do I profile diffusion latency and find hotspots in SGLang?

To profile diffusion latency, run a denoise benchmark on your target model to capture a perf dump. This identifies slow operations and ranks hotspots to guide your kernel optimizations.

Can I use torch.profiler traces to diagnose diffusion bottlenecks?

Yes, you can collect torch.profiler traces to diagnose diffusion bottlenecks. The profiling workflow supports capturing detailed traces and mapping identified hotspots to known fast paths for optimization.

What is the best way to benchmark denoise latency across different diffusion models?

Benchmarking denoise latency involves running preflight checks and capturing perf dumps across various models, presets, and hardware. This process identifies slow operations and verifies hotspots before starting kernel work.

How do I verify improvements after optimizing diffusion hotspots?

You can verify improvements by running before and after comparisons using the benchmarking and profiling workflow. This compares denoise latency and torch.profiler traces to confirm your kernel optimizations resolved the bottlenecks.

Does this profiling workflow support routing confirmed hotspots to kernel-optimization skills?

Yes, after mapping hot kernels to known fast paths and fusion families, the workflow routes confirmed issues directly to kernel-optimization skills to streamline your diffusion backend optimizations.