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

Commit 3168bc7

Browse files
authored
Update quantize.py
1 parent 8b924d9 commit 3168bc7

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

123123
q = quantizer_class_dict[quantizer]
124124
named_params = get_named_parameters(q.__init__)
125-
q_kwargs = validate_args(named_params, quantizer, q_kwargs)
125+
q_kwargs = validate_args(named_params, q_kwargs, quantizer)
126126

127127
# Handle tokenizer for scenarios where the quantizer needs to tokenizer sample inputs
128128
if "tokenizer" in named_params:

0 commit comments

Comments
 (0)