Skip to content

Commit fae32ff

Browse files
committed
no cuda only
1 parent 1d37f42 commit fae32ff

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
@@ -312,7 +312,7 @@ def test_device_and_dtype_assignment(self):
312312
_ = self.model_fp16.float()
313313

314314
# Check that this does not throw an error
315-
_ = self.model_fp16.cuda()
315+
_ = self.model_fp16.to(torch_device)
316316

317317

318318
class Bnb8bitDeviceTests(Base8bitTests):

0 commit comments

Comments
 (0)