Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gushiqiao committed May 14, 2024
1 parent d92a51c commit 24c97b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llmc/compression/quantization/omniq.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ def add_quant_config(self):
else:
self.load_clip = False

if self.load_clip:
assert "clip_path" in self.quant_config["special"]
self.clip_path = self.quant_config["special"]["clip_path"]
self.weight_clips = torch.load(self.clip_path)
if self.load_clip:
assert "clip_path" in self.quant_config["special"]
self.clip_path = self.quant_config["special"]["clip_path"]
self.weight_clips = torch.load(self.clip_path)

if self.lwc:
self.lwc_lr = self.quant_config["special"]["lwc_lr"]
Expand Down

0 comments on commit 24c97b9

Please sign in to comment.