Skip to content

PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度

Update version (#1191)

Sun, Xuehao6fb1168888b2
diff --git a/.azure-pipelines/scripts/ut/run_ut.sh b/.azure-pipelines/scripts/ut/run_ut.sh
index dcf1a7170..273cd9517 100644
--- a/.azure-pipelines/scripts/ut/run_ut.sh
+++ b/.azure-pipelines/scripts/ut/run_ut.sh
@@ -50,7 +50,7 @@ printf '%s\n' "${selected_files}" | sed "s,\.\/,python -m pytest --cov=\"${auto_
cat run.sh
bash run.sh 2>&1 | tee "${ut_log_name}"
-if [ $(grep -c '== FAILURES ==' ${ut_log_name}) != 0 ] || [ $(grep -c '== ERRORS ==' ${ut_log_name}) != 0 ] || [ $(grep -c ' passed' ${ut_log_name}) == 0 ]; then
+if [ $(grep -c '== FAILURES ==' ${ut_log_name}) != 0 ] || [ $(grep -c '== ERRORS ==' ${ut_log_name}) != 0 ] || [ $(grep -c 'Killed' ${ut_log_name}) != 0 ] || [ $(grep -c ' passed' ${ut_log_name}) == 0 ]; then
echo "##[error]Find errors in pytest case, please check the output..."
exit 1
fi
diff --git a/.azure-pipelines/scripts/ut/run_ut_cuda.sh b/.azure-pipelines/scripts/ut/run_ut_cuda.sh
index 18a9bb00d..ec07e5c59 100644
--- a/.azure-pipelines/scripts/ut/run_ut_cuda.sh
+++ b/.azure-pipelines/scripts/ut/run_ut_cuda.sh
@@ -64,9 +64,10 @@ function print_test_results_table() {
local result="UNKNOWN"
local failure_count=$(grep -c '== FAILURES ==' "${log_file}" 2>/dev/null || echo 0)
local error_count=$(grep -c '== ERRORS ==' "${log_file}" 2>/dev/null || echo 0)
+ local killed_count=$(grep -c 'Killed' "${log_file}" 2>/dev/null || echo 0)
local passed_count=$(grep -c ' passed' "${log_file}" 2>/dev/null || echo 0)
- if [ ${failure_count} -gt 0 ] || [ ${error_count} -gt 0 ]; then
+ if [ ${failure_count} -gt 0 ] || [ ${error_count} -gt 0 ] || [ ${killed_count} -gt 0 ]; then
result="FAILED"
failed_tests=$((failed_tests + 1))
elif [ ${passed_count} -gt 0 ]; then
diff --git a/.azure-pipelines/scripts/ut/run_ut_hpu.sh b/.azure-pipelines/scripts/ut/run_ut_hpu.sh
index 3c3bb6991..cef30167b 100644
--- a/.azure-pipelines/scripts/ut/run_ut_hpu.sh
+++ b/.azure-pipelines/scripts/ut/run_ut_hpu.sh
@@ -31,7 +31,7 @@ bash run_compile.sh 2>&1 | tee ${ut_log_name}
cp report.html ${LOG_DIR}/
cp coverage.xml ${LOG_DIR}/
-if [ $(grep -c '== FAILURES ==' ${ut_log_name}) != 0 ] || [ $(grep -c '== ERRORS ==' ${ut_log_name}) != 0 ] || [ $(grep -c ' passed' ${ut_log_name}) == 0 ]; then
+if [ $(grep -c '== FAILURES ==' ${ut_log_name}) != 0 ] || [ $(grep -c '== ERRORS ==' ${ut_log_name}) != 0 ] || [ $(grep -c 'Killed' ${ut_log_name}) != 0 ] || [ $(grep -c ' passed' ${ut_log_name}) == 0 ]; then
echo "##[error]Find errors in pytest case, please check the output..."
exit 1
fi
diff --git a/.azure-pipelines/scripts/ut/run_ut_xpu.sh b/.azure-pipelines/scripts/ut/run_ut_xpu.sh
index 2ab0aef64..40518adf5 100644
--- a/.azure-pipelines/scripts/ut/run_ut_xpu.sh
+++ b/.azure-pipelines/scripts/ut/run_ut_xpu.sh
@@ -27,7 +27,10 @@ find . -name "test*.py" | sed "s,\.\/,python -m pytest --cov=\"${auto_round_path
cat run.sh
bash run.sh 2>&1 | tee "${ut_log_name}"
-if [[ $(grep -c '== FAILURES ==' ${ut_log_name}) != 0 ]] || [[ $(grep -c '== ERRORS ==' ${ut_log_name}) != 0 ]] || [[ $(grep -c ' passed' ${ut_log_name}) == 0 ]]; then
+cp report.html ${LOG_DIR}/
+cp coverage.xml ${LOG_DIR}/
+
+if [ $(grep -c '== FAILURES ==' ${ut_log_name}) != 0 ] || [ $(grep -c '== ERRORS ==' ${ut_log_name}) != 0 ] || [ $(grep -c 'Killed' ${ut_log_name}) != 0 ] || [ $(grep -c ' passed' ${ut_log_name}) == 0 ]; then
echo "##[error]Find errors in pytest case, please check the output..."
exit 1
fi
diff --git a/.azure-pipelines/unit-test-hpu.yml b/.azure-pipelines/unit-test-hpu.yml
index 5bc2ab6ae..aef6a0fdc 100644
--- a/.azure-pipelines/unit-test-hpu.yml
+++ b/.azure-pipelines/unit-test-hpu.yml
@@ -50,6 +50,11 @@ stages:
uploadPath: $(UPLOAD_PATH)
utArtifact: "ut"
+ - task: UseDotNet@2
+ displayName: 'Use .NET Core sdk 7.0.x'
+ inputs:
+ version: 7.0.x
+
- task: PublishCodeCoverageResults@2
inputs:
summaryFileLocation: $(UPLOAD_PATH)/coverage.xml
diff --git a/.azure-pipelines/unit-test-xpu.yml b/.azure-pipelines/unit-test-xpu.yml
index 2e7e6c6d4..fda7019d1 100644
--- a/.azure-pipelines/unit-test-xpu.yml
+++ b/.azure-pipelines/unit-test-xpu.yml
@@ -45,6 +45,11 @@ stages:
uploadPath: $(UPLOAD_PATH)
utArtifact: "ut"
+ - task: UseDotNet@2
+ displayName: 'Use .NET Core sdk 7.0.x'
+ inputs:
+ version: 7.0.x
+
- task: PublishCodeCoverageResults@2
inputs:
summaryFileLocation: $(UPLOAD_PATH)/coverage.xml
diff --git a/README.md b/README.md
index 6d7abe5c2..8af8b4413 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
<h3> Advanced Quantization Algorithm for LLMs</h3>
[![python](https://img.shields.io/badge/python-3.10%2B-blue)](https://github.com/intel/auto-round)
-[![version](https://img.shields.io/badge/release-0.9.2-green)](https://github.com/intel/auto-round)
+[![version](https://img.shields.io/badge/release-0.9.3-green)](https://github.com/intel/auto-round)
[![license](https://img.shields.io/badge/license-Apache%202-9C27B0)](https://github.com/intel/auto-round/blob/main/LICENSE)
<a href="https://huggingface.co/Intel">
<img alt="Model Checkpoints" src="https://img.shields.io/badge/%F0%9F%A4%97%20HF-Models-F57C00">
diff --git a/auto_round/version.py b/auto_round/version.py
index 21c2275fb..a37ef41c6 100644
--- a/auto_round/version.py
+++ b/auto_round/version.py
@@ -14,4 +14,4 @@
"""Intel® auto-round: An open-source Python library
supporting popular model weight only compression based on signround."""
-__version__ = "0.9.3"
+__version__ = "0.9.4"