Skip to content

Commit

Permalink
Merge pull request #32 from ModelTC/llmc-reviewer-patch-1
Browse files Browse the repository at this point in the history
Update quarot.py
  • Loading branch information
Harahan authored Aug 19, 2024
2 parents a449682 + a457e0a commit dc1b1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmc/compression/quantization/quarot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def preprocess(self):
self.model.get_head_layers()[0].weight,
self.model.get_embed_layers()[0].weight,
):
logger.info('Tie weight! Skip rotating head layer!')
logger.info('Tie weight! Copy embed_layer for head_layer!')
del self.model.get_head_layers()[0].weight
w = self.model.get_embed_layers()[0].weight.clone()
self.model.get_head_layers()[0].weight = nn.Parameter(w)
Expand Down

0 comments on commit dc1b1dc

Please sign in to comment.