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 Handea8630305bd
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex 66d5046deb6..9f16e8e605b 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -273,8 +273,8 @@ class Fast_CrossEntropyLoss(torch.autograd.Function):n_chunks = div + (mod != 0)losses = torch.empty(n_rows, dtype = torch.float32, device = logits.device)- DO_SOFTCAPPING = (logit_softcapping != 0)- DO_LOGIT_SCALING = (logit_scaling != 0)+ DO_SOFTCAPPING = logit_softcapping != 0+ DO_LOGIT_SCALING = logit_scaling != 0if n_chunks == 1:# For small vocabs <= 65336 like Llama, Mistral