-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image_transforms preprocess quite slow when run large image with qwen2vl #34272
Comments
Hey @zhjunqin ! Can be related to #28847, where we enabled image processing with torchvision but that only is supported in ViT model. Also @yonigozlan is working on optimizing image processing time in #33810, so he might be your point of contact :) |
Hey @zhjunqin ! |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
@yonigozlan Hey :) Did you find time to address the qwen preprocessor? |
Not yet, but it is still planned :). I will ping here when it's done |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
transformers
version: 4.45.2Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
funcitons in image_transforms,
rescale
,normalize
quite slow when preprocess large image.https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py
here is benchmark
please refer to vllm-project/vllm#9238
Expected behavior
how to improve performance?
The text was updated successfully, but these errors were encountered: