chatchat-space / Langchain-Chatchat

Langchain-Chatchat(原Langchain-ChatGLM)基于 Langchain 与 ChatGLM, Qwen 与 Llama 等语言模型的 RAG 与 Agent 应用 | Langchain-Chatchat (formerly langchain-ChatGLM), local knowledge based LLM (like ChatGLM, Qwen and Llama) RAG and Agent app with langchain
Apache License 2.0
31.44k stars 5.48k forks source link

启动服务报错,AttributeError: 'NoneType' object has no attribute 'endswith' #1748

Closed xbsdsongnan closed 11 months ago

xbsdsongnan commented 11 months ago

Process model_worker - chatglm-6b-int4: Traceback (most recent call last): File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, self._kwargs) File "/home/Langchain-Chatchat/startup.py", line 366, in run_model_worker app = create_model_worker_app(log_level=log_level, kwargs) File "/home/Langchain-Chatchat/startup.py", line 194, in create_model_worker_app worker = ModelWorker( File "/usr/local/lib/python3.8/dist-packages/fastchat/serve/model_worker.py", line 210, in init super().init( File "/usr/local/lib/python3.8/dist-packages/fastchat/serve/model_worker.py", line 84, in init if model_path.endswith("/"): AttributeError: 'NoneType' object has no attribute 'endswith' 2023-10-13 04:19:00 | ERROR | stderr | INFO: Started server process [214] 2023-10-13 04:19:00 | ERROR | stderr | INFO: Waiting for application startup. 2023-10-13 04:19:00 | ERROR | stderr | INFO: Application startup complete. 2023-10-13 04:19:00 | ERROR | stderr | INFO: Uvicorn running on http://0.0.0.0:20000 (Press CTRL+C to quit) ^C2023-10-13 04:19:46 | WARNING | root | Sending SIGKILL to {'fangzhou-api': , 'zhipu-api': , 'xinghuo-api': , 'qwen-api': , 'minimax-api': , 'qianfan-api': } 2023-10-13 04:19:46 | WARNING | root | Sending SIGKILL to {'chatglm-6b-int4': } 2023-10-13 04:19:46 | WARNING | root | Sending SIGKILL to 2023-10-13 04:19:46 | WARNING | root | Sending SIGKILL to 2023-10-13 04:19:46 | WARNING | root | Sending SIGKILL to

liunux4odoo commented 11 months ago

把控制台输出的配置信息贴上来

1249815869 commented 11 months ago

仔细检查一下配置有没有写对,检查红框里显示的是否是你的模型路径 image

xbsdsongnan commented 11 months ago

已解决,是模型加载错了