XrayGLM icon indicating copy to clipboard operation
XrayGLM copied to clipboard

huggingface远程加载模型不稳定

Open theussong opened this issue 1 year ago • 2 comments

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 THUDM/chatglm-6b 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-mode'.

theussong avatar Dec 22 '23 02:12 theussong

兄弟你解决了吗

silencewa avatar Mar 21 '24 09:03 silencewa

try

import os
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"

WillowRw avatar Jul 30 '24 12:07 WillowRw