Skip to content
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

Chat UI error when prompt is longer than one character #108

Open
faev999 opened this issue Oct 28, 2024 · 0 comments
Open

Chat UI error when prompt is longer than one character #108

faev999 opened this issue Oct 28, 2024 · 0 comments

Comments

@faev999
Copy link

faev999 commented Oct 28, 2024

Hi all, coming from #103 I found yet another error when trying to use the Gradio chat UI:

...python3.12/site-packages/transformers/models/qwen2_vl/processing_qwen2_vl.py", line 137, in __call__
    "<|image_pad|>", "<|placeholder|>" * (image_grid_thw[index].prod() // merge_length), 1
                                          ~~~~~~~~~~~~~~^^^^^^^
IndexError: index 1 is out of bounds for axis 0 with size 1

this happens when the prompt is longer than one character, i.e. if I write "what is this?" the error appears but not when writing just "?"

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

No branches or pull requests

1 participant