sglang-diffusion-add-model

Integrate diffusion models and Diffusers pipelines into SGLang's multimodal runtime.

556|81|Updated May 19, 2026
One-click install
npx skills add https://github.com/FutureMLS-Lab/OSCAR --skill sglang-diffusion-add-model-futuremls-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-add-model
Source: https://github.com/FutureMLS-Lab/OSCAR/tree/main/sglang-research/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-add-model
Command: npx skills add https://github.com/FutureMLS-Lab/OSCAR --skill sglang-diffusion-add-model-futuremls-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers through integrating new diffusion models and Diffusers pipeline variants into SGLang without guessing at architecture, tensor contracts, model configuration, or registration requirements.

Core Features & Use Cases

  • Reference-First Integration: Study the source Diffusers pipeline, model index, encoders, scheduler, latent preparation, conditioning, and decoding behavior before implementation.
  • End-to-End Pipeline Development: Design hybrid or modular stages, implement model components and configs, wire standard denoising and decoding stages, and register the model for discovery.
  • Distributed and Quality Validation: Consider tensor and sequence parallelism, reuse existing framework components, verify output is not noise, and compare results with the reference pipeline.
  • Use Case: Use this Skill when porting a new text-to-image, image-to-image, or video diffusion model into SGLang's multimodal generation runtime.

Quick Start

Use the SGLang diffusion model integration skill to add and validate support for the specified Diffusers pipeline or model repository.

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 integrate a new diffusion model into SGLang?

To integrate a new diffusion model into SGLang, study the reference Diffusers pipeline, match stage contracts and weight names, implement model components, configure the registry, and validate output quality against the reference pipeline.

What is the process for porting a Diffusers pipeline to SGLang's multimodal runtime?

Porting a Diffusers pipeline to SGLang requires studying source encoders and schedulers, designing modular denoising and decoding stages, wiring model components, registering the model for discovery, and verifying generated outputs are not noise.

Does SGLang support tensor parallelism for diffusion models?

Yes, SGLang supports tensor and sequence parallelism for diffusion models, allowing you to reuse existing distributed execution framework components when implementing and validating new text-to-image or video generation pipelines.

Can I add a text-to-image or video diffusion model to SGLang without matching weight names?

No, adding a diffusion model to SGLang requires matching SGLang stage contracts and weight names exactly to ensure proper multimodal generation runtime execution and output validation against the reference Diffusers pipeline.

Why does my integrated diffusion model output noise in SGLang?

Your integrated diffusion model outputs noise in SGLang if stage contracts, latent preparation, or conditioning configurations mismatch the reference Diffusers implementation, requiring output-quality validation and comparison to fix.

What's the best way to validate a newly ported Diffusers pipeline in SGLang?

The best way to validate a newly ported Diffusers pipeline in SGLang is to compare generated outputs directly against the reference pipeline, ensuring the model components, scheduler, and decoding behavior produce identical, non-noise results.