Skip to content

Conversation

andreyanufr
Copy link
Contributor

Disabled crop of the prompt for minicpmv.

@andreyanufr andreyanufr requested a review from Copilot June 6, 2025 12:53
@github-actions github-actions bot added the category: WWB PR changes WWB label Jun 6, 2025
Copy link
Contributor

@Copilot 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

This PR refactors how model types with automatic cropping are detected and adds support for the minicpmv model to disable prompt cropping.

  • Introduces is_model_with_automatic_crop helper to centralize the check for 'internvl' and 'minicpmv' in model_type.
  • Updates the visual-text evaluator logic to use the new helper.
Comments suppressed due to low confidence (3)

tools/who_what_benchmark/whowhatbench/wwb.py:369

  • [nitpick] The function name is a bit verbose and unclear—consider renaming to supports_automatic_crop or has_automatic_crop_support to better express that it returns a boolean predicate.
def is_model_with_automatic_crop(config):

tools/who_what_benchmark/whowhatbench/wwb.py:369

  • Add a short docstring explaining what constitutes a model with automatic cropping and when this helper should be used.
def is_model_with_automatic_crop(config):

tools/who_what_benchmark/whowhatbench/wwb.py:369

  • Introduce unit tests for is_model_with_automatic_crop to verify both positive and negative matches for internvl, minicpmv, and other model types.
def is_model_with_automatic_crop(config):



def is_model_with_automatic_crop(config):
return "internvl" in config.model_type or "minicpmv" in config.model_type
Copy link
Preview

Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

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

Perform a case-insensitive check by using config.model_type.lower() to avoid missing matches if the casing changes.

Suggested change
return "internvl" in config.model_type or "minicpmv" in config.model_type
model_type_lower = config.model_type.lower()
return "internvl" in model_type_lower or "minicpmv" in model_type_lower

Copilot uses AI. Check for mistakes.

@andreyanufr andreyanufr requested a review from Wovchena June 6, 2025 12:55
@Wovchena Wovchena added this pull request to the merge queue Jun 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 10, 2025
@Wovchena Wovchena added this pull request to the merge queue Jun 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 10, 2025
@Wovchena Wovchena added this pull request to the merge queue Jun 10, 2025
Merged via the queue into openvinotoolkit:master with commit 69afd4c Jun 10, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: WWB PR changes WWB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants