官方给出的指导:
# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/bert-base-uncased
# if you want to clone without large files – just their pointers
# prepend your git clone with the following env var:
GIT_LFS_SKIP_SMUDGE=1
实测发现,设置GIT_LFS_SKIP_SMUDGE=1
是有必要的,设置之后再调用git clone https://huggingface.co/bert-base-uncased
,可以下载成功(前提是本地能访问https://huggingface.co/
)。