XrayGLM
XrayGLM copied to clipboard
huggingface远程加载模型不稳定
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'.
兄弟你解决了吗
try
import os
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"