Skip to content

Commit 83e7290

Browse files
committed
Allow W8A8Linear to accept dtype during initialization instead of hardcoding torch.float16
1 parent f4c7178 commit 83e7290

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lmdeploy/pytorch/nn/linear/w8a8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self,
2525
all_reduce: bool = True,
2626
quant_dtype: torch.dtype | None = torch.int8,
2727
layer_type: str = 'attn'):
28-
super().__init__(dtype=torch.float16,
28+
super().__init__(dtype=dtype,
2929
device=device,
3030
colwise=colwise,
3131
is_tp=is_tp,

0 commit comments

Comments
 (0)