Skip to content

Commit

Permalink
Update src/transformers/models/llama/modeling_llama.py
Browse files Browse the repository at this point in the history
Co-authored-by: Arthur <[email protected]>
  • Loading branch information
fxmarty and ArthurZucker authored Apr 17, 2024
1 parent 70d903f commit 86e223e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/transformers/models/llama/modeling_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,10 +1077,6 @@ def _update_causal_mask(
attention_mask, inputs_embeds=input_tensor, past_key_values_length=past_seen_tokens
):
return None

if ignore_causal_mask:
return None

dtype, device = input_tensor.dtype, input_tensor.device
min_dtype = torch.finfo(dtype).min
sequence_length = input_tensor.shape[1]
Expand Down

0 comments on commit 86e223e

Please sign in to comment.