sglang-diffusion-performance

Benchmark SGLang diffusion pipelines to select optimal flags for GPUs and VRAM budgets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps users optimize diffusion performance by benchmarking and selecting the fastest native SGLang flags for a given model, GPU configuration, and VRAM budget.

Core Features & Use Cases

  • Benchmark native diffusion paths: evaluate different backends and parallelism strategies to maximize throughput under memory constraints.
  • Guided flag selection: provides actionable recommendations for flags like --backend, --enable-torch-compile, --warmup, and offload/precision options based on hardware.
  • Use Case: an engineer tuning Wan2.2 or LTX-2 deployments can quickly identify the fastest configuration that meets the VRAM budget.

Quick Start

Provide the model details, GPU configuration, and VRAM budget, then run the diffusion performance tuning workflow to identify and apply the fastest native SGLang flags.

Frequently Asked Questions about sglang-diffusion-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize SGLang diffusion performance for limited GPU VRAM?

To optimize SGLang diffusion performance under VRAM constraints, benchmark native pipeline configurations across your models and GPUs to select appropriate flags like --backend and offload options. This identifies the fastest configuration that fits your memory budget.

What is the best way to benchmark diffusion throughput in SGLang multi-GPU environments?

Benchmarking diffusion throughput in SGLang multi-GPU environments involves running native diffusion benchmark scripts and collecting perf-dumps. Interpreting these results guides the selection of parallelism strategies and flags to maximize throughput.

Does enabling torch compile improve SGLang diffusion speed?

Enabling torch compile can improve SGLang diffusion speed. Use the --enable-torch-compile flag during benchmarking to evaluate its impact on your specific model and GPU configuration, alongside --warmup and precision options.

Can I tune Wan2.2 or LTX-2 deployments using SGLang native flags?

You can tune Wan2.2 or LTX-2 deployments by using the diffusion performance tuning workflow. This evaluates different backends and offload options to quickly identify the fastest configuration meeting your VRAM budget.

Why does SGLang diffusion require warmup before achieving peak performance?

SGLang diffusion requires warmup to allocate memory and compile kernels before achieving peak performance. Applying the --warmup flag ensures the pipeline is fully initialized, allowing benchmark scripts to measure stable, maximum throughput accurately.