diffusion-optimal-perf
OfficialAccelerate diffusion model inference.
Authormoirai-internal
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps users achieve the best possible performance when running diffusion models with SGLang, addressing issues like slow inference, high VRAM usage, and latency.
Core Features & Use Cases
- Lossless Optimizations: Techniques like
torch.compile, warmup, and multi-GPU parallelism that don't sacrifice output quality. - Lossy Optimizations: Methods such as approximate attention and quantized models that trade a small amount of quality for significant speed or VRAM gains.
- Use Case: A user wants to generate images faster and reduce the memory footprint of a large diffusion model. They can use this Skill's guide to apply a combination of
torch.compile, CPU offloading for specific components, and potentially a lossy attention backend to meet their performance targets.
Quick Start
Use the diffusion-optimal-perf skill to apply lossless optimizations for faster diffusion model inference.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: diffusion-optimal-perf Download link: https://github.com/moirai-internal/sglang/archive/main.zip#diffusion-optimal-perf Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.