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 Hancc3c81e2ed77
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 4dfe214cf08..5ad41aadcc9 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -654,6 +654,7 @@ def LlamaModel_fast_forward(inputs_embeds = self.embed_tokens(input_ids)inputs_embeds = inputs_embeds.to(_get_dtype(self.config.torch_dtype))+ print(inputs_embeds.shape)# Normalized from GemmaIS_GEMMA = self.config.model_type.startswith("gemma")@@ -1170,7 +1171,7 @@ 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, outputs.past_key_values[0][0].shape)+ # print(outputs.past_key_values, outputs.past_key_values[0][0].shape)raisereturn CausalLMOutputWithPast(loss = loss,