到要下载模型或数据集文件
去掉后面的/tree/main
,然后增添.git
再用git
下载
比如这个就是
git clone https://huggingface.co/openai-community/gpt2.git
https://huggingface.co/openai-community/gpt2/tree/main
或者找.../clone repository
选择你需要的复制
但可能因为网络问题,我这里一直连接超时失败
已解决,手动下载见如何从hugging face上下载模型到本地使用-CSDN博客