Update llama.py
This commit is contained in:
parent
3ac3cd2b72
commit
1d7d59fded
1 changed files with 2 additions and 1 deletions
|
|
@ -724,7 +724,8 @@ def LlamaModel_fast_forward(
|
|||
past_key_values_length,
|
||||
sliding_window = getattr(self.config, "sliding_window", None),
|
||||
)
|
||||
attention_mask = attention_mask.to(torch.bool)
|
||||
if attention_mask is not None:
|
||||
attention_mask = attention_mask.to(torch.bool)
|
||||
pass
|
||||
|
||||
hidden_states = inputs_embeds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue