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 Han310a40b3f923
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 0b567b023ab..8436ab18e84 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -707,9 +707,9 @@ def LlamaModel_fast_forward(# Ignore attention_maskif attention_mask is None:padding_mask = None- elif self.training:- attention_mask = None- padding_mask = None+ # elif self.training:+ # attention_mask = None+ # padding_mask = Noneelse:# if 0 in attention_mask:# padding_mask = attention_mask