Update Hugging Face model download CLI

This commit is contained in:
Codex
2026-06-25 15:34:22 +08:00
parent e79c7ea9bf
commit 4f9e0a30a9
3 changed files with 44 additions and 2 deletions
+14
View File
@@ -135,6 +135,20 @@ export QWEN36_27B_MODEL_ID=<actual-27b-id>
./scripts/download_models.sh
```
模型下载脚本使用新版 Hugging Face CLI
```bash
hf download <model-id> --local-dir <dir> --max-workers <n>
```
旧版 `huggingface-cli download``--local-dir-use-symlinks` 参数已经不再使用。默认并发是 `HF_DOWNLOAD_MAX_WORKERS=8`,如果网络或镜像不稳定可以调小:
```bash
export HF_DOWNLOAD_MAX_WORKERS=4
export HF_TOKEN=<optional-token>
./scripts/download_models.sh
```
## 单步训练
每个训练脚本默认: