sglang-diffusion-benchmark-profile

Measure diffusion denoise latency and collect performance traces for SGLang.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill provides a structured workflow to benchmark the diffusion denoise latency and collect perf data for analysis, enabling reliable performance measurement and comparison across changes in the SGLang diffusion backend.

Core Features & Use Cases

  • Includes checked-in denoise benchmark presets and perf dump collection.
  • Provides torch.profiler traces, hotspot ranking, and mapping hotspots back to known fast paths and fusion families.
  • Facilitates handing confirmed kernel work to specialized optimization skills after profiling to accelerate improvements.

Quick Start

Run bench_diffusion_denoise.py with your target model to execute the end-to-end denoise benchmark and generate a perf dump.

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 benchmark diffusion denoise latency in SGLang?

To benchmark diffusion denoise latency in SGLang, run the bench_diffusion_denoise.py script with your target model to execute an end-to-end run and generate a perf dump for analysis.

How do I collect torch.profiler traces for diffusion hotspots?

You collect torch.profiler traces for diffusion hotspots by running the denoise benchmark, which provides performance traces, hotspot ranking, and maps hotspots back to known fast paths and fusion families.

Do I need an HF_TOKEN to benchmark gated diffusion models?

Yes, you need to export HF_TOKEN as an environment variable when running the denoise benchmark script against gated diffusion models to ensure successful authentication and model access.

What is the best way to identify performance bottlenecks in SGLang diffusion backends?

The best way to identify performance bottlenecks is using the benchmarking and profiling workflow to generate torch.profiler traces, rank hotspots, and map confirmed kernel work to specialized optimization skills.

Can I compare performance across changes in the SGLang diffusion backend?

Yes, you can compare performance across changes by running the structured denoise latency benchmark and collecting perf data, which enables reliable measurement and comparison across backend modifications.

What should I do after profiling identifies diffusion kernel hotspots?

After profiling identifies diffusion kernel hotspots, you should hand the confirmed kernel work to specialized optimization skills to accelerate performance improvements in the SGLang backend.