参考连接https://blog.csdn.net/lanlinjnc/article/details/136709225
https://www.bilibili.com/video/BV1VT421X7xe/?spm_id_from=333.337.search-card.all.click&vd_source=1ba257184239f03bd3caf4c6cab427e4
pip install -U huggingface_hub
# 建议将上面这一行写入 ~/.bashrc。若没有写入,则每次下载时都需要先输入该命令
export HF_ENDPOINT=https://hf-mirror.com
# 下载全部文件并保存到指定位置时,添加--local-dir参数,此时将保存至./Llama-2-13b-chat-hf/中
huggingface-cli download --resume-download meta-llama/Llama-2-13b-chat-hf --local-dir Llama-2-13b-chat-hf
-resume-download后面的参数要填模型,怎么填呢?
打开https://hf-mirror.com网站,搜索模型名,如下,复制就行