Uncomment bidirectional param

This commit is contained in:
Juarez Bochi 2023-12-18 08:42:27 -05:00
parent 55f204dd3a
commit 54b82198d0
No known key found for this signature in database
GPG Key ID: 34CCBB77DC8BEBB6

View File

@ -60,8 +60,8 @@ def _relative_position_bucket(
class RelativePositionBias(nn.Module):
def __init__(self, config: ModelArgs, bidirectional: bool):
self.bidirectional = False # bidirectional
def __init__(self, config: T5Config, bidirectional: bool):
self.bidirectional = bidirectional
self.num_buckets = config.relative_attention_num_buckets
self.max_distance = config.relative_attention_max_distance
self.n_heads = config.num_heads