ci: fix rate-limit of huggingface with hf auth login (#10947)

This commit is contained in:
Mick
2025-09-27 02:02:44 +08:00
committed by GitHub
parent aae7ead2d0
commit fff7fbabe6
3 changed files with 35 additions and 3 deletions

View File

@@ -91,3 +91,9 @@ fi
# Show current packages
$PIP_CMD list
if [ -n "${HF_TOKEN:-}" ]; then
$PIP_CMD install -U "huggingface_hub[cli]" $PIP_INSTALL_SUFFIX
hf auth login --token $HF_TOKEN
fi