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 Hanceea79e3a2db
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 051cd441c8a..23a8c0a6810 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -262,6 +262,7 @@ def LlamaAttention_fast_forward_inference(A[:] = torch_nn_functional_softmax(A, dim = -1, dtype = torch.float32)#.to(A.dtype)A = torch_matmul(A, Vnn, out = Qn)else:+ print(attention_mask)A = scaled_dot_product_attention(Qn, Knn, Vnn, attn_mask = attention_mask, is_causal = False)passA = A.transpose(1, 2)@@ -2601,7 +2602,7 @@ class FastLlamaModel:embeddings = model.get_output_embeddings()if hasattr(embeddings, "training"): embeddings.training = Truepass-+return modelpasspass