Skip to content

Conversation

@wenbinc-Bin
Copy link

Add max_pixels option, so that vllm resize large images.

Add max_pixels option, so that vllm resize large images.

Signed-off-by: Chen, Wenbin <[email protected]>
--trust-remote-code \
--seed 2025 \
--distributed_executor_backend "${dist_backend}" \
--mm_processor_kwargs "max_pixels=1003520" \
Copy link

Choose a reason for hiding this comment

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

should this value be configurable by users and set 1003520 as default value?

Copy link
Author

Choose a reason for hiding this comment

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

If I change it to configurable, what option flag do you suggest I use?

Copy link

Choose a reason for hiding this comment

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

If I change it to configurable, what option flag do you suggest I use?

how about just reuse -e
cc @yangulei

Copy link
Author

Choose a reason for hiding this comment

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

I update the PR and try to reuse -e option to set --mm-processor-kwargs.
It is troublesome to process "max_pixles" alone.

Choose a reason for hiding this comment

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

If you want to pass --mm_processor_kwargs "max_pixels=1003520" to the vllm server, just pass -e "--mm_processor_kwargs max_pixels=1003520" to the start_gaudi_vllm_server.sh. We don't need to change the code.

Copy link
Author

Choose a reason for hiding this comment

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

We should better set a default value in script because user may doesn't know this options is needed.

Copy link
Author

Choose a reason for hiding this comment

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

I use -e opton, but with a default value for mm-processor-kwargs. How about this implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants