sglang-diffusion-add-model

Integrate diffusion models and Diffusers pipelines into the SGLang runtime.

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/spacecat2002/oscar --skill sglang-diffusion-add-model-spacecat2002
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-add-model
Source: https://github.com/spacecat2002/oscar/tree/main/sglang-research/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-add-model
Command: npx skills add https://github.com/spacecat2002/oscar --skill sglang-diffusion-add-model-spacecat2002

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers through integrating new diffusion models and Diffusers pipeline variants into SGLang's multimodal generation runtime without missing required components, registrations, or quality checks.

Core Features & Use Cases

  • Reference-Driven Implementation: Analyze the source Diffusers pipeline before adapting its architecture, preprocessing, scheduling, conditioning, and decoding behavior.
  • End-to-End Integration: Coordinate model components, configs, pipeline stages, registry entries, tensor and sequence parallelism, and weight-loading compatibility.
  • Output Validation: Verify generated images or videos are not noisy by comparing intermediate tensors and outputs against the reference implementation.
  • Use Case: Apply this Skill when adding a new text-to-image, image-to-image, or video diffusion model to SGLang while reusing compatible stages and components.

Quick Start

Use the sglang-diffusion-add-model skill to integrate the specified Diffusers model into SGLang and verify that it produces correct non-noise output.

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?

To add a diffusion model to SGLang, integrate the Diffusers pipeline by analyzing reference components, configuring pipeline stages, updating registries, and validating output quality against the source implementation.

How do I integrate Diffusers pipelines into SGLang for multimodal generation?

Integrating Diffusers pipelines into SGLang requires adapting preprocessing, scheduling, conditioning, and decoding stages while ensuring weight compatibility and tensor parallelism support within the multimodal runtime.

Can I use tensor parallelism for diffusion models in SGLang?

Yes, SGLang supports tensor and sequence parallelism for diffusion models. You must configure parallel execution alongside model components and pipeline stages during the integration process.

Why does my diffusion model output noisy images after integrating with SGLang?

Noisy diffusion model output indicates a failed integration. You must validate output quality by comparing intermediate tensors and final generated images against the reference Diffusers implementation to identify mismatches.

What is the process for validating video generation models in SGLang?

Validating video generation models in SGLang involves comparing intermediate tensors and decoded outputs against the reference Diffusers pipeline to ensure generated videos are not noisy and meet stage contract requirements.

Does SGLang support image-to-image diffusion pipelines from Diffusers?

Yes, SGLang supports integrating text-to-image, image-to-image, and video diffusion models. You can reuse compatible pipeline stages and model components when adding the new Diffusers variant.