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 Han80dea539a77b
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex abe08d7d064..f0193c74d8a 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -36,7 +36,7 @@ def _cross_entropy_forward(loss_ptr ,logsumexp_ptr ,labels_ptr ,- VOCAB_SIZE : tl.constexpr,+ VOCAB_SIZE ,BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,@@ -109,7 +109,7 @@ def _chunked_cross_entropy_forward(loss_ptr ,logsumexp_ptr ,labels_ptr ,- VOCAB_SIZE : tl.constexpr,+ VOCAB_SIZE ,N_CHUNKS ,BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,@@ -193,7 +193,7 @@ def _cross_entropy_backward(dloss_row_stride ,logsumexp_ptr ,labels_ptr ,- VOCAB_SIZE : tl.constexpr,+ VOCAB_SIZE ,BLOCK_SIZE : tl.constexpr,DO_SOFTCAPPING ,SOFTCAP ,