Fix model weights validation with automatic cache cleanup (#13729)

This commit is contained in:
alisonshao
2025-11-22 11:40:00 +08:00
committed by GitHub
parent 53620a1b1a
commit 94ae816f29
4 changed files with 282 additions and 683 deletions
-15
View File
@@ -11,19 +11,4 @@ echo ""
python3 "${SCRIPT_DIR}/cleanup_hf_cache.py"
echo ""
# Validate model integrity for configured runners
echo "Validating model integrity..."
# Enable accelerated HuggingFace downloads (10x faster on high-bandwidth networks)
export HF_HUB_ENABLE_HF_TRANSFER=1
python3 "${SCRIPT_DIR}/validate_and_download_models.py"
VALIDATION_EXIT_CODE=$?
if [ $VALIDATION_EXIT_CODE -ne 0 ]; then
echo "Model validation failed with exit code: $VALIDATION_EXIT_CODE"
exit $VALIDATION_EXIT_CODE
fi
echo ""
echo "CI runner preparation complete!"