-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
llava-hf/llava-1.5-7b-hf: error when multi-turn chat with multi-images #12288
Comments
Hi @Johere, we are reproducing this issue. We will update here for any progress :) |
Hi @Johere , we have updated our llava example for If the issue continues, could you please share the scripts you're using to run the multi-turn chat, along with the output from our env-check scripts, to help us gather more details? :) |
Hi @JinheTang Thanks for your reply. The problem still exists. To reproduce the problem I met, please modify several lines of the latest llava example:
Env check output log is attached: |
Hi @Johere , thanks for the script, we will try to reproduce it. |
Hi @Johere , we have reproduced the issue. If there's any update we will let you know. |
Multi-turn chat is like:
1st-round:
http://farm6.staticflickr.com/5268/5602445367_3504763978_z.jpg
What is this?
2nd-round:
http://farm5.staticflickr.com/4031/4440753665_631134eaa4_z.jpg
What are the differences between these two images?
Error logs:
The error is located as:
/usr/lib/python3.10/site-packages/ipex_llm/transformers/low_bit_linear.py :729
x_2d = x.view(-1, x_shape[-1])
If I modify as:
x_2d = x.contiguous().view(-1, x_shape[-1])
, everything will be OK.I think the issue is related to LLaVA model's vision_feature_select_strategy (
vision_feature_select_strategy=default
) which may make the tensor discontiguous.Can anyone help on this issue? Thanks!
Python packages:
ipex-llm 2.2.0b20241011
transformers 4.45.2
The text was updated successfully, but these errors were encountered: