File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44flag_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/**"
720coverage :
821 status :
922 project :
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments