sglang-diffusion-benchmark-profile

Benchmark and profile diffusion models using torch.profiler traces.

12|2|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/scottgl9/sglang-spark-gb10-optimizations --skill sglang-diffusion-benchmark-profile-scottgl9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-benchmark-profile
Source: https://github.com/scottgl9/sglang-spark-gb10-optimizations/tree/main/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-benchmark-profile
Command: npx skills add https://github.com/scottgl9/sglang-spark-gb10-optimizations --skill sglang-diffusion-benchmark-profile-scottgl9

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines benchmarking, profiling, and diagnosing bottlenecks in diffusion models, reducing manual effort and analysis time.

Core Features & Use Cases

  • Benchmarking: Run standardized diffusion denoise latency tests across multiple presets.
  • Profiling: Collect detailed torch.profiler traces to identify hotspot kernels.
  • Diagnosis: Classify hotspots against existing fast paths and prepare kernel work for optimization teams.
  • Use Case: A researcher measures the impact of model modifications on inference speed and visualizes performance bottlenecks in diffusion pipelines.

Quick Start

Use this skill to profile a diffusion model and gather performance data before attempting kernel enhancements.

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 model inference to identify hotspot kernels?

Benchmark diffusion inference latency by running standardized denoise latency tests across multiple presets. This automates test runs using Python and subprocess modules to measure model modifications accurately.

How do I benchmark diffusion denoise latency across multiple presets?

Benchmark diffusion denoise latency by running standardized tests across multiple presets. This automates test runs using Python and subprocess modules to measure model modifications accurately and reduce manual analysis time.

Do I need Python and torch installed to run diffusion profiling workflows?

You need Python with torch and subprocess modules installed to run diffusion profiling workflows. These dependencies automate test runs and analyze traces to diagnose system efficiency bottlenecks.

What is the best way to diagnose performance bottlenecks in diffusion pipelines?

Diagnose performance bottlenecks in diffusion pipelines by classifying hotspots against existing fast paths. This prepares specific kernel work for optimization teams to improve overall inference latency.

When should I use automated profiling for diffusion model optimization?

Use automated profiling for diffusion model optimization before attempting kernel enhancements. It measures the impact of model modifications on inference speed and visualizes performance bottlenecks to streamline diagnosis.