From 096544eff426ad3373e54b5016f1477809e49b19 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Mon, 26 Feb 2024 03:14:04 +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 5c34df71b9..454dc27f22 100644 --- a/unsloth/kernels/cross_entropy_loss.py +++ b/unsloth/kernels/cross_entropy_loss.py @@ -247,7 +247,7 @@ class Fast_CrossEntropyLoss(torch.autograd.Function): dlosses, dlosses.stride(0), logsumexp, labels, - VOCAB_SIZE = n_cols, + VOCAB_SIZE = vocab_size, BLOCK_SIZE = BLOCK_SIZE, num_warps = 8, )