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 4df97be commit 4ed7a02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions optimum/habana/transformers/models/mt5/modeling_mt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ def gaudi_MT5Block_forward(
return_dict=True,
token_idx=None,
):
"""
The only differences are:
- add new args token_idx
"""
if past_key_value is not None:
if not self.is_decoder:
logger.warning("`past_key_values` is passed to the encoder. Please make sure this is intended.")
Expand Down

0 comments on commit 4ed7a02

Please sign in to comment.