Skip to content

[Bugfix][MiniCPM-V] Fix AssertionError in get_dummy_mm_data when passing VideoDummyOptions to _get_dummy_images - #52122

Merged
DarkLight1337 merged 1 commit into
vllm-project:mainfrom
mayuyuace:qiming/fix_MiniCPMVDummyInputsBuilder
Aug 13, 2026
Merged

[Bugfix][MiniCPM-V] Fix AssertionError in get_dummy_mm_data when passing VideoDummyOptions to _get_dummy_images#52122
DarkLight1337 merged 1 commit into
vllm-project:mainfrom
mayuyuace:qiming/fix_MiniCPMVDummyInputsBuilder

Conversation

@mayuyuace

Copy link
Copy Markdown
Contributor

Issue: pytest tests/lora/test_minicpmv_tp.py::test_minicpmv_lora raises AssertionError on non-CUDA platforms (e.g., XPU).
Root Cause:
Commit 9a276d6 added a runtime assertion to _get_dummy_images in dummy_inputs.py:
assert overrides is None or isinstance(overrides, ImageDummyOptions)
However, MiniCPMVDummyInputsBuilder.get_dummy_mm_data in minicpmv.py had always been passing video_overrides (type VideoDummyOptions) directly to _get_dummy_images when constructing per-frame dummy images for video. This type mismatch was silently ignored before the assertion was introduced.
Why upstream CI missed it: test_minicpmv_lora is decorated with @pytest.mark.skipif(current_platform.is_cuda_alike(), ...), so it is skipped entirely on CUDA CI.
Fix: In minicpmv.py, convert VideoDummyOptions before passing to _get_dummy_images:

  • Apply num_frames override to num_video_frames
  • Convert width/height into an ImageDummyOptions instance

Signed-off-by: mayuyuace <qiming1.zhang@intel.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mergify mergify Bot added the bug Something isn't working label Aug 13, 2026
@mayuyuace

Copy link
Copy Markdown
Contributor Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #83698 for commit 532233d00e80.

@DarkLight1337
DarkLight1337 enabled auto-merge (squash) August 13, 2026 08:39
@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 13, 2026
@jikunshang

Copy link
Copy Markdown
Member

/ci retry

@github-actions

Copy link
Copy Markdown

✅ Queued 1 failed job(s) for retry in Buildkite CI #83698.

@DarkLight1337
DarkLight1337 merged commit 96acd47 into vllm-project:main Aug 13, 2026
99 checks passed
@mayuyuace
mayuyuace deleted the qiming/fix_MiniCPMVDummyInputsBuilder branch August 20, 2026 07:12
zyp2014 pushed a commit to zyp2014/vllm that referenced this pull request Aug 21, 2026
…ing VideoDummyOptions to _get_dummy_images (vllm-project#52122)

Signed-off-by: mayuyuace <qiming1.zhang@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants