Skip to content

Commit 1f6d59d

Browse files
committed
Fix CI
1 parent a2ddae3 commit 1f6d59d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchao/quantization/qat/linear.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ def _convert_qat_linear_4w(self, module: torch.nn.Module):
365365
inner_k_tiles=inner_k_tiles,
366366
precision=child.weight.dtype,
367367
scales_precision=config.scale_precision,
368+
device=next(child.parameters()).device,
368369
)
369370
setattr(module, name, quantized_linear)
370371

0 commit comments

Comments
 (0)