[to #50384694]fix: ci hang when build torch extension

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12976382
This commit is contained in:
mulin.lyh
2023-06-19 17:56:04 +08:00
committed by xingjun.wxj
parent ad5d1aeb62
commit fa7562fd96

View File

@@ -32,6 +32,8 @@ if [ "$MODELSCOPE_SDK_DEBUG" == "True" ]; then
else
echo "Running case in release image, run case directly!"
fi
# remove torch_extensions folder to avoid ci hang.
rm -rf ~/.cache/torch_extensions
if [ $# -eq 0 ]; then
ci_command="python tests/run.py --subprocess"
else