[Quant] Fix use_mla TypeError and support loading pure-sparsity Compressed Tensors configs (#12711)
This commit is contained in:
@@ -1000,8 +1000,9 @@ class ModelConfig:
|
||||
# have fp8 for both weights and activations.
|
||||
if self.quantization == "compressed-tensors":
|
||||
quant_config = self._parse_quant_hf_config()
|
||||
for group_name, cfg in quant_config.get("config_groups",
|
||||
("", {})).items():
|
||||
for group_name, cfg in quant_config.get("config_groups", {
|
||||
"": {}
|
||||
}).items():
|
||||
act_cfg = cfg.get("input_activations", {})
|
||||
act_type = None if act_cfg is None else act_cfg.get("type", "")
|
||||
w_cfg = cfg.get("weights", {})
|
||||
|
||||
Reference in New Issue
Block a user