Skip to content

Commit 3c2bfef

Browse files
xfail tests with regressions for torch 2.10
1 parent a334ed0 commit 3c2bfef

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/test_functional.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,15 @@ def test_approx_igemm(self, dim1, dim2, quant_methods, batched):
430430
@pytest.mark.parametrize("seq_dim", [16, 256], ids=id_formatter("seq_dim"))
431431
@pytest.mark.parametrize("transpose", BOOLEAN_TUPLES, ids=id_formatter("transpose"))
432432
def test_igemm(self, hidden_dim, batch_dim, transpose, seq_dim):
433+
if (
434+
torch.version.cuda == "13.0"
435+
and torch.__version__ >= (2, 10)
436+
and not any(transpose)
437+
and batch_dim == 256
438+
and seq_dim == 256
439+
):
440+
pytest.xfail("Failure due to regression in cuBLAS for CUDA Toolkit 13.0.2.")
441+
433442
hidden_dim = hidden_dim - (hidden_dim % 32)
434443
batch_dim = batch_dim - (batch_dim % 16)
435444
seq_dim = seq_dim - (seq_dim % 16)
@@ -570,6 +579,9 @@ def min_max(x):
570579
@pytest.mark.parametrize("dim4", [32, 256], ids=id_formatter("dim4"))
571580
@pytest.mark.parametrize("transpose", BOOLEAN_TUPLES, ids=id_formatter("transpose"))
572581
def test_ibmm(self, dim1, dim2, dim3, dim4, transpose):
582+
if torch.version.cuda == "13.0" and torch.__version__ >= (2, 10) and dim1 == 64:
583+
pytest.xfail("Failure due to regression in cuBLAS for CUDA Toolkit 13.0.2.")
584+
573585
dim2 = dim2 - (dim2 % 16)
574586
dim3 = dim3 - (dim3 % 16)
575587
dim4 = dim4 - (dim4 % 16)

tests/test_linear8bitlt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ def test_linear8bitlt_torch_compile(device, threshold, bias, fullgraph, mode):
243243
if device == "cuda" and platform.system() == "Windows":
244244
pytest.skip("Triton is not officially supported on Windows")
245245

246+
if device == "cuda" and mode == "reduce-overhead" and fullgraph and threshold > 0 and torch.__version__ >= (2, 10):
247+
pytest.xfail("Failure due to regression in torch 2.10 related to reduced overhead mode and CUDA.")
248+
246249
dim = 256
247250
batch_size = 16
248251

0 commit comments

Comments
 (0)