Skip to content

Commit 284959f

Browse files
committed
test/prototype/test_spinquant.py
1 parent 08a600d commit 284959f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/prototype/test_spinquant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def _init_model(name="7B", device="cpu", precision=torch.bfloat16):
1616
return model.eval()
1717

1818

19-
_AVAILABLE_DEVICES = ["cpu"] + (["cuda"] if torch.cuda.is_available() else [])
19+
_AVAILABLE_DEVICES = ["cpu"] + (["cuda"] if torch.cuda.is_available() else []) + (["xpu"] if torch.xpu.is_available() else [])
2020

2121

2222
@pytest.mark.parametrize("device", _AVAILABLE_DEVICES)

0 commit comments

Comments
 (0)