-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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. |
Hi @yonigozlan , is qwen's preprocessing factoring still planned ? We are using offline inference with qwen 2 vl 7B for document extraction tasks for approx 70 million images and the preprocessing time is a major slowdown for us. If it is not planned immediately, can you tell if there's any workaround to speed or skip the preprocessing as I am already sending the resized images using |
Hi @Gladiator07. Sorry for the delay on this. I was waiting for this big refactoring PR on fast image processors #35069 to be merged to continue adding new fast image processors. |
PR is open here #35733 ! |
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: