Skip to content

Commit 5a6edac

Browse files
authored
[tests] no hard-coded cuda (#11186)
no cuda only
1 parent e8fc8b1 commit 5a6edac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/quantization/bnb/test_mixed_int8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def test_device_and_dtype_assignment(self):
315315
_ = self.model_fp16.float()
316316

317317
# Check that this does not throw an error
318-
_ = self.model_fp16.cuda()
318+
_ = self.model_fp16.to(torch_device)
319319

320320

321321
class Bnb8bitDeviceTests(Base8bitTests):

0 commit comments

Comments
 (0)