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 Handbb7bd3a7a3f
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 7557a961201..072d48780f5 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -99,11 +99,13 @@ SDPA_HAS_GQA = "enable_gqa" in scaled_dot_product_attention.__doc__# Fix new HF's inference codedef _fast_prepare_inputs_for_generation(self, input_ids, **kwargs,):+ print("PREPARE", input_ids)if "past_key_values" in kwargs:input_ids = input_ids[:,[-1]]kwargs["attention_mask"] = kwargs["attention_mask"][:,[-1]]if "cache_position" in kwargs:kwargs["position_ids"] = kwargs["cache_position"]+ print("PREPARE", input_ids)return { "input_ids" : input_ids, **kwargs, }pass