wenda-LLM / wenda

闻达:一个LLM调用平台。目标为针对特定环境的高效内容生成,同时考虑个人和中小企业的计算资源局限性,以及知识安全和私密性问题
GNU Affero General Public License v3.0
6.23k stars 810 forks source link

这一句报错,因为huggingface没登录,怎么改成本地已经下载的呀 #8

Closed ding567 closed 1 year ago

ding567 commented 1 year ago

embeddings = HuggingFaceEmbeddings(model_name=model_name) 这一句报错,因为huggingface没登录,怎么改成本地已经下载的呀

发生异常: RepositoryNotFoundError 401 Client Error. (Request ID: Root=1-642c3974-240560a346fb2eb565ed790b)

Repository Not Found for url: https://huggingface.co/api/models/sentence-transformers/text2vec-base-chinese. Please make sure you specified the correct repo_id and repo_type. If you are trying to access a private or gated repo, make sure you are authenticated. Invalid username or password. requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/api/models/sentence-transformers/text2vec-base-chinese

The above exception was the direct cause of the following exception:

File "E:\AI模型\wenda-main\GLM6BAPI.py", line 152, in embeddings = HuggingFaceEmbeddings(model_name=model_name) huggingface_hub.utils._errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-642c3974-240560a346fb2eb565ed790b)

Repository Not Found for url: https://huggingface.co/api/models/sentence-transformers/text2vec-base-chinese. Please make sure you specified the correct repo_id and repo_type. If you are trying to access a private or gated repo, make sure you are authenticated. Invalid username or password.

l15y commented 1 year ago

https://github.com/l15y/wenda#chatpdf%E5%8A%9F%E8%83%BD%E5%9C%A8chatglm-6b%E6%A8%A1%E5%9E%8B%E5%AE%9E%E7%8E%B0

Vebrun commented 1 year ago

?? 为什么这个链接没什么用就关闭了