现在通过git 的方式已经几乎下载不到huggingface上的东西了。不过我们还可以使用huggingface-cli实现快速下载,以THUDM/chatglm3-6b为例。
首先安装huggingface-cli
pip install -U huggingface_hub
接下来使用:
huggingface-cli download --resume-download THUDM/chatglm3-6b --local-dir D:\model
如图所示,效果还不错
下载数据集
huggingface-cli download --resume-download --repo-type dataset xxx/xxx --local-dir C:\dataset