From c1dbf6710e79b626d5f29c8608b0ea4d01203084 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Mon, 26 Feb 2024 03:29:19 +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 3ea4cad471..d9b9bb3a1e 100644 --- a/unsloth/kernels/cross_entropy_loss.py +++ b/unsloth/kernels/cross_entropy_loss.py @@ -217,7 +217,7 @@ class Fast_CrossEntropyLoss(torch.autograd.Function): n_rows, n_cols = logits.shape grid = lambda meta: (n_rows, triton.cdiv(n_cols, meta["BLOCK_SIZE"])) - print(logits.stride(), dlosses.stride(), dlosses.shape) + print(logits.stride(), dlosses.stride(), dlosses.shape, dlosses) _cross_entropy_backward[grid]( logits, logits.stride(0), dlosses, dlosses.stride(0),