Skip to content

Commit 94d9426

Browse files
committed
Update
[ghstack-poisoned]
1 parent ba045ea commit 94d9426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/quantization/quant_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def _int4_weight_only_transform(
793793
_layout=layout,
794794
use_hqq=use_hqq,
795795
)
796-
module.weight = torch.nn.Parameter(new_weight)
796+
module.weight = torch.nn.Parameter(new_weight, requires_grad=False)
797797
module.extra_repr = types.MethodType(_linear_extra_repr, module)
798798
return module
799799

0 commit comments

Comments
 (0)