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 Hanc61a9b5593ae
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex 19b384a3bd9..8b2204436bf 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -38,9 +38,9 @@ def _cross_entropy_forward(labels_ptr ,VOCAB_SIZE : tl.constexpr(tl.int32),BLOCK_SIZE : tl.constexpr(tl.int32),- DO_SOFTCAPPING : tl.constexpr(tl.int1),+ DO_SOFTCAPPING ,SOFTCAP ,- DO_LOGIT_SCALING : tl.constexpr(tl.int1),+ DO_LOGIT_SCALING ,LOGIT_SCALE ,):"""@@ -112,9 +112,9 @@ def _chunked_cross_entropy_forward(VOCAB_SIZE : tl.constexpr(tl.int32),N_CHUNKS : tl.constexpr(tl.int32),BLOCK_SIZE : tl.constexpr(tl.int32),- DO_SOFTCAPPING : tl.constexpr(tl.int1),+ DO_SOFTCAPPING ,SOFTCAP ,- DO_LOGIT_SCALING : tl.constexpr(tl.int1),+ DO_LOGIT_SCALING ,LOGIT_SCALE ,):"""@@ -195,9 +195,9 @@ def _cross_entropy_backward(labels_ptr ,VOCAB_SIZE : tl.constexpr(tl.int32),BLOCK_SIZE : tl.constexpr(tl.int32),- DO_SOFTCAPPING : tl.constexpr(tl.int1),+ DO_SOFTCAPPING ,SOFTCAP ,- DO_LOGIT_SCALING : tl.constexpr(tl.int1),+ DO_LOGIT_SCALING ,LOGIT_SCALE ,):"""