Skip to content

Commit ca5279f

Browse files
committed
update tests
1 parent d03c14f commit ca5279f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_compressors/test_pack_quant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_quant_format(shape):
6767
compressor = PackedQuantizationCompressor(config=quant_config)
6868
quantized_modules_to_args = {"dummy": quant_config.config_groups["group_1"].weights}
6969
compressed_state_dict = compressor.compress(
70-
dense_state_dict, model_quant_args=quantized_modules_to_args
70+
dense_state_dict, names_to_scheme=quantized_modules_to_args
7171
)
7272

7373
# compressed state_dict adds one entry for shape
@@ -129,7 +129,7 @@ def test_reload_match(tmp_path, num_bits):
129129
"dummy2": quant_config.config_groups["group_1"].weights,
130130
}
131131
compressed_state_dict = compressor.compress(
132-
dense_state_dict, model_quant_args=quantized_modules_to_args
132+
dense_state_dict, names_to_scheme=quantized_modules_to_args
133133
)
134134
save_file(compressed_state_dict, tmp_path / "model.safetensors")
135135
reconstructed_dense_gen = compressor.decompress(

0 commit comments

Comments
 (0)