Update llama.py

This commit is contained in:
Daniel Han 2025-02-13 17:22:39 -08:00
commit 8c88b29d74

View file

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