Update llama.py

This commit is contained in:
Daniel Han-Chen 2024-01-28 03:55:23 +11:00
commit 6a027a8292

View file

@ -635,6 +635,7 @@ def LlamaForCausalLM_fast_forward(
logits = self.lm_head(hidden_states)
loss = None
print(labels)
if labels is not None:
shift_logits = logits
if not hasattr(self, "extra_ignored_labels"):