From dd321363f2a496c05950b5394e29a30f8efa2c21 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Sat, 24 Feb 2024 02:30:49 +1100 Subject: [PATCH] Update cross_entropy_loss.py --- unsloth/kernels/cross_entropy_loss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.py index 6c1b7bdd0f..f2e77ef4d1 100644 --- a/unsloth/kernels/cross_entropy_loss.py +++ b/unsloth/kernels/cross_entropy_loss.py @@ -508,7 +508,7 @@ def cross_entropy_loss( ignored_index=-100, inplace_backward: bool = False, process_group=None, -) -> Tuple[torch.Tensor, torch.Tensor]: +) : """ Arguments: logits: (batch, vocab_size)