sglang-diffusion-add-model

Automate adding a Diffusers-based diffusion model to SGLang's multimodal_gen framework.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Nabilhassan12345/voice-ai-workspace --skill sglang-diffusion-add-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-add-model
Source: https://github.com/Nabilhassan12345/voice-ai-workspace/tree/main/sglang/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-add-model
Command: npx skills add https://github.com/Nabilhassan12345/voice-ai-workspace --skill sglang-diffusion-add-model

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide enables you to add a new diffusion model or Diffusers pipeline to SGLang, unlocking seamless extension of the multimodal generation system.

Core Features & Use Cases

  • Hybrid-style integration: choose Hybrid or Modular approach to tailor pre-processing and denoising stages for new diffusion variants.
  • End-to-end wiring: define DiT config, VAE, schedulers, and pipeline callbacks, then register with the model registry.
  • Extensibility: reuse existing components when possible to minimize duplication and maximize compatibility with Diffusers.

Quick Start

Create and integrate a new diffusion model into SGLang's multimodal_gen framework.

Frequently Asked Questions about sglang-diffusion-add-model

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

FAQPage Schema
How do I add a new diffusion model to SGLang?

Adding a diffusion model to SGLang involves defining DiT model code, config dataclasses, and a BeforeDenoisingStage, then completing the pipeline wiring and registry registration within the multimodal_gen framework.

What is the difference between Hybrid and Modular integration for diffusion pipelines in SGLang?

Hybrid and Modular integration styles in SGLang allow you to tailor pre-processing and denoising stages differently for new Diffusers-based diffusion variants, maximizing compatibility while minimizing component duplication.

Can I use a Diffusers-based model with SGLang multimodal generation?

Yes, you can use a Diffusers-based model with SGLang multimodal generation by creating the required DiT model code, config dataclasses, and BeforeDenoisingStage, then completing the pipeline wiring and registry registration.

What components do I need to wire when integrating a diffusion model into SGLang?

When integrating a diffusion model into SGLang, you need to wire the DiT config, VAE, schedulers, and pipeline callbacks, while reusing existing components to minimize duplication and ensure Diffusers compatibility.

Do I need to create a registry entry when extending SGLang with a new Diffusers pipeline?

Yes, you need to create a registry entry when extending SGLang with a new Diffusers pipeline to ensure seamless extension of the multimodal generation system and proper end-to-end wiring.