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 Hanb8631b7bd8ca
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 36fd151f4e4..5a48959f3f2 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -994,13 +994,15 @@ def CausalLM_fast_forward(fast_forward_inference):output = (logits,) + outputs[1:]return (loss,) + output if loss is not None else output- return CausalLMOutputWithPast(+ output = CausalLMOutputWithPast(loss=loss,- logits=None,+ logits=EMPTY_LOGITS,past_key_values=outputs.past_key_values,hidden_states=outputs.hidden_states,attentions=outputs.attentions,)+ print(output)+ return outputpasslogits = self.lm_head(hidden_states.to(lm_head.dtype))pass