Skip to content

Commit

Permalink
fix vit quantcfg init error. (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiworldwzj authored Jan 23, 2025
1 parent 5c36aa7 commit ef2201d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightllm/models/vit/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _init_weights(self):
return

def _init_quant(self):
self.quant_cfg = Quantcfg(self.config["num_hidden_layers"], self.quant_type, self.quant_cfg_path)
self.quant_cfg = Quantcfg(self.config, self.quant_type, self.quant_cfg_path)
logger.info(f"Initial quantization. " f"The default quantization method is {self.quant_cfg.quant_type}")

def _init_infer_layer(self):
Expand Down

0 comments on commit ef2201d

Please sign in to comment.