Sglang diffusion benchmark profile

From wenyi-li/awesome-agent-kernel-skills · View interactive version

Sglang diffusion benchmark profile is an AI agent skill from the GitHub repository wenyi-li/awesome-agent-kernel-skills. Use when benchmarking denoise latency or profiling a diffusion bottleneck in SGLang.

How to use this skill

Skill file

SGLang Diffusion Benchmark and Profile

Use this skill when measuring denoise performance, finding the slow op, checking whether an existing fast path can solve it, or verifying that a hotspot is real before any kernel work in sglang.multimodal_gen.

This skill is diagnosis-first. It owns:

This skill does not own low-level kernel authoring or standalone Nsight workflows.

Preflight

Before running any benchmark, profiler, or kernel-validation command:

Native Backend Gate

All diffusion benchmark and profiling results owned by this skill must come from the native SGLang diffusion backend.

Treat any of the following as a hard stop condition:

If any benchmark, perf-dump, or torch.profiler command prints one of those signals:

Main Reference

Opportunity Discovery Rule

Before calling a diffusion hotspot "new", first classify it with existing-fast-paths.md.

Always rule out these existing families first:

If the user explicitly requires torch.compile to stay off, do not use the

default benchmark preset invocation unchanged. Either pass the checked-in

benchmark helper its no-compile switch or run the equivalent manual command

without --enable-torch-compile.

For FLUX-family manual profiling runs with a quantized transformer override:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.