Update llama.py

This commit is contained in:
Daniel Han 2025-02-12 21:06:33 -08:00
commit ea7166d33a

View file

@ -707,8 +707,8 @@ def LlamaModel_fast_forward(
# Ignore attention_mask
if attention_mask is None:
padding_mask = None
elif attention_mask is None and self.training:
# attention_mask = None
elif self.training:
attention_mask = None
padding_mask = None
else:
# if 0 in attention_mask: