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 Han8014699becd6
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 5c3b491904c..364c0444bd9 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1169,7 +1169,8 @@ def CausalLM_fast_forward(fast_forward_inference):if not return_dict:output = (logits,) + outputs[1:]return (loss,) + output if loss is not None else output- print(outputs.past_key_values)+ print(outputs.past_key_values, outputs.past_key_values[0][0].shape)+ raisereturn CausalLMOutputWithPast(loss = loss,logits = logits,