Skip to content

Commit

Permalink
fix api (#11337)
Browse files Browse the repository at this point in the history
Signed-off-by: yaoyu-33 <[email protected]>
  • Loading branch information
yaoyu-33 authored Nov 20, 2024
1 parent 8b7999d commit 4e56c40
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def forward(
self_attention_relative_position_bias=None,
cross_attention_relative_position_bias=None,
checkpoint_core_attention=False,
decoder_max_sequence_len=None,
encoder_max_sequence_len=None,
):
# Self attention.
if rotary_pos_emb is not None:
Expand Down Expand Up @@ -373,6 +375,8 @@ def forward(
self_attention_relative_position_bias=None,
cross_attention_relative_position_bias=None,
checkpoint_core_attention=False,
decoder_max_sequence_len=None,
encoder_max_sequence_len=None,
):
kwargs = locals()
for key in ["self", "__class__"]:
Expand Down

0 comments on commit 4e56c40

Please sign in to comment.