直接瀏覽器雙擊一個一個下載
這種方式不支持斷點續傳
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