Refactor AutoRound tests and CI scripts for CPU, HPU, and XPU#2417
Merged
Refactor AutoRound tests and CI scripts for CPU, HPU, and XPU#2417
Conversation
Signed-off-by: chensuyue <suyue.chen@intel.com>
…cated coverage scripts Signed-off-by: chensuyue <suyue.chen@intel.com>
for more information, see https://pre-commit.ci
…ssor into suyue/ext-ci
…sed imports and redundant code Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
for more information, see https://pre-commit.ci
Signed-off-by: chensuyue <suyue.chen@intel.com>
for more information, see https://pre-commit.ci
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Kaihui-intel
approved these changes
Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Validation
Description
This pull request introduces significant updates to the CI pipeline, especially for PyTorch unit testing across different hardware backends (CPU, HPU, and XPU). The changes add support for XPU-based testing, refactor HPU test scripts and configurations, and simplify coverage collection. There are also updates to Dockerfiles and requirements to better support new environments.
Key changes include:
1. XPU (Intel GPU) Unit Test Support
.azure-pipelines/ut-3x-pt-xpu.ymlto enable unit testing for PyTorch with XPU backend, including all necessary triggers, variables, and job definitions..azure-pipelines/scripts/ut/run_3x_pt_xpu.shfor running XPU-specific tests and collecting coverage..azure-pipelines/docker/Dockerfile_xpu.develto provide a development Docker image with all required XPU and Intel GPU libraries.2. HPU (Habana) Test Pipeline Refactor
.azure-pipelines/ut-3x-pt-fp8.yml→.azure-pipelines/ut-3x-pt-hpu.yml, with all internal references updated. [1] [2] [3] [4] [5].azure-pipelines/scripts/ut/run_3x_pt_fp8.sh→.azure-pipelines/scripts/ut/run_3x_pt_hpu.sh, with appropriate changes to coverage files and test case names.3. Pipeline and Coverage Collection Simplification
.azure-pipelines/scripts/ut/collect_log.shand.azure-pipelines/scripts/ut/coverage.fileto streamline and modernize coverage collection. [1] [2]4. Test Script and Requirement Updates
test/torch/quantization/test_autoround.pytotest/torch/quantization/test_autoround_cpu.py, removing HPU/XPU-specific logic for CPU-only testing. [1] [2].azure-pipelines/scripts/install_nc.shto handle XPU and HPU backends distinctly, including proper installation of PyTorch for XPU and related dependencies.These changes collectively modernize the CI pipeline, enable robust hardware-specific testing, and simplify maintenance for future backend support.
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed