add-new-diffusion-model

Guide end-to-end integration of new diffusion models into SGLang pipelines.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/togethercomputer/xorl-sglang --skill add-new-diffusion-model-togethercomputer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-new-diffusion-model
Source: https://github.com/togethercomputer/xorl-sglang/tree/main/python/sglang/multimodal_gen/.claude/skills/support-new-model
Command: npx skills add https://github.com/togethercomputer/xorl-sglang --skill add-new-diffusion-model-togethercomputer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a complete, prescriptive guide to add support for a new diffusion model in SGLang, enabling end-to-end integration from model components to registry.

Core Features & Use Cases

  • Hybrid Monolithic pipeline (BeforeDenoisingStage) guidance for complex, model-specific pre-processing.
  • Modular Composition Style pathway guidance for reuse with existing components and pipelines.
  • Step-by-step instructions covering pipeline config, component wiring, registration, and testing for robust production deployment.

Quick Start

Begin by outlining your model, then implement the BeforeDenoisingStage, wire in the standard DenoisingStage and DecodingStage, and register the pipeline with the global registry.

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?

To add a new diffusion model to SGLang, you implement model-specific pre-processing components, wire them into standard denoising and decoding stages, and register the pipeline configuration in the global registry.

What is the BeforeDenoisingStage in a diffusion model pipeline?

The BeforeDenoisingStage is a pre-processing step in a diffusion model pipeline used for complex, model-specific data preparation before the standard denoising stage executes.

When do I need a modular composition style for diffusion model integration?

You need a modular composition style for diffusion model integration when you want to reuse existing pipeline components and stages rather than building a single monolithic pipeline from scratch.

How do I register a diffusion model pipeline in the global registry?

You register a diffusion model pipeline in the global registry by wiring your model components together, defining the pipeline configuration, and adding the required registry entries for production deployment.

What is the best way to test a new diffusion model integration in SGLang?

The best way to test a new diffusion model integration is to follow the step-by-step testing documentation after completing pipeline configuration, component wiring, and registry entry to ensure robust production deployment.