Update llama.py

This commit is contained in:
Daniel Han 2025-02-12 20:24:48 -08:00
commit bd6b1c24c4

View file

@ -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: