直接浏览器双击一个一个下载
这种方式不支持断点续传
dnf install git-lfs -y
下面成功跳过 LFS 权重下载只拿到 Git 元数据和 LFS 占位符文件了
GIT_LFS_SKIP_SMUDGE=1 git clone https://hf-mirror.com/Tongyi-Zhiwen/QwenLong-L1-32B
cd QwenLong-L1-32B
git lfs install --local
git lfs pull
总断
pip install -U huggingface_hub
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download Tongyi-Zhiwen/QwenLong-L1-32B \
> --local-dir ./QwenLong-L1-32B \
> --resume-download
别用这种方法,坑爹,权重不能用。
wget断点续传
注意: tokenizer.json 也得下载下来,它也是LFS
# 先download 代码和钩子
GIT_LFS_SKIP_SMUDGE=1 git clone https://hf-mirror.com/Tongyi-Zhiwen/QwenLong-L1-32Bls model-*.safetensors > files.txt
sed 's|^|https://hf-mirror.com/Tongyi-Zhiwen/QwenLong-L1-32B/resolve/main/|' files.txt > urls.txt
wget -c -i urls.txt
解释:
-c
:开启断点续传-i urls.txt
:从文件中读取链接
你也可以加速下载(多线程)使用 aria2
:
aria2c -c -x 8 -s 8 -i urls.txt