Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Nov 18, 2024
1 parent 619829e commit c0a6bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas_examples/llm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def main(args):
# If any equalization has taken places, the embedding layer and the fully connected one are
# not tied anymore, and they need to be treated as standalone, separate layers.
# In all other cases we can tie them back so to preserve memory.
if args.act_equalization is None and not require_fx:
if args.act_equalization is None and not require_fx and args.rotation is None:
model.tie_weights()

if args.bias_corr:
Expand Down

0 comments on commit c0a6bd2

Please sign in to comment.