Skip to content

Commit

Permalink
Update optimum/habana/transformers/models/mt5/modeling_mt5.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yaser Afshar <[email protected]>
  • Loading branch information
Gaurav7888 and yafshar authored Aug 5, 2024
1 parent 486eb63 commit 87363cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/habana/transformers/models/mt5/modeling_mt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def gaudi_MT5Attention_forward(
use_cache=False,
output_attentions=False,
token_idx=None,
):
"""
):
"""
Copied from https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/models/mt5/modeling_mt5.py
Self-attention (if key_value_states is None) or attention over source sentence (provided by key_value_states).
The only differences are:
Expand Down

0 comments on commit 87363cb

Please sign in to comment.