Skip to content

Comments

[Model] Support stable diffusion3#439

Merged
hsliuustc0106 merged 11 commits intovllm-project:mainfrom
iwzbi:dev/support_sd3
Dec 27, 2025
Merged

[Model] Support stable diffusion3#439
hsliuustc0106 merged 11 commits intovllm-project:mainfrom
iwzbi:dev/support_sd3

Conversation

@iwzbi
Copy link
Contributor

@iwzbi iwzbi commented Dec 23, 2025

PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT THE BOTTOM) HAVE BEEN CONSIDERED.

Purpose

Support stable diffusion3 #311

Test Plan

Test Result

image image image image image
Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft.

BEFORE SUBMITTING, PLEASE READ https://github.com/vllm-project/vllm-omni/blob/main/CONTRIBUTING.md (anything written below this line will be removed by GitHub Actions)

@iwzbi iwzbi requested a review from hsliuustc0106 as a code owner December 23, 2025 13:08
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 53 to 56
"longcat_image",
"pipeline_longcat_image_edit",
"LongcatImageEditPipeline",
"StableDiffusion3Pipeline": (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Fix malformed diffusion model registry entry

The _DIFFUSION_MODELS dictionary is syntactically invalid because the LongCatImageEditPipeline entry is missing its closing parenthesis and trailing comma before the StableDiffusion3Pipeline entry, leaving the file unparsable. Importing vllm_omni.diffusion.registry will raise a SyntaxError, preventing any diffusion model (including the new SD3 pipeline) from being registered or loaded.

Useful? React with 👍 / 👎.

@iwzbi iwzbi force-pushed the dev/support_sd3 branch 2 times, most recently from 28ed378 to 72779e1 Compare December 23, 2025 14:03
@hsliuustc0106
Copy link
Collaborator

could you please try to use this model generate "vllm-omni supports stable diffusion" or something similar :)

@iwzbi
Copy link
Contributor Author

iwzbi commented Dec 25, 2025

could you please try to use this model generate "vllm-omni supports stable diffusion" or something similar :)

It really depends on prompt engineering, this is the best I can get after a few runs:
image
image

@iwzbi
Copy link
Contributor Author

iwzbi commented Dec 25, 2025

@hsliuustc0106 By the way, this PR does not include sequence parallelism and diffusion caching. I plan to support these features on SD3 and provide benchmark scripts in separate PRs.

iwzbi and others added 6 commits December 25, 2025 12:15
Signed-off-by: iwzbi <[email protected]>
go
Signed-off-by: iwzbi <[email protected]>
go
Signed-off-by: iwzbi <[email protected]>
go
Signed-off-by: iwzbi <[email protected]>
go
Signed-off-by: iwzbi <[email protected]>
go
Signed-off-by: iwzbi <[email protected]>
@hsliuustc0106 hsliuustc0106 added the ready label to trigger buildkite CI label Dec 26, 2025
@ZJY0516
Copy link
Collaborator

ZJY0516 commented Dec 26, 2025

@hsliuustc0106 By the way, this PR does not include sequence parallelism and diffusion caching. I plan to support these features on SD3 and provide benchmark scripts in separate PRs.

Does this support cache-dit?

timestep = t.expand(latents.shape[0]).to(device=latents.device, dtype=latents.dtype)

# Forward pass for positive prompt (or unconditional if no CFG)
# cache_branch is passed to hook for CFG-aware state management
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no cache branch here. Remove this line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

go
Signed-off-by: iwzbi <[email protected]>
@hsliuustc0106 hsliuustc0106 removed the ready label to trigger buildkite CI label Dec 26, 2025
@iwzbi iwzbi requested a review from ZJY0516 December 27, 2025 06:34
Copy link
Collaborator

@ZJY0516 ZJY0516 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SamitHuang
Copy link
Collaborator

can you update the supported model list as well? For the test plan, an example script will be easier to verify than a Jupyter notebook

Signed-off-by: iwzbi <[email protected]>
@iwzbi
Copy link
Contributor Author

iwzbi commented Dec 27, 2025

can you update the supported model list as well? For the test plan, an example script will be easier to verify than a Jupyter notebook

sure. added this model to supported_models.md. For the test, Would it be better to have SD3 covered by the functionality of examples/offline_inference/text_to_image/text_to_image.py than to write a separate example specifically for SD3? I originally wanted to add SD3's CI test to tests/e2e/offline_inference/test_t2i_model.py, but I couldn't find a suitable small parameter SD3 model...

@hsliuustc0106 hsliuustc0106 added the ready label to trigger buildkite CI label Dec 27, 2025
@hsliuustc0106 hsliuustc0106 merged commit c9eace8 into vllm-project:main Dec 27, 2025
7 checks passed
@hsliuustc0106
Copy link
Collaborator

@hsliuustc0106 By the way, this PR does not include sequence parallelism and diffusion caching. I plan to support these features on SD3 and provide benchmark scripts in separate PRs.

please submit a follow-up PR, and then we are going to announce it to the public SD3 is ready in vllm-omni :)

@hsliuustc0106
Copy link
Collaborator

please also remember to submit a PR to vllm/recipes

@iwzbi
Copy link
Contributor Author

iwzbi commented Dec 28, 2025

@hsliuustc0106 By the way, this PR does not include sequence parallelism and diffusion caching. I plan to support these features on SD3 and provide benchmark scripts in separate PRs.

please submit a follow-up PR, and then we are going to announce it to the public SD3 is ready in vllm-omni :)

No problem. I will finish it in two days.

@iwzbi
Copy link
Contributor Author

iwzbi commented Dec 28, 2025

vllm/recipes

No problem

@hsliuustc0106
Copy link
Collaborator

check this for reference vllm-project/recipes#184

yenuo26 pushed a commit to yenuo26/vllm-omni that referenced this pull request Dec 29, 2025
Signed-off-by: iwzbi <[email protected]>
Signed-off-by: iwzbi <[email protected]>
Co-authored-by: iwzbi <[email protected]>
Co-authored-by: Hongsheng Liu <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
HonestDeng pushed a commit to HonestDeng/vllm-omni that referenced this pull request Dec 30, 2025
Signed-off-by: iwzbi <[email protected]>
Signed-off-by: iwzbi <[email protected]>
Co-authored-by: iwzbi <[email protected]>
Co-authored-by: Hongsheng Liu <[email protected]>
Signed-off-by: HonestDeng <[email protected]>
princepride pushed a commit to princepride/vllm-omni that referenced this pull request Jan 10, 2026
Signed-off-by: iwzbi <[email protected]>
Signed-off-by: iwzbi <[email protected]>
Co-authored-by: iwzbi <[email protected]>
Co-authored-by: Hongsheng Liu <[email protected]>
ZJY0516 pushed a commit to LawJarp-A/vllm-omni that referenced this pull request Jan 10, 2026
Signed-off-by: iwzbi <[email protected]>
Signed-off-by: iwzbi <[email protected]>
Co-authored-by: iwzbi <[email protected]>
Co-authored-by: Hongsheng Liu <[email protected]>
@david6666666 david6666666 mentioned this pull request Jan 16, 2026
55 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready label to trigger buildkite CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants