sglang-diffusion-add-model

Automate diffusion model integration into SGLang with Hybrid or Modular pipelines.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured blueprint to add a new diffusion model or Diffusers pipeline to SGLang, including guidance on hybrid and modular pipeline styles, configuration, and integration steps.

Core Features & Use Cases

  • Enables end-to-end model integration in SGLang by wiring DiT components, VAEs, text encoders, schedulers, and registry entries.
  • Supports Hybrid and Modular pipeline styles to accommodate model-specific preprocessing or reuse of standard stages.
  • Includes a step-by-step template (Steps 1-9) covering reference study, component reuse, config creation, stage implementation, and registration.

Quick Start

Clone the repository, study the reference Diffusers pipeline for your model, and implement a new diffusion model in SGLang following the Hybrid or Modular workflow outlined in the guide.

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 diffusion model to SGLang?

To add a diffusion model to SGLang, follow a structured workflow covering reference study, component reuse, configuration creation, and registry wiring. This integration involves connecting DiT components, VAEs, text encoders, and schedulers into an end-to-end pipeline.

What is the difference between Hybrid and Modular pipeline styles in SGLang?

Hybrid and Modular pipeline styles in SGLang accommodate model-specific preprocessing or the reuse of standard stages. Choosing between them depends on whether your diffusion model requires custom integration logic or can assemble existing standard pipeline components directly.

Can I reuse Diffusers pipeline components when integrating a model into SGLang?

Yes, you can reuse Diffusers pipeline components when integrating a model into SGLang. The workflow includes a reference study step to analyze existing Diffusers pipelines, allowing you to identify and repurpose standard stages like text encoders and schedulers.

What is the best way to wire DiT components and VAEs into a production-grade diffusion pipeline?

The best way to wire DiT components and VAEs into a production-grade diffusion pipeline is using a step-by-step template covering stage implementation and registration. This ensures correct registry entries and valid pipeline integration within SGLang.

Do I need to create config files to integrate diffusion models into SGLang?

Yes, you need to create configuration files to integrate diffusion models into SGLang. The integration workflow explicitly includes a config creation step to define how the model's components and pipeline stages are structured and executed.

Why does my new diffusion pipeline fail to register in SGLang?

A new diffusion pipeline fails to register in SGLang if the integration workflow is incomplete. You must follow the end-to-end steps including component implementation, configuration creation, and proper registry wiring to ensure the pipeline is recognized.