1.在终端安装依赖:
pip install -U huggingface_hub
2.设置环境
vim ~/.bashrc
添加如下内容
export HF_ENDPOINT=https://hf-mirror.com
3.更新环境配置
source ~/.bashrc
完美解决
pip install -U huggingface_hub
vim ~/.bashrc
添加如下内容
export HF_ENDPOINT=https://hf-mirror.com
source ~/.bashrc
完美解决