Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Update cross_entropy_loss.py
Daniel Han66b807b6ddaa
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex 15a148b00ea..bcdef31997e 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -32,11 +32,11 @@ from unsloth_zoo.loss_utils import (@triton.jitdef _cross_entropy_forward(logits_ptr ,- logits_row_stride : tl.constexpr,+ logits_row_stride ,loss_ptr ,logsumexp_ptr ,labels_ptr ,- VOCAB_SIZE ,+ VOCAB_SIZE : tl.constexpr,BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,@@ -105,12 +105,12 @@ pass@triton.jitdef _chunked_cross_entropy_forward(logits_ptr ,- logits_row_stride : tl.constexpr,+ logits_row_stride ,loss_ptr ,logsumexp_ptr ,labels_ptr ,- VOCAB_SIZE ,- N_CHUNKS ,+ VOCAB_SIZE : tl.constexpr,+ N_CHUNKS : tl.constexpr,BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,@@ -188,12 +188,12 @@ pass@triton.jitdef _cross_entropy_backward(logits_ptr ,- logits_row_stride : tl.constexpr,+ logits_row_stride ,dloss_ptr ,dloss_row_stride ,logsumexp_ptr ,labels_ptr ,- VOCAB_SIZE ,+ VOCAB_SIZE : tl.constexpr,BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,