Skip to content

Commit

Permalink
Correct qwen2vl min/max pixel comment
Browse files Browse the repository at this point in the history
Signed-off-by: Alex-Brooks <[email protected]>
  • Loading branch information
alex-jw-brooks committed Oct 23, 2024
1 parent cc67614 commit e9aad12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vllm/model_executor/models/qwen2_vl.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,7 @@ def _get_max_image_info(
min_pixels: Optional[int] = None,
max_pixels: Optional[int] = None,
):
# Limit min / max pixels
# Fallback order: kwargs -> image_processor values -> reasonable defaults
# Limit min / max pixels unless they're explicitly provided
if min_pixels is None:
min_pixels = max(image_processor.min_pixels, 28 * 28)
if max_pixels is None:
Expand Down

0 comments on commit e9aad12

Please sign in to comment.