Skip to content

Commit e1abec9

Browse files
committed
support tests
1 parent 44868f5 commit e1abec9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bitsandbytes/backends/triton/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def quantize_blockwise(A: torch.Tensor, code: torch.Tensor, blocksize: int) -> t
5959
triton_kernels.quantize_blockwise_triton(A, blocksize, code, blocks, absmax, out)
6060
out = out.reshape(A.shape)
6161

62-
return out, absmax
62+
return out, absmax.float()
6363

6464

6565
def dequantize_blockwise(

tests/test_modules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ def test_linear_kbit_fp32_bias(device, module):
287287
def test_kbit_backprop(device, module):
288288
if device == "cpu":
289289
pytest.xfail("Test is not yet supported on CPU")
290+
if device == "xpu":
291+
pytest.xfail("Missing int8_double_quant implementation XPU")
290292

291293
b = 16
292294
dim1 = 36

0 commit comments

Comments
 (0)