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 Han7f74268e0103
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex 74ee4ee66ad..59d0f3b6942 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -443,6 +443,7 @@ def patch_llama_for_causal_lm():patched_function = f"class Unsloth_LlamaForCausalLM(LlamaForCausalLM):\n"\f" {function}\n"+ print(patched_function)exec(patched_function)transformers.models.llama.modeling_llama.LlamaForCausalLM = Unsloth_LlamaForCausalLMreturn