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

1 Comment

  1. I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored material stylish.
    nonetheless, you command get got an shakiness over that you
    wish be delivering the following. unwell unquestionably come
    further formerly again as exactly the same nearly a lot often inside case you shield this increase.

Leave a Comment

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

close
arrow_upward