diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py index d6916814ae..ec6706e515 100644 --- a/unsloth/models/llama.py +++ b/unsloth/models/llama.py @@ -707,7 +707,8 @@ def LlamaModel_fast_forward( # Ignore attention_mask if attention_mask is None: padding_mask = None - 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: