Skip to content

Commit

Permalink
Fix full modules(manual cherry pick)
Browse files Browse the repository at this point in the history
  • Loading branch information
KohakuBlueleaf committed Dec 14, 2023
1 parent aa66fcb commit f86f757
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lycoris/modules/full.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(

def apply_to(self, **kwargs):
self.org_forward = self.org_module[0].forward
self.org_module[0].forward = self.forward
self.weight.data.copy_(self.org_module[0].weight.data)
self.org_weight = [self.org_module[0].weight.data.cpu().clone()]
delattr(self.org_module[0], "weight")
Expand Down

0 comments on commit f86f757

Please sign in to comment.