mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 18:26:37 +08:00
Uncomment bidirectional param
This commit is contained in:
parent
55f204dd3a
commit
54b82198d0
4
t5/t5.py
4
t5/t5.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user