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 Hanad4b093ece06
diff --git a/unsloth/kernels/cross_entropy_loss.py b/unsloth/kernels/cross_entropy_loss.pyindex 72bd3b92d67..1174ead7d1f 100644--- a/unsloth/kernels/cross_entropy_loss.py+++ b/unsloth/kernels/cross_entropy_loss.py@@ -387,7 +387,7 @@ from transformers.models.llama.modeling_llama import (Tuple,)import inspect, re-function = inspect.getsource(transformers.models.llama.modeling_llama.LlamaForCausalLM.forward)+function = inspect.getsource(LlamaForCausalLM.forward)function = function.split("\n")i = re.match(r"[ ]{1,}", function[0]).span(0)[1]function = [x[i:] for x in function]