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 Han630ec299ac80
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex 70b0f116d5c..347f9eb9dab 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -346,9 +346,9 @@ class Fast_CrossEntropyLoss(torch.autograd.Function):labels,VOCAB_SIZE = vocab_size,BLOCK_SIZE = BLOCK_SIZE,- DO_SOFTCAPPING = ctx.DO_SOFTCAPPING,+ DO_SOFTCAPPING = bool(ctx.DO_SOFTCAPPING),SOFTCAP = ctx.logit_softcapping,- DO_LOGIT_SCALING = ctx.DO_LOGIT_SCALING,+ DO_LOGIT_SCALING = bool(ctx.DO_LOGIT_SCALING),LOGIT_SCALE = ctx.logit_scaling,num_warps = 8,)