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 Han4377b396c3c9
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex d6f6ae6f0f2..811e6ccd181 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -709,7 +709,7 @@ def LlamaModel_fast_forward(if attention_mask is None:padding_mask = None# elif self.training:- elif attention_mask is not None:+ elif attention_mask is None:attention_mask = Nonepadding_mask = Noneelse: