sglang-diffusion-performance

Optimize SGLang diffusion performance settings for a model, GPU, and VRAM budget.

410|14|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/OpenMOSS/MOSS-VL --skill sglang-diffusion-performance-openmoss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-performance
Source: https://github.com/OpenMOSS/MOSS-VL/tree/main/sglang/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-performance
Command: npx skills add https://github.com/OpenMOSS/MOSS-VL --skill sglang-diffusion-performance-openmoss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and optimize SGLang diffusion performance settings for a given model, GPU, and VRAM budget.

Core Features & Use Cases

  • Guided benchmarking to identify optimal backends, degrees of parallelism, and offload configurations for your hardware.
  • Profile-driven recommendations for single- and multi-GPU setups, including Wan2.2-like benchmarks.
  • Operational guidance on environment setup and flag usage to reproduce performance results.

Quick Start

Run sglang generate with your model, GPU budget, and desired performance goals to begin diffusion tuning.

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 a specific GPU and VRAM budget?

To optimize SGLang diffusion performance, you can use guided benchmarking to identify optimal backends, degrees of parallelism, and offload configurations tailored to your specific GPU and VRAM constraints.

What SGLang flags should I use to tune diffusion inference speed and memory?

Tuning diffusion inference requires setting exact SGLang flags to enable or disable components like torch.compile, Ulysses, offloads, and attention backends to achieve the fastest inference speed with acceptable memory usage.

Can I benchmark SGLang diffusion natively across multiple GPUs?

Yes, you can benchmark native SGLang diffusion performance across multiple GPUs by applying profile-driven recommendations and parameter presets to compare baseline performance results.

What is the best way to set up the environment for SGLang diffusion benchmarking?

The best way to prepare for SGLang diffusion benchmarking involves following operational guidance on environment setup and flag usage to accurately reproduce performance results across different hardware configurations.

Does torch.compile work with SGLang diffusion models to improve performance?

Yes, torch.compile is a supported component in SGLang diffusion performance tuning, where you can enable or disable it alongside Ulysses and attention backends to identify the optimal configuration for your model.

When should I disable offloads or Ulysses during SGLang diffusion tuning?

You should evaluate disabling offloads or Ulysses components during SGLang diffusion tuning if your profile-driven benchmarks indicate they negatively impact inference speed or exceed your target VRAM budget.