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 llama.py
Daniel Han69728ffd1451
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex b88ed637c28..dc78547ddc2 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1008,6 +1008,7 @@ def CausalLM_fast_forward(fast_forward_inference):if not RETURN_LOGITS and HAS_CUT_CROSS_ENTROPY and labels is not None:n_items = kwargs.get("num_items_in_batch", None) or kwargs.get("n_items", None)+ print(n_items)loss = fused_linear_cross_entropy(hidden_states = hidden_states,lm_weight = lm_head,