使用镜像网站下载Huggingface模型
·
✅ 方式一:使用 wget 直接下载公开模型,无需登录
你可以直接用以下命令(无需 huggingface-cli 登录)下载:
wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors -O v1-5-pruned-emaonly-fp16.safetensors
✅ 方式二:使用镜像网站下载Huggingface模型
如果在中国大陆网络环境中访问 huggingface.co 较慢或失败,可以使用 镜像网站 hf-mirror.com 来加速下载。以下是下载命令:
wget https://hf-mirror.com/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors -O v1-5-pruned-emaonly-fp16.safetensors

✅ 方式三:使用国内镜像下载 Hugging Face 模型
用 huggingface-cli + 镜像
-
设置国内镜像:
export HF_ENDPOINT=https://hf-mirror.com -
安装工具(如果没安装):
pip install -U "huggingface_hub[cli]" -
下载模型到当前目录:
huggingface-cli download facebook/w2v-bert-2.0 --local-dir ./w2v-bert-2.0
更多推荐


所有评论(0)