Skip to content

Commit

Permalink
update key (vllm-project#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka authored Sep 27, 2024
1 parent a852897 commit f3d9ec2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/compressed_tensors/compressors/model_compressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,16 +311,16 @@ def update_config(self, save_directory: str):
with open(config_file_path, "r") as config_file:
config_data = json.load(config_file)

config_data[COMPRESSION_CONFIG_NAME] = {}
config_data[QUANTIZATION_CONFIG_NAME] = {}
if self.quantization_config is not None:
quant_config_data = self.quantization_config.model_dump()
config_data[COMPRESSION_CONFIG_NAME] = quant_config_data
config_data[QUANTIZATION_CONFIG_NAME] = quant_config_data
if self.sparsity_config is not None:
sparsity_config_data = self.sparsity_config.model_dump()
config_data[COMPRESSION_CONFIG_NAME][
config_data[QUANTIZATION_CONFIG_NAME][
SPARSITY_CONFIG_NAME
] = sparsity_config_data
config_data[COMPRESSION_CONFIG_NAME][
config_data[QUANTIZATION_CONFIG_NAME][
COMPRESSION_VERSION_NAME
] = compressed_tensors.__version__

Expand Down

0 comments on commit f3d9ec2

Please sign in to comment.