Update llama.py

This commit is contained in:
Daniel Han 2025-02-13 17:12:06 -08:00
commit db6d4e0fb7

View file

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