PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
Fix CUDA UT timm issue (#2444)
Sun, Xuehaof5cfe304e48f
diff --git a/.azure-pipelines/scripts/cuda_unit_test/run_cuda_ut.sh b/.azure-pipelines/scripts/cuda_unit_test/run_cuda_ut.shindex e0413b795..1e4661429 100644--- a/.azure-pipelines/scripts/cuda_unit_test/run_cuda_ut.sh+++ b/.azure-pipelines/scripts/cuda_unit_test/run_cuda_ut.sh@@ -79,16 +79,16 @@ function setup_basic_test_env() {cd "${BUILD_SOURCESDIRECTORY}" || exit 1rm -rf /root/.venvuv venv --python=3.14 /root/.venv- uv pip install torch==2.14.0 torchvision torchao --index-url https://download.pytorch.org/whl/cu130+ uv pip install torch==2.14.1 torchvision torchao --index-url https://download.pytorch.org/whl/cu130uv pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu130uv pip install 'git+https://github.com/ggml-org/llama.cpp.git@master#subdirectory=gguf-py'uv pip install -r test/unit/test_cuda/requirements.txtuv pip install -r test/unit/test_cuda/requirements_diffusion.txt- uv pip install -U transformers chardet+ uv pip install -U transformers chardet timmuv pip install -U pytest-cov pytest-timeout- uv pip install kernels==0.16.1 # For sm120: https://github.com/huggingface/transformers/blob/v5.16.1/setup.py#L93+ uv pip install kernels==0.17.2 # For sm120: https://github.com/huggingface/transformers/blob/v5.19.0/setup.py#L94uv pip uninstall torch torchvision- uv pip install torch==2.14.0 torchvision torchao --index-url https://download.pytorch.org/whl/cu130+ uv pip install torch==2.14.1 torchvision torchao --index-url https://download.pytorch.org/whl/cu130uv pip install .echo "List dependencies ..."diff --git a/.azure-pipelines/scripts/ut/run_ut_cuda.sh b/.azure-pipelines/scripts/ut/run_ut_cuda.shindex 39182b329..741c2197a 100644--- a/.azure-pipelines/scripts/ut/run_ut_cuda.sh+++ b/.azure-pipelines/scripts/ut/run_ut_cuda.sh@@ -5,7 +5,7 @@ set -xeCONDA_ENV_NAME="unittest_cuda"PYTHON_VERSION="3.12"-TORCH_VERSION="2.14.0"+TORCH_VERSION="2.14.1"REPO_PATH=$(git rev-parse --show-toplevel)LOG_DIR=${REPO_PATH}/ut_log_dir