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 Han0d28429ba183
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 44765fdd97e..3e0717a872a 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -725,6 +725,7 @@ def LlamaModel_fast_forward(past_key_values_length,sliding_window = getattr(self.config, "sliding_window", None),)+ # Must NOT convert to bool - weirdly this causes stuff to error out!# if attention_mask is not None:# attention_mask = attention_mask.to(torch.bool)pass