Skip to content

Commit

Permalink
Fix conditional frm conditional_addition to firelu
Browse files Browse the repository at this point in the history
  • Loading branch information
klei22 authored Oct 4, 2024
1 parent c8d9977 commit 879065c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variations/position_encoding_variations.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def __init__(self, config, num_heads=12, eps=1e-6):
self.fire_log_bias = config.fire_log_bias

# Option to conditionally add bias based on the attn value
self.conditional_addition = config.use_firelu
self.use_firelu = config.use_firelu

def forward(self, x: torch.Tensor, attn: torch.Tensor):
seq_length = x.size(1)
Expand Down

0 comments on commit 879065c

Please sign in to comment.