add-new-diffusion-model

Guide adding new diffusion models to the SGLang framework.

31.6k|7.8k|Updated Jan 8, 2024
One-click install
npx skills add https://github.com/sgl-project/sglang --skill add-new-diffusion-model-sgl-project
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-new-diffusion-model
Source: https://github.com/sgl-project/sglang/tree/main/python/sglang/multimodal_gen/.claude/skills/support-new-model
Command: npx skills add https://github.com/sgl-project/sglang --skill add-new-diffusion-model-sgl-project

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive, step-by-step guide to integrate new diffusion models into the SGLang framework, ensuring compatibility and optimal performance.

Core Features & Use Cases

  • Model Integration Guide: Detailed instructions for adding new diffusion models, covering pipeline styles, component implementation, configuration, and registration.
  • Pipeline Style Selection: Guidance on choosing between the Hybrid Monolithic Pipeline and the Modular Composition Style based on model complexity.
  • Use Case: A researcher has developed a novel diffusion model and needs to integrate it into SGLang for high-throughput inference. This Skill provides the exact steps and code structure required for successful integration.

Quick Start

Follow the step-by-step guide to add a new diffusion model to SGLang.

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

Integrating a diffusion model into SGLang requires implementing model components, configuring pipelines, defining stages, and registering the model using either Hybrid Monolithic or Modular Composition styles.

How does pipeline configuration work when adding diffusion models to SGLang?

Pipeline configuration in SGLang uses stage definitions and pipeline styles. It supports Hybrid Monolithic for unified processing and Modular Composition for separating components based on model complexity.

When should I use Hybrid Monolithic vs Modular Composition pipelines for model integration?

Use Hybrid Monolithic for simpler SGLang integrations. Choose Modular Composition when your diffusion model has complex, separable components requiring distinct pipeline stages and modular configuration.

Does SGLang support high-throughput inference for custom diffusion models?

SGLang supports high-throughput inference for custom diffusion models. This Skill provides the exact code structure and registration steps required to ensure compatibility and optimal performance.

Why is my newly added diffusion model not producing correct outputs in SGLang?

Incorrect outputs often stem from misconfigured pipeline stages or incomplete model registration. This Skill addresses common integration pitfalls and provides verification steps to ensure correct output quality.