Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci_npuir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
runs-on: linux-aarch64-a3-2
container:
image: swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:8.5.0-a3-ubuntu22.04-py3.11
env:
TILELANG_DUMP_IR: "0"
timeout-minutes: 120
steps:

Expand Down Expand Up @@ -90,7 +92,7 @@ jobs:
pip install torch-npu==2.7.1
pip install dist/*.whl
pip install pytest pytest-xdist pytest-html numpy

- name: Install clang
run: |
apt-get update && apt-get install -y clang
Expand Down
2 changes: 1 addition & 1 deletion testing/npuir/testcommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

DEFAULT_TOLERANCE = {
"float16": (1e-3, 1e-3),
"float16": (1e-2, 1e-2),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Increasing the global float16 tolerance to 1e-2 is a significant relaxation that could mask numerical regressions across the entire test suite. float16 typically supports a precision around 1e-3. A better approach to handle CI failures is to override the tolerance in specific test cases that exhibit instability on the NPU, rather than globally reducing the sensitivity of all tests.

"bfloat16": (2e-2, 2e-2),
"float32": (1e-4, 1e-4),
"int8": (0.0, 0.0),
Expand Down
Loading