Skip to content

Commit

Permalink
fix grouped conv bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardjhu committed May 15, 2023
1 parent a23efe2 commit 375704a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loralib/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def __init__(
self.weight.new_zeros((r*kernel_size, in_channels*kernel_size))
)
self.lora_B = nn.Parameter(
self.weight.new_zeros((out_channels*kernel_size, r*kernel_size))
self.weight.new_zeros((out_channels//self.groups*kernel_size, r*kernel_size))
)
self.scaling = self.lora_alpha / self.r
# Freezing the pre-trained weight matrix
Expand Down

0 comments on commit 375704a

Please sign in to comment.