1.服务设置DNS:

sudo vi /etc/resolv.conf

在文件中添加DNS服务器的地址,比如Google的公共DNS服务器地址:

nameserver 8.8.8.8
nameserver 8.8.4.4

2.安装huggingface_hub,并登陆

pip  install huggingface_hub

huggingface-cli login

根据提示输入自己的token

3.配置镜像

export HF_ENDPOINT=https://hf-mirror.com

4.执行huggingface-cli download --resume-download xxxx

huggingface-cli download --resume-download meta-llama/Llama-2-70b-chat-hf

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐