Skip to content

[bugfix] Use FlowMatchEulerDiscreteScheduler from diffusers 0.39.0 with correct RNG handling for upcoming Cosmos3 distilled models - #5176

Merged
ywang96 merged 4 commits into
vllm-project:mainfrom
bastefaniak:bstefaniak/add_FlowMatchEulerDiscreteScheduler_with_correct_rng_handling
Jul 17, 2026
Merged

ywang96 merged 4 commits into
vllm-project:mainfrom
bastefaniak:bstefaniak/add_FlowMatchEulerDiscreteScheduler_with_correct_rng_handling

Conversation

@bastefaniak

@bastefaniak bastefaniak commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

vLLM-Omni depends on diffusers==0.38.0 in which generator passed as argument to FlowMatchEulerDiscreteScheduler.step() is ignored, this results in broken generation when CP > 1 is used. This PR copies FlowMatchEulerDiscreteScheduler implementation from diffusers==0.39.0 with correct RNG handling. It's copied to separate file so no other model is impacted, this file can be deleted after migration to diffusers==0.39.0 or higher.

Test Plan

vLLM Version:
v0.25.0

vLLM-Omni Commit:
7aa5c9a

Test Result

Tests can be done by running generation, this one was generated by upcoming Cosmos3 model and enabled CP4:
Image generated with bugged FlowMatchEulerDiscreteScheduler version:
image

with fixed:
image

BEFORE SUBMITTING: read CONTRIBUTING.md and run the precheck-pr skill with the code agent for a self-check against project conventions.
(anything written below this line will be removed by GitHub Actions)

…t RNG handling

Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
@ywang96 ywang96 added the ready label to trigger buildkite CI label Jul 17, 2026
@ywang96
ywang96 enabled auto-merge (squash) July 17, 2026 18:36
@ywang96
ywang96 disabled auto-merge July 17, 2026 18:37
@ywang96
ywang96 merged commit d09f549 into vllm-project:main Jul 17, 2026
7 of 9 checks passed
y-null pushed a commit to y-null/vllm-omni that referenced this pull request Jul 21, 2026
…th correct RNG handling for upcoming Cosmos3 distilled models (vllm-project#5176)

Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
Signed-off-by: y_null <y_null@qq.com>
bowieshi pushed a commit to bowieshi/vllm-omni that referenced this pull request Jul 22, 2026
…th correct RNG handling for upcoming Cosmos3 distilled models (vllm-project#5176)

Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
nagisa-kunhah pushed a commit to nagisa-kunhah/vllm-omni that referenced this pull request Jul 30, 2026
…th correct RNG handling for upcoming Cosmos3 distilled models (vllm-project#5176)

Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
khairulkabir1661 pushed a commit to khairulkabir1661/vllm-omni that referenced this pull request Sep 25, 2026
…th correct RNG handling for upcoming Cosmos3 distilled models (vllm-project#5176)

Signed-off-by: Bartosz Stefaniak <bstefaniak@nvidia.com>
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.

2 participants