国内服务器下载huggingface模型

安装工具

pip install -U huggingface_hub

设置镜像

Linux
export HF_ENDPOINT="https://hf-mirror.com"
windows
$env:HF_ENDPOINT = "https://hf-mirror.com"

下载

huggingface-cli download --resume-download facebook/esm2_t33_650M_UR50D --local-dir esm2_t33_650M_UR50D

把facebook/esm2_t33_650M_UR50D替换为模型名字就行

posted @ 2024-03-06 01:22  溡沭  阅读(293)  评论(0编辑  收藏  举报