Skip to content

Commit

Permalink
Merge pull request #556 from XxAlonexX/main
Browse files Browse the repository at this point in the history
Fix Linear Layer Bias Initialization
  • Loading branch information
GeeeekExplorer authored Feb 5, 2025
2 parents a157077 + 6a30b43 commit 87a0105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __init__(self, in_features: int, out_features: int, bias: bool = False, dtyp
else:
self.register_parameter("scale", None)
if bias:
self.bias = nn.Parameter(torch.empty(self.part_out_features))
self.bias = nn.Parameter(torch.empty(out_features))
else:
self.register_parameter("bias", None)

Expand Down

0 comments on commit 87a0105

Please sign in to comment.