Update llama.py
This commit is contained in:
parent
7816f7e9ac
commit
bd6b1c24c4
1 changed files with 2 additions and 1 deletions
|
|
@ -706,9 +706,10 @@ def LlamaModel_fast_forward(
|
|||
pass
|
||||
|
||||
# Ignore attention_mask
|
||||
print(attention_mask, attention_mask.shape, attention_mask.dtype)
|
||||
if attention_mask is None:
|
||||
padding_mask = None
|
||||
elif self.training:
|
||||
elif attention_mask is None and self.training:
|
||||
# attention_mask = None
|
||||
padding_mask = None
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue