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 Han-Chen85fac9e038a8
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex ea5dabf7388..1e301acc9b7 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -791,7 +791,7 @@ def CausalLM_fast_forward(fast_forward_inference):*args, **kwargs,) -> Union[Tuple, CausalLMOutputWithPast]:- if past_key_values is not None:+ if past_key_values is not None and self.config.model_type != "qwen2":outputs = fast_forward_inference(self,input_ids,