8000 FIX TST Incorrect CUDA skipping logic (#2519) · huggingface/peft@70e737b · GitHub
[go: up one dir, main page]

Skip to content

Commit 70e737b

Browse files
authored
FIX TST Incorrect CUDA skipping logic (#2519)
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
1 parent 352a230 commit 70e737b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bnb/test_bnb_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_opt_350m_4bit_double_quant():
114114
torch.testing.assert_allclose(output, expected)
115115

116116

117-
@pytest.mark.skipif(torch.cuda.is_available(), reason="No CUDA device available.")
117+
@pytest.mark.skipif(not torch.cuda.is_available(), reason="No CUDA device available.")
118118
def test_opt_350m_4bit_compute_dtype_float16():
119119
torch.manual_seed(0)
120120
bnb_config = BitsAndBytesConfig(

0 commit comments

Comments
 (0)
0