add-new-diffusion-model

Guide adding new diffusion models to the SGLang framework.

105|9|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/guqiong96/Lsglang --skill add-new-diffusion-model-guqiong96
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-new-diffusion-model
Source: https://github.com/guqiong96/Lsglang/tree/main/python/sglang/multimodal_gen/.claude/skills/support-new-model
Command: npx skills add https://github.com/guqiong96/Lsglang --skill add-new-diffusion-model-guqiong96

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to integrating new diffusion models into the SGLang framework, ensuring compatibility and efficient deployment.

Core Features & Use Cases

  • Pipeline Style Guidance: Helps choose between Hybrid Monolithic and Modular Composition styles for optimal model integration.
  • Step-by-Step Implementation: Details the process from studying reference implementations to registering the new model.
  • Use Case: A researcher wants to add a novel diffusion model they developed to SGLang for hybrid inference. This Skill guides them through adapting the model's components, defining configurations, and ensuring it works seamlessly within the SGLang ecosystem.

Quick Start

Follow the step-by-step guide to implement and register a new diffusion model.

Frequently Asked Questions about add-new-diffusion-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 for GPU inference?

To add a new diffusion model to SGLang, you must design the pipeline style, implement model components like DiT and VAE, define configurations, and register the model while following SGLang's stage-based architecture. Use reference implementations as a starting point.

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

Hybrid Monolithic and Modular Composition are two pipeline development styles for model integration in SGLang. The choice between them determines how tightly the model components are coupled during deployment, affecting both implementation flexibility and inference efficiency.

Does my custom diffusion model need specific components like DiT and VAE to work with SGLang?

Yes, integrating a custom diffusion model into SGLang requires implementing core components like DiT, VAE, and encoders. You must adapt these components to fit SGLang's architecture and ensure proper configuration setup for successful hybrid inference.

What are the common pitfalls when integrating diffusion models into the SGLang framework?

Common pitfalls when adding diffusion models to SGLang include failing to adhere to the stage-based architecture and improperly registering the model. Following the provided checklists and studying reference implementations helps avoid these integration errors.

Can I use SGLang for deep learning pipeline development with novel diffusion models?

Yes, SGLang supports deep learning pipeline development for novel diffusion models. It guides you through adapting model components, defining configurations, and ensuring seamless operation within the SGLang ecosystem for hybrid inference.