sglang-diffusion-benchmark-profile

Measure diffusion denoise latency and collect perf dumps for SGLang backend validation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables users to measure diffusion denoise latency, collect perf dumps, and profile native SGLang diffusion backend performance to identify bottlenecks and validate optimizations.

Core Features & Use Cases

  • Preflight environment checks and native backend gate enforcement before benchmarking.
  • End-to-end diffusion benchmarks across presets and models, capturing denoise latency, end-to-end latency, and peak memory.
  • Torch profiler traces, perf dumps, hotspot ranking, and guidance for kernel-optimization handoffs.
  • Scripted workflows and references to reproduce results and compare across runs.

Quick Start

Run the diffusion benchmark profile for a chosen model using the included bench_diffusion_denoise.py script.

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 measure diffusion denoise latency and collect perf dumps?

To measure diffusion denoise latency and collect perf dumps, run the included bench_diffusion_denoise.py script to execute end-to-end benchmarks across multiple models, capturing denoise latency, peak memory, and Torch profiler traces.

What's the best way to profile native SGLang diffusion backend performance?

Profiling native SGLang diffusion backend performance involves applying end-to-end benchmarks across presets and GPU configurations, using Torch profiler traces and perf dumps to capture performance signals and rank hotspots for kernel-optimization handoffs.

How do I run preflight checks before benchmarking diffusion models?

Running preflight checks before benchmarking diffusion models requires enforcing native backend gate validation and environment verification to ensure the native SGLang diffusion backend is active and properly configured before collecting latency metrics.

Can I benchmark end-to-end latency across multiple diffusion models and GPU configurations?

Yes, you can benchmark end-to-end latency across multiple diffusion models, presets, and GPU configurations to capture denoise latency, peak memory, and performance traces, validating the native diffusion backend performance signals.

How do I generate Torch profiler traces to identify diffusion kernel bottlenecks?

Generating Torch profiler traces to identify diffusion kernel bottlenecks is handled by collecting perf dumps during benchmark execution, ranking hotspots from the profiler outputs, and guiding kernel-optimization handoffs for the native backend.

Why does my diffusion benchmark require the native SGLang diffusion backend?

Your diffusion benchmark requires the native SGLang diffusion backend because the Skill enforces preflight checks and native backend gate validation to ensure accurate measurement of denoise latency and reliable collection of profiler outputs.