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 Hanc60053e4aff3
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex fd34b9a4df0..20b57b30b78 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -31,7 +31,7 @@ def _cross_entropy_forward(logsumexp_ptr ,labels_ptr ,VOCAB_SIZE ,- BLOCK_SIZE ,+ BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,DO_LOGIT_SCALING ,@@ -105,7 +105,7 @@ def _chunked_cross_entropy_forward(labels_ptr ,VOCAB_SIZE ,N_CHUNKS ,- BLOCK_SIZE ,+ BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,DO_LOGIT_SCALING ,@@ -188,7 +188,7 @@ def _cross_entropy_backward(logsumexp_ptr ,labels_ptr ,VOCAB_SIZE ,- BLOCK_SIZE ,+ BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,DO_LOGIT_SCALING ,