Skip to content

Commit 92a24ed

Browse files
authored
fix(ci): skip TorchAO INT4 test when Triton is unavailable (#4758)
1 parent 5a27528 commit 92a24ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/py/dynamo/models/test_torchao_fp8_woq.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
172172

173173
@pytest.mark.unit
174174
@unittest.skipIf(importlib.util.find_spec("torchao") is None, "torchao not installed")
175+
@unittest.skipIf(
176+
importlib.util.find_spec("triton") is None,
177+
"TorchAO INT4 dependencies require Triton, which is unavailable",
178+
)
175179
@unittest.skipIf(not torch.cuda.is_available(), "CUDA is required")
176180
def test_linear_int4_woq():
177181
import sys

0 commit comments

Comments
 (0)