Deci
/

itay-levy commited on
Commit
0da01b7
1 Parent(s): 42859ad

add padding_mask

Browse files
Files changed (1) hide show
  1. modeling_decicoder.py +1 -0
modeling_decicoder.py CHANGED
@@ -61,6 +61,7 @@ class DeciCoderAttention(LlamaAttention):
61
  past_key_value: Optional[Tuple[torch.Tensor]] = None,
62
  output_attentions: bool = False,
63
  use_cache: bool = False,
 
64
  ) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[Tuple[torch.Tensor]]]:
65
  bsz, q_len, _ = hidden_states.size()
66
  if past_key_value is None:
 
61
  past_key_value: Optional[Tuple[torch.Tensor]] = None,
62
  output_attentions: bool = False,
63
  use_cache: bool = False,
64
+ padding_mask: Optional[torch.LongTensor] = None,
65
  ) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[Tuple[torch.Tensor]]]:
66
  bsz, q_len, _ = hidden_states.size()
67
  if past_key_value is None: