open-compass / VLMEvalKit

Open-source evaluation toolkit of large vision-language models (LVLMs), support 160+ VLMs, 50+ benchmarks
https://huggingface.co/spaces/opencompass/open_vlm_leaderboard
Apache License 2.0
1.34k stars 188 forks source link

qwen2vl_series需要什么版本的transformers #460

Closed helloworld01001 closed 2 months ago

helloworld01001 commented 2 months ago

你好!请问qwen2vl_series需要什么版本的transformers,我评测Qwen2-VL-2B-Instruct时会出现这种错误,或者我需要额外配置什么吗,麻烦告知,感谢! from transformers import Qwen2VLForConditionalGeneration, Qwen2VLProcessor ImportError: cannot import name 'Qwen2VLForConditionalGeneration' from 'transformers' (/root/miniconda3/envs/qwen/lib/python3.10/site-packages/transformers/init.py)

kq-chen commented 2 months ago

目前还只能从git源码安装

pip install git+https://github.com/huggingface/transformers
Michael4933 commented 2 weeks ago

image But why does this problem persist even when I have installed transformers from source?

helloworld01001 commented 1 week ago

image But why does this problem persist even when I have installed transformers from source?

我当时是可以安装的,你可以试试先把transformers仓库下载下来,在本地安装,也可以看一下Qwen的要求: https://github.com/QwenLM/Qwen2-VL