sglang-diffusion-benchmark-profile

Diagnose denoising bottlenecks in SGLang diffusion workloads via benchmarks and profiler traces.

556|81|Updated May 19, 2026
One-click install
npx skills add https://github.com/FutureMLS-Lab/OSCAR --skill sglang-diffusion-benchmark-profile-futuremls-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-benchmark-profile
Source: https://github.com/FutureMLS-Lab/OSCAR/tree/main/sglang-research/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-benchmark-profile
Command: npx skills add https://github.com/FutureMLS-Lab/OSCAR --skill sglang-diffusion-benchmark-profile-futuremls-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill helps identify real denoising latency bottlenecks in SGLang diffusion workloads before investing time in kernel development or other low-level optimization work.

Core Features & Use Cases

  • Denoise Benchmarking: Run checked-in presets across image and video diffusion models while recording denoise latency, end-to-end latency, and peak GPU memory.
  • Performance Profiling: Capture torch.profiler traces, rank CUDA hotspots, and compare baseline and optimized perf dumps.
  • Fast-Path Diagnosis: Classify bottlenecks against existing fused kernels, packed QKV paths, attention backends, normalization optimizations, and distributed overlap families before handing off kernel work.
  • Use Case: When a new diffusion change appears slower, use this skill to reproduce the workload, compare fixed-shape baseline and modified runs, inspect the denoising trace, and determine whether the issue is configuration, fast-path enablement, or a genuine kernel opportunity.

Quick Start

Use this skill to benchmark a selected SGLang diffusion model, save its perf dump, and diagnose the dominant denoising 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 denoise latency bottlenecks in diffusion models?

To profile denoise latency bottlenecks in diffusion models, you can run reproducible benchmarks and capture torch.profiler traces to rank CUDA hotspots and inspect end-to-end latency. This skill applies to image and video generation workloads running on SGLang.

How do I compare baseline and optimized performance for SGLang diffusion workloads?

You can compare baseline and optimized performance for SGLang diffusion workloads by running fixed-shape benchmark presets, saving perf dumps, and analyzing profiler traces to identify configuration issues or genuine kernel opportunities.

Do I need CUDA-capable GPUs to benchmark diffusion performance?

Yes, CUDA-capable GPUs are required to benchmark diffusion performance and capture profiler traces. You also need SGLang installed, and optional Hugging Face authentication is supported for accessing gated models.

When should I use torch profiler to diagnose diffusion hotspots?

You should use torch profiler to diagnose diffusion hotspots when a new change appears slower, requiring you to reproduce the workload, inspect the denoising trace, and determine if the issue is fast-path enablement or a kernel opportunity.

Can I classify diffusion bottlenecks against existing fused kernels?

Yes, you can classify diffusion bottlenecks against existing fused kernels, packed QKV paths, attention backends, normalization optimizations, and distributed overlap families before handing off kernel work.

What is the best way to validate GPU memory behavior for video generation models?

The best way to validate GPU memory behavior for video generation models is to run checked-in benchmark presets that record peak GPU memory alongside denoise latency, allowing you to compare baseline and modified runs.