[bugfix] Fix QwenImageEditPipeline transformer init#245
Merged
SamitHuang merged 1 commit intovllm-project:mainfrom Dec 9, 2025
Merged
[bugfix] Fix QwenImageEditPipeline transformer init#245SamitHuang merged 1 commit intovllm-project:mainfrom
SamitHuang merged 1 commit intovllm-project:mainfrom
Conversation
The QwenImageTransformer2DModel requires od_config as a positional
argument, but the QwenImageEditPipeline was initializing it without
passing this parameter, causing a TypeError at runtime.
This commit updates the initialization to match the pattern used in
QwenImagePipeline (line 270 of pipeline_qwen_image.py):
self.transformer = QwenImageTransformer2DModel(od_config=od_config)
Error before fix:
TypeError: QwenImageTransformer2DModel.__init__() missing 1 required
positional argument: 'od_config'
Signed-off-by: dougbtv <[email protected]>
SamitHuang
approved these changes
Dec 9, 2025
Collaborator
SamitHuang
left a comment
There was a problem hiding this comment.
thanks. this argument was introduced to dit transformers in #219
Collaborator
|
It sems that we need more CI test |
LawJarp-A
pushed a commit
to LawJarp-A/vllm-omni
that referenced
this pull request
Dec 12, 2025
Signed-off-by: dougbtv <[email protected]> Signed-off-by: Prajwal A <[email protected]>
LawJarp-A
pushed a commit
to LawJarp-A/vllm-omni
that referenced
this pull request
Dec 12, 2025
Signed-off-by: dougbtv <[email protected]> Signed-off-by: Prajwal A <[email protected]>
faaany
pushed a commit
to faaany/vllm-omni
that referenced
this pull request
Dec 19, 2025
Signed-off-by: dougbtv <[email protected]> Signed-off-by: Fanli Lin <[email protected]>
princepride
pushed a commit
to princepride/vllm-omni
that referenced
this pull request
Jan 10, 2026
Signed-off-by: dougbtv <[email protected]>
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.
Basic gist is that when I went to use the
QwenImageEditPipeline, I was getting an error like:So I put together this patch. Thanks!
The QwenImageTransformer2DModel requires od_config as a positional argument, but the QwenImageEditPipeline was initializing it without passing this parameter, causing a TypeError at runtime.
This commit updates the initialization to match the pattern used in QwenImagePipeline (line 270 of pipeline_qwen_image.py):
Error before fix:
TypeError: QwenImageTransformer2DModel.init() missing 1 required
positional argument: 'od_config'
PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT THE BOTTOM) HAVE BEEN CONSIDERED.