X-PLUG / mPLUG-Owl

mPLUG-Owl: The Powerful Multi-modal Large Language Model Family
https://www.modelscope.cn/studios/damo/mPLUG-Owl
MIT License
2.32k stars 176 forks source link

NameError: name 'prompts_lists' is not defined #236

Closed badarrrr closed 2 months ago

badarrrr commented 2 months ago

Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. name 'prompts_lists' is not defined Traceback (most recent call last): File "/gemini/code/mPLUG-Owl3/gradio_demo.py", line 135, in chat answer = model.chat( File "/root/.cache/huggingface/modules/transformers_modules/mPLUG-Owl3-7B-240728/modeling_mplugowl3.py", line 191, in chat prompts_lists, NameError: name 'prompts_lists' is not defined

为什么会报这个错

badarrrr commented 2 months ago

有人跑通mPLUG-Owl3的webui吗

LukeForeverYoung commented 2 months ago

Sorry, the gradio demo uses the checkpoint we uploaded to the ModelScope. The modeling_mplugowl3.py file in Huggingface is outdated and we will soon upload the latest version. A workaround is to skip the passing of --model_dir, and it will download the latest checkpoint from ModelScope.

badarrrr commented 2 months ago

非常感谢回复!从modelscope重新下载了代码文件之后跑通了!Your work is amazing!