[Diffusion][CPU] Init CPU platform support for SGLang Diffusion#20816
Merged
mingfeima merged 16 commits intosgl-project:mainfrom Apr 21, 2026
Merged
[Diffusion][CPU] Init CPU platform support for SGLang Diffusion#20816mingfeima merged 16 commits intosgl-project:mainfrom
mingfeima merged 16 commits intosgl-project:mainfrom
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
mingfeima
reviewed
Mar 29, 2026
mingfeima
requested changes
Mar 30, 2026
Collaborator
mingfeima
left a comment
There was a problem hiding this comment.
how do we handle attention backend?
which attention backend from python/sglang/multimodal_gen/runtime/layers/attention/backends is used for cpu device?
Contributor
Author
|
Hi @mickqian could you please help review this PR? Thanks. |
mickqian
reviewed
Apr 17, 2026
mickqian
reviewed
Apr 18, 2026
Contributor
Author
|
/tag-and-rerun-ci |
mickqian
approved these changes
Apr 20, 2026
mingfeima
approved these changes
Apr 21, 2026
zhangying098
pushed a commit
to zhangying098/sglang
that referenced
this pull request
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
This PR adds native support to run SGLang Diffusion on CPU only platforms (e.g., Intel Xeon)
Key changes
apply_rotary_embeddingand more)Tested models
Tongyi-MAI/Z-Image-Turbo
black-forest-labs/FLUX.1-dev
black-forest-labs/FLUX.2-klein-4B
Wan-AI/Wan2.2-TI2V-5B-Diffusers
A_curious_raccoon_peers_through_a_vibrant_field_of_yellow_sunflowers_its_eyes_wide_with_interest_20260318-065816_3a3a7f5c.mp4
Qwen/Qwen-Image-Edit
FastVideo/FastWan2.1-T2V-1.3B-Diffusers
A_curious_raccoon_20260318-091646_d9d96fab.mp4
More plans after this PR:
apply_rotary_embedding)