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
CE Loss
Daniel Han2ea161c913db
diff --git a/unsloth/kernels/__init__.py b/unsloth/kernels/__init__.pyindex df7589719dc..78e70a65b50 100644--- a/unsloth/kernels/__init__.py+++ b/unsloth/kernels/__init__.py@@ -14,8 +14,7 @@from .cross_entropy_loss import (fast_cross_entropy_loss,- patch_losses,- patch_loss_function,+ post_patch_loss_function,)from .rms_layernorm import (fast_rms_layernorm,diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex f5a015073cb..92e64bfa9ba 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -393,4 +393,4 @@ if (Version(torch.__version__) < Version("2.4.0")) and \pass# Patch CE Losses in transformers-patch_losses = transformers_losses_patcher(causal_loss_function(fast_cross_entropy_loss))+patch_loss_functions(fast_cross_entropy_loss)