jiayev / GPT4V-Image-Captioner

GNU General Public License v3.0
765 stars 58 forks source link

切换ConVLM模型时报错: ========Use torch type as:torch.bfloat16 with device:cuda======== Traceback (most recent call last): File "/biao/openai_api.py", line 462, in <module> load_mod(MODEL_PATH, STATE_MOD) File "/biao/openai_api.py", line 367, in load_mod tokenizer = LlamaTokenizer.from_pretrained( File "/biao/myenv/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1450, in __getattribute__ requires_backends(cls, cls._backends) File "/biao/myenv/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1438, in requires_backends raise ImportError("".join(failed)) ImportError: LlamaTokenizer requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones that match your environment. Please note that you may need to restart your runtime after installation. #49

Open 2575044704 opened 4 months ago

2575044704 commented 4 months ago

环境报错,一开始报错提示没有torch,然后我手动装了一遍环境。好不容易装好了结果又有新的报错(如图所示),怎么也解决不了。ChatGPT说要安装一个SentencePiece库,试了各种方法安装,chatgpt问爆了也没解决问题,整了差不多12个小时,心态爆炸。作者能帮忙看看吗? QQ截图20240503184806 QQ截图20240503184547 QQ图片20240503184325