File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments