mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +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):
|
class RelativePositionBias(nn.Module):
|
||||||
def __init__(self, config: ModelArgs, bidirectional: bool):
|
def __init__(self, config: T5Config, bidirectional: bool):
|
||||||
self.bidirectional = False # bidirectional
|
self.bidirectional = bidirectional
|
||||||
self.num_buckets = config.relative_attention_num_buckets
|
self.num_buckets = config.relative_attention_num_buckets
|
||||||
self.max_distance = config.relative_attention_max_distance
|
self.max_distance = config.relative_attention_max_distance
|
||||||
self.n_heads = config.num_heads
|
self.n_heads = config.num_heads
|
||||||
|
Loading…
Reference in New Issue
Block a user