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

Anyone meets this error "ValueError: Image features and image tokens do not match: tokens: 281, features 280" #91

Open
dongZheX opened this issue Feb 14, 2025 · 6 comments

Comments

@dongZheX
Copy link

It hard to reproduce. For same data, it may happens in different steps.

@Zagreus-lzy
Copy link

ValueError: Image features and image tokens do not match: tokens: 0, features 187
how to deal with this issue?

@dongZheX
Copy link
Author

ValueError: Image features and image tokens do not match: tokens: 0, features 187 how to deal with this issue?

I meet this problem before. Increase max-prompt-len maybe help.

@Zagreus-lzy
Copy link

ValueError: Image features and image tokens do not match: tokens: 0, features 187 how to deal with this issue?

I meet this problem before. Increase max-prompt-len maybe help.

I download the files of Qwen2-VL-2B again and solve it.

@dongZheX
Copy link
Author

I have found the reason.

The vllm generate image-token-id sometimes.

@liyd
Copy link

liyd commented Feb 17, 2025

So how to solve this bug?

@dongZheX
Copy link
Author

So how to solve this bug?

I remove the image-token-id in generations ids.

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

3 participants