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

Qwen2-VL,IndexError: index 0 is out of bounds for dimension 0 with size 0 #506

Open
cxli2333 opened this issue Jan 19, 2025 · 0 comments
Open

Comments

@cxli2333
Copy link

cxli2333 commented Jan 19, 2025

I want to test Qwen2-VL model on OCRbench, but I got this error . How can i fix it.
my commands are as follows:

python3 -m accelerate.commands.launch \
    --num_processes=1 \
    -m lmms_eval \
    --model qwen2_vl \
    --model_args pretrained="Qwen/Qwen2-VL-7B"  \
    --tasks ocrbench \
    --batch_size 1 \
    --output_path ./logs/ \
    --verbosity=DEBUG

File"/envs/lmms-eval/lib/python3.10/site-packages/transformers/models/qwen2_vl/modeling_qwen2_vl.py", line 1770
in prepare_inputs_for_generation
    if cache_position[0] != 0:
IndexError: index 0 is out of bounds for dimension 0 with size 0
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