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 Hancf2a714d747d
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex 13d90baafe9..e5136f84124 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -181,10 +181,10 @@ def _chunked_cross_entropy_forward(pass-# @triton.heuristics({-# "DO_SOFTCAPPING": lambda args: bool(args["DO_SOFTCAPPING" ]),-# "DO_LOGIT_SCALING": lambda args: bool(args["DO_LOGIT_SCALING"]),-# })+ "DO_SOFTCAPPING": lambda args: bool(args["DO_SOFTCAPPING" ]),+ "DO_LOGIT_SCALING": lambda args: bool(args["DO_LOGIT_SCALING"]),+})@triton.jitdef _cross_entropy_backward(logits_ptr ,@@ -337,6 +337,8 @@ class Fast_CrossEntropyLoss(torch.autograd.Function):return lossespass++ @torch.compiler.disable@staticmethoddef backward(ctx, dlosses):logits, logsumexp, labels = ctx.saved_tensors