[Bugfix] Fix RIFE device selection for CPU-transported videos#2876
Merged
hsliuustc0106 merged 1 commit intoApr 17, 2026
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Signed-off-by: david6666666 <530634352@qq.com>
d58bd2a to
ecbb6d4
Compare
Collaborator
|
The fix looks correct. However, a few concerns:
|
lvliang-intel
pushed a commit
to lvliang-intel/vllm-omni
that referenced
this pull request
Apr 20, 2026
…roject#2876) Signed-off-by: david6666666 <530634352@qq.com>
david6666666
added a commit
that referenced
this pull request
Apr 20, 2026
lengrongfu
pushed a commit
to lengrongfu/vllm-omni
that referenced
this pull request
May 1, 2026
…roject#2876) Signed-off-by: david6666666 <530634352@qq.com>
clodaghwalsh17
pushed a commit
to clodaghwalsh17/nm-vllm-omni-ent
that referenced
this pull request
May 12, 2026
…roject#2876) Signed-off-by: david6666666 <530634352@qq.com>
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.
Purpose
Fix a regression in RIFE frame interpolation device selection for video generation.
Before this patch,
FrameInterpolatoralways preferredvideo.devicewhen choosing where to load the RIFE model. In the diffusion serving architecture, the decoded video tensor can already be on CPU because of transport/offload state rather than because CPU execution was intended. In that case, RIFE was incorrectly loaded on CPU even when the active execution platform was CUDA/NPU.This patch changes the selection rule to:
video.devicewhen the tensor is already on a non-CPU device_select_torch_device()when the tensor is on CPUThat preserves accelerator execution for CPU-transported tensors while keeping CPU-only environments working as before.
Test Plan
pre-commitchecks.vllm serve --omniwith frame interpolation enabled andnum_inference_steps=1to verify the runtime device in logs.Commands:
E2E serve command used:
E2E request used:
Test Result
Unit test:
Pre-commit:
E2E:
POST /v1/videos/syncreturned200 OK/mnt/data4/cwq/tmp/rife_e2e_main.mp4was generated successfullyx-inference-time-s: 0.760