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

推理报错 #83

Open
will-wiki opened this issue Sep 2, 2024 · 1 comment
Open

推理报错 #83

will-wiki opened this issue Sep 2, 2024 · 1 comment

Comments

@will-wiki
Copy link

will-wiki commented Sep 2, 2024

Successfully installed tokenizers-0.19.1 transformers-4.44.2
torch2.1.2,cuda11.8

推理报错

Traceback (most recent call last):
  File "/ssd2//CodeSpace/LLM/LLaMA-Factory/run_demo/qwen2vl_demo.py", line 1, in <module>
    from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoProcessor
ImportError: cannot import name 'Qwen2VLForConditionalGeneration' from 'transformers' (/ssd2//CodeSpace/LLM/LLaMA-Factory/env39/lib/python3.9/site-packages/transformers/__init__.py)
@JadeLuo
Copy link

JadeLuo commented Sep 3, 2024

pip3 install --no-cache-dir git+https://github.com/huggingface/transformers@19e6e80e10118f855137b90740936c0b11ac397f
看官方docker用的transformers是这个

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

2 participants