无法连接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/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

然后重试

参考

https://hf-mirror.com/

Leave a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注

close
arrow_upward