sglang-diffusion-benchmark-profile

Measures diffusion denoise bottlenecks in SGLang via CUDA hotspot ranking and perf-dump comparisons.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sglang, and includes scripts (resource) components.

What problem does it solve?

This Skill helps engineers measure diffusion denoise performance and identify genuine bottlenecks in SGLang before investing in kernel development.

Core Features & Use Cases

  • Denoise Benchmarking: Run standardized presets across image and video diffusion models while collecting denoise latency, end-to-end latency, and peak GPU memory.
  • Profiler Analysis: Capture torch.profiler traces, rank hot CUDA kernels, and compare baseline and modified performance using structured perf dumps.
  • Fast-Path Diagnosis: Map hotspots to existing fused kernels, packed QKV paths, normalization and RoPE fusions, attention backends, and distributed overlap patterns before handing off new kernel work.
  • Use Case: Profile a Wan, FLUX, Qwen, or LTX-2 workload, compare a tuned run with a baseline, and determine whether the slowdown is caused by configuration, a missed existing optimization, or a new kernel opportunity.

Quick Start

Use the sglang diffusion benchmark profile skill to run a fixed-shape denoise benchmark, save its perf dump, capture a representative profiler trace, and classify the dominant hotspot against existing fast paths.

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 denoise latency and find CUDA hotspots in SGLang?

You can profile diffusion denoise latency by running standardized benchmark presets to collect end-to-end latency and capturing torch.profiler traces to rank dominant CUDA kernels in SGLang.

What is the best way to identify existing fused kernel fast paths before writing new CUDA code?

The best way to identify existing fast paths is to map profiler hotspots against packed QKV, normalization, RoPE fusions, and distributed overlap patterns to see if an optimization already exists.

Do I need CUDA-capable GPUs and Hugging Face authentication to benchmark diffusion models?

Yes, CUDA-capable GPUs and PyTorch profiling support are required for benchmarking, while optional Hugging Face authentication is only needed for accessing gated models during the workload.

Can I compare a tuned diffusion run against a baseline using perf dumps?

Yes, you can compare a tuned run against a baseline using structured perf dumps to determine if a slowdown is caused by configuration, a missed existing optimization, or a new kernel opportunity.

Does SGLang diffusion benchmarking support both image and video generation workloads?

Yes, SGLang benchmarking supports both image and video generation workloads by running standardized presets across models like Wan, FLUX, Qwen, and LTX-2 to measure denoise latency and peak GPU memory.

Why does my diffusion model have high denoise latency even after applying kernel optimizations?

High denoise latency after kernel optimizations may persist if the bottleneck stems from configuration or a missed fast path, diagnosable by classifying hotspots against existing fused kernels.