Skip to content

Commit 214c3f3

Browse files
HPU test update
1 parent de6057b commit 214c3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def test_kbit_backprop(device, module):
299299
kbit = nn.Sequential(*[torch.nn.Linear(dim1, dim2), module(dim2, 128)])
300300

301301
if device == "hpu":
302-
if isinstance(module, bnb.nn.LinearFP4):
302+
if isinstance(kbit, bnb.nn.LinearFP4):
303303
pytest.skip("FP4 is not supported on HPU")
304304

305305
kbit[0].weight.detach().copy_(ref[0].weight)

0 commit comments

Comments
 (0)