Closed liningwangyi closed 1 year ago
检查日志,看具体报错
Explicitly passing a revision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
No sentence-transformers model found with name D:/AIL/workspace/LangChain-ChatGLM-Webui/models/text2vec-large-chinese. Creating a new one with MEAN pooling.
No sentence-transformers model found with name D:/AIL/workspace/LangChain-ChatGLM-Webui/models/text2vec-large-chinese. Creating a new one with MEAN pooling.
Explicitly passing a revision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
解决了,路径应该这么写 embedding_model_dict = { "ernie-base": "D:\AIL\workspace\LangChain-ChatGLM-Webui\models\ernie-3.0-base-zh", "simbert-base-chinese": "D:\AIL\workspace\LangChain-ChatGLM-Webui\models\simbert-base-chinese", "text2vec-base": "D:\AIL\workspace\LangChain-ChatGLM-Webui\models\text2vec-large-chinese" }
windows下的路径怎么选择?一直报错:
embedding_model_dict = { "text2vec-base": "E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\GanymedeNil\text2vec-base-chinese", 'simbert-base-chinese': 'E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\WangZeJun\simbert-base-chinese', }
No sentence-transformers model found with name E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\WangZeJun\simbert-base-chinese. Creating a new one with MEAN pooling. No sentence-transformers model found with name E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\WangZeJun\simbert-base-chinese. Creating a new one with MEAN pooling. No sentence-transformers model found with name E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\WangZeJun\simbert-base-chinese. Creating a new one with MEAN pooling. No sentence-transformers model found with name E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\WangZeJun\simbert-base-chinese. Creating a new one with MEAN pooling.
两个斜杠…
还是不行 No sentence-transformers model found with name E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\GanymedeNil\text2vec-base-chinese. Creating a new one with MEAN pooling.
还是不行 No sentence-transformers model found with name E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\GanymedeNil\text2vec-base-chinese. Creating a new one with MEAN pooling.
您发的那一串并不影响最终结果。
还是不行 No sentence-transformers model found with name E:\langchain-chatGLM-webui\LangChain-ChatGLM-Webui\model_cache\GanymedeNil\text2vec-base-chinese. Creating a new one with MEAN pooling.
您这里需要把init_llm改为ChatGLM-6b-int4
这里的逻辑解释在这:https://github.com/thomas-yanxin/LangChain-ChatGLM-Webui/issues/61#issuecomment-1564194790
改成int4了,但是还是不行:
embedding_model_dict = { "ernie-base": "D:/AIL/workspace/LangChain-ChatGLM-Webui/models/ernie-3.0-base-zh", "simbert-base-chinese": "D:/AIL/workspace/LangChain-ChatGLM-Webui/models/simbert-base-chinese", "text2vec-base": "D:/AIL/workspace/LangChain-ChatGLM-Webui/models/text2vec-large-chinese"
}
llm_model_dict = { "ChatGLM-6B-int4": "D:/AIL/workspace/LangChain-ChatGLM-Webui/models/chatglm-6b-int4", "BELLE-LLaMA-7B-2M": "D:/AIL/workspace/LangChain-ChatGLM-Webui/models/BELLE-LLaMA-7B-2M" }
配置的绝对地址路径