sglang-diffusion-performance

Identify fastest SGLang Diffusion flags for a model, GPU, and VRAM budget.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies the fastest SGLang Diffusion flags for a given model, GPU, and VRAM budget to minimize latency while staying within memory constraints.

Core Features & Use Cases

  • Benchmark and compare native SGLang and Diffusers backends to establish accurate baselines.
  • Recommend GPU- and VRAM-appropriate flag configurations, including multi-GPU overlap strategies and offload settings.
  • Apply performance tuning to diffusion workloads across model families (e.g., Wan2.x, LTX-2) for speed, memory efficiency, and stability in production runs.

Quick Start

Run a diffusion performance benchmark on your target model to identify the fastest flag configuration within your GPU/VRAM constraints.

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 diffusion model performance within a specific GPU and VRAM budget?

Optimizing diffusion performance involves analyzing model type, GPU count, and VRAM budget to identify the fastest SGLang flag configurations. This approach minimizes latency and maximizes speed while strictly staying within your hardware memory constraints.

How do I benchmark SGLang against Diffusers backends for diffusion workloads?

Benchmarking SGLang against Diffusers backends compares native SGLang and Diffusers processing to establish accurate baseline timings. This comparison helps identify the optimal backend configuration for speed and memory efficiency across diffusion workloads.

Can I tune SGLang diffusion flags for multi-GPU setups?

Yes, you can tune SGLang diffusion flags for multi-GPU setups. The tuning process analyzes multi-GPU layout and memory budget to recommend appropriate flag configurations, including multi-GPU overlap strategies and offload settings for efficient production runs.

Does SGLang performance tuning support Wan2.x and LTX-2 model families?

SGLang performance tuning supports diffusion workloads across model families including Wan2.x and LTX-2. It applies targeted performance tuning to these models to maximize speed, memory efficiency, and stability during production runs.

What is the best way to reduce diffusion latency without hitting VRAM limits?

The best way to reduce diffusion latency without hitting VRAM limits is to apply SGLang performance tuning. By analyzing memory budget and backend options, it provides actionable configurations and offload settings that maximize speed while respecting hardware constraints.