内容纲要
问题
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/glm-4-9b-chat 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'.
原因
网络不通
解决方案
命令执行
export HF_ENDPOINT=https://hf-mirror.com
然后重试