Skip to content

Commit

Permalink
Merge pull request bitsandbytes-foundation#2 from ROCmSoftwarePlatfor…
Browse files Browse the repository at this point in the history
…m/skip_triton

skip failing triton tests on rocm
  • Loading branch information
amathews-amd authored Nov 21, 2023
2 parents 9dca4fa + 38c934e commit 71bf2df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_triton.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
from bitsandbytes.triton.triton_utils import is_triton_available
from bitsandbytes.nn.triton_based_modules import SwitchBackLinear
from bitsandbytes.nn import Linear8bitLt
from bitsandbytes.cextension import HIP_ENVIRONMENT

@pytest.mark.skipif(HIP_ENVIRONMENT, reason="this test is not supported on ROCm yet")
@pytest.mark.skipif(not is_triton_available() or not torch.cuda.is_available() or not torch.cuda.get_device_capability()[0] >= 8,
reason="This test requires triton and a GPU with compute capability 8.0 or higher.")
@pytest.mark.parametrize("vector_wise_quantization", [False, True])
Expand Down

0 comments on commit 71bf2df

Please sign in to comment.