PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
Enable more xpu instance for xpu CI (#1521)
chen, suyue30e4043f9c1c
diff --git a/.azure-pipelines/scripts/ut/run_ut_xpu.sh b/.azure-pipelines/scripts/ut/run_ut_xpu.shindex eb2caa5f9..117e70b09 100644--- a/.azure-pipelines/scripts/ut/run_ut_xpu.sh+++ b/.azure-pipelines/scripts/ut/run_ut_xpu.sh@@ -10,9 +10,18 @@ git config --global --add safe.directory /auto-roundrm -rf /auto-round/auto_roundcd /auto-round/test || exit 1+echo "##[group]check xpu env..."+echo "ZE_AFFINITY_MASK: ${ZE_AFFINITY_MASK}"+python - <<'PY'+import torch+print("torch:", torch.__version__)+print("xpu available:", torch.xpu.is_available())+print("xpu count:", torch.xpu.device_count())+PY+echo "##[endgroup]"+export TQDM_MININTERVAL=60export HF_HUB_DISABLE_PROGRESS_BARS=1-export ZE_AFFINITY_MASK=2,3 # set xpu affinityexport LD_LIBRARY_PATH=${HOME}/.venv/lib/:$LD_LIBRARY_PATHexport COVERAGE_RCFILE=/auto-round/.azure-pipelines/scripts/ut/.coverageauto_round_path=$(python -c 'import auto_round; print(auto_round.__path__[0])')diff --git a/.azure-pipelines/template/ut-template.yml b/.azure-pipelines/template/ut-template.ymlindex 4c8a0a6f7..af22ae6c8 100644--- a/.azure-pipelines/template/ut-template.yml+++ b/.azure-pipelines/template/ut-template.yml@@ -72,7 +72,7 @@ steps:displayName: "HPU Env Setup"- script: |- docker exec -e NUMA_NODE=${NUMA_NODE} -e NUMA_CPUSET=${NUMA_CPUSET} ${{ parameters.utContainerName }} \+ docker exec -e NUMA_NODE=${NUMA_NODE} -e NUMA_CPUSET=${NUMA_CPUSET} -e ZE_AFFINITY_MASK=${ZE_AFFINITY_MASK} ${{ parameters.utContainerName }} \bash -c "cd /auto-round/.azure-pipelines/scripts \&& bash ut/${{ parameters.utScriptFileName }}.sh ${{ parameters.utTestMode }}"displayName: "Run UT"diff --git a/.azure-pipelines/unit-test-xpu.yml b/.azure-pipelines/unit-test-xpu.ymlindex 9b9dc8dc2..5214021ee 100644--- a/.azure-pipelines/unit-test-xpu.yml+++ b/.azure-pipelines/unit-test-xpu.yml@@ -48,7 +48,7 @@ stages:utArtifact: "ut"imageTag: $(IMAGE_TAG)dockerFileName: $(DOCKERFILE_NAME)- utContainerName: "AutoRoundUnitTestXPU"+ utContainerName: "AutoRoundUnitTest$(NODE_LABEL)"- task: UseDotNet@2displayName: 'Use .NET Core sdk 7.0.x'