OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like BAAI/bge-m3 is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-model'.
复制代码
解决方法1:offline-mode情势
1.打开hugging face 官网:https://huggingface.co/docs/transformers/installation#offline-mode 并点击Models
2.搜索我们需要的模型
输入利用的模型,并点击模型
3.下载文件
点击file and versions
通过后面的下载按钮下载圈出的五个文件到本地
4.上传文件到服务器