sglang-diffusion-benchmark-profile

Profile diffusion denoise latency and hotspots using the SGLang backend.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Benchmark and profile diffusion denoise latency and hotspot behavior using SGLang's native backend to guide kernel optimizations.

Core Features & Use Cases

  • Prebuilt benchmarks: access and understand checked-in denoise benchmarks, perf dumps, and hotspot rankings.
  • Guarded workflow: validate native diffusion paths, detect fallbacks, and map hotspots to fast paths or kernel work.
  • Reference guidance: provides links to canonical references and scripts for environment setup and profiling.

Quick Start

Run the native SGLang diffusion benchmark preset with a specified model to capture denoise latency and profiler traces.

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 using SGLang?

Profile diffusion denoise latency by running the native SGLang diffusion backend benchmark preset, which captures torch.profiler traces and hotspot rankings to locate kernel bottlenecks.

What's the best way to identify hotspot bottlenecks in diffusion models?

Identify diffusion hotspot bottlenecks using checked-in perf dumps and native benchmark scripts that map latency hotspots to fast paths or kernel optimization work.

Do I need CUDA-enabled GPUs to benchmark diffusion latency?

Yes, profiling diffusion denoise latency requires CUDA-enabled GPUs, HF_TOKEN environment setup, and access to preflight utilities to validate native backend paths and capture profiler traces.

Can I use this diffusion profiling workflow across different model backends?

Yes, the diffusion benchmark and hotspot profiling workflow is applicable across various diffusion models and backends to locate bottlenecks and verify checked-in benchmarks.

Why does my SGLang diffusion backend fall back instead of using native paths?

Fallbacks occur when native diffusion paths are invalid; the guarded workflow validates native paths, detects fallbacks, and maps hotspots to guide kernel optimization handoffs.

How to verify checked-in diffusion benchmarks with a profiler?

Verify checked-in benchmarks by running the SGLang native diffusion benchmark preset to capture denoise latency, torch.profiler traces, and hotspot rankings for validation.