Skip to content

Commit 726e7ac

Browse files
committed
Update the CI check
Signed-off-by: Jingyu Xin <jingyux@nvidia.com>
1 parent 8878c6f commit 726e7ac

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/codecov.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
flag_management:
55
default_rules:
66
carryforward: true
7+
# Triton JIT kernels (modelopt/torch/kernels/triton_fa.py, hf_triton_attention.py)
8+
# are GPU-only code that unit tests (CPU) cannot exercise. We keep them in the
9+
# `gpu` flag so nightly GPU runs report their coverage, but exclude them from
10+
# the `unit` flag so CPU-only unit tests are not penalized for missing them.
11+
individual_flags:
12+
- name: unit
13+
paths:
14+
- "modelopt/**"
15+
- "!modelopt/torch/kernels/triton_fa.py"
16+
- "!modelopt/torch/kernels/hf_triton_attention.py"
17+
- name: gpu
18+
paths:
19+
- "modelopt/**"
720
coverage:
821
status:
922
project:

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,4 @@ exclude_lines = [
335335
"if TYPE_CHECKING:",
336336
# Don't complain about abstract methods, they aren't run
337337
"@(abc\\.)?abstractmethod",
338-
# Triton JIT/autotune kernels are GPU-only and tested via tests/gpu/
339-
"@triton\\.jit",
340-
"@triton\\.autotune",
341338
]

0 commit comments

Comments
 (0)