-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
idefics2: Sizes of tensors must match except in dimension 0. Expected size 448 but got size 447 for tensor number 2 in the list. #2056
Comments
Hey @pseudotensor, thanks a lot for opening an issue! Would you mind sharing here the command that led to this error, maybe alongside an image (or a batch of images) that lead to this problem? I'd be happy to explore this issue if you can help me out here. |
danieldk
added a commit
that referenced
this issue
Jun 13, 2024
When a batch contained images if different sizes during prefill, the server would fail (see e.g. #2056). Images were processed separately and then concatenated. However, this can fail for images with different sizes. Fix this by preprocessing all images in the batch together, so that the image processor can ensure that all image tensors have compatible sizes.
5 tasks
danieldk
added a commit
that referenced
this issue
Jun 14, 2024
When a batch contained images if different sizes during prefill, the server would fail (see e.g. #2056). Images were processed separately and then concatenated. However, this can fail for images with different sizes. Fix this by preprocessing all images in the batch together, so that the image processor can ensure that all image tensors have compatible sizes.
danieldk
added a commit
that referenced
this issue
Jun 17, 2024
When a batch contained images if different sizes during prefill, the server would fail (see e.g. #2056). Images were processed separately and then concatenated. However, this can fail for images with different sizes. Fix this by preprocessing all images in the batch together, so that the image processor can ensure that all image tensors have compatible sizes.
yuanwu2017
pushed a commit
to yuanwu2017/tgi-gaudi
that referenced
this issue
Sep 26, 2024
When a batch contained images if different sizes during prefill, the server would fail (see e.g. huggingface#2056). Images were processed separately and then concatenated. However, this can fail for images with different sizes. Fix this by preprocessing all images in the batch together, so that the image processor can ensure that all image tensors have compatible sizes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
tgi 2.0.4
Information
Tasks
Reproduction
Unclear cause at moment.
idefics2 failure for some images
Expected behavior
no failure
The text was updated successfully, but these errors were encountered: