Skip to content

Conversation

@as-suvorov
Copy link
Collaborator

@as-suvorov as-suvorov commented Dec 18, 2025

Description

Empty videos vector was created with batch 1. It fails if multiple prompts passed. Create empty_videos_vector with prompts batch size
Use ov_genai image placeholders in milebench_eval_vlm.py sample.

CVS-178649

Fixes #(issue)

Checklist:

  • Tests have been updated or added to cover the new code.
  • This patch fully addresses the ticket.
  • I have made corresponding changes to the documentation.

@as-suvorov as-suvorov changed the title Create empty videos vector with batch [VLM] Create empty videos vector with batch Dec 18, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a bug where the generate method created an empty videos vector with a fixed batch size of 1, causing failures when multiple prompts were passed. The fix ensures the empty videos vector is initialized with the same batch size as the number of prompts.

  • Updated the generate method to create an empty videos vector sized to match the prompt batch

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added the category: continuous batching Continuous batching label Dec 18, 2025
@github-actions github-actions bot added the category: VLM samples GenAI VLM samples label Dec 18, 2025
@as-suvorov as-suvorov requested a review from l-bat December 18, 2025 12:42
Copy link
Contributor

@l-bat l-bat left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! Now milebench_eval_vlm.py should work with batch > 1 for any VLM model.

Copilot AI review requested due to automatic review settings December 29, 2025 09:23
@Wovchena Wovchena self-requested a review as a code owner December 29, 2025 09:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +157 to +158
def idx_to_ov_image_placeholder(idx: int) -> str:
return f"<ov_genai_image_{idx}>"
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

The function name idx_to_ov_image_placeholder is verbose. Consider renaming it to format_image_placeholder or get_image_placeholder for better readability.

Copilot uses AI. Check for mistakes.
@Wovchena Wovchena enabled auto-merge December 29, 2025 09:25
Copilot AI review requested due to automatic review settings January 7, 2026 11:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Wovchena Wovchena added this pull request to the merge queue Jan 8, 2026
Merged via the queue into openvinotoolkit:master with commit 1e2fb8d Jan 8, 2026
113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: continuous batching Continuous batching category: VLM samples GenAI VLM samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants