Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit be06ff4

Browse files
authored
Update quantize.py
Fix typo (func -> q.__init__)
1 parent 4cbd6b6 commit be06ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchchat/utils/quantize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def quantize_model(
122122
precision = get_precision()
123123

124124
q = quantizer_class_dict[quantizer]
125-
named_params = get_named_params(func)
125+
named_params = get_named_params(q.__init__)
126126
q_kwargs = validate_args(named_params, quantizer, q_kwargs)
127127

128128
# Handle tokenizer for scenarios where the quantizer needs to tokenizer sample inputs

0 commit comments

Comments
 (0)