Skip to content

Commit c0b0632

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 558b734 commit c0b0632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ds/quant.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def quant_model_weight_with_low_cpu_usage(model_path, qmodel_path):
9595
for weight_name in f.keys():
9696
weight = f.get_tensor(weight_name)
9797
if skip_weight(weight_name):
98-
logger.debug(f"Skiping quantize {weight_name}")
98+
logger.debug(f"Skipping quantize {weight_name}")
9999
qtensors[weight_name] = weight
100100
qtensor_mappping[weight_name] = qmodel_file_name
101101
continue
@@ -141,7 +141,7 @@ def static_quant_model_tran(model_path, qmodel_path):
141141
)
142142
for name, module in model.named_modules():
143143
if not isinstance(module, QUANT_MODULE_TYPES) or skip_weight(name):
144-
logger.debug(f"Skiping quantize {name}")
144+
logger.debug(f"Skipping quantize {name}")
145145
continue
146146
logger.debug(f"Processing {name}")
147147
weight = module.weight

0 commit comments

Comments
 (0)