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 Han17c486acf811
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 23a8c0a6810..3c33253911f 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -254,6 +254,7 @@ def LlamaAttention_fast_forward_inference(# pass# Attention+ print(attention_mask)if bsz == 1:Qn *= self.scalar # See https://github.com/ggerganov/llama.cpp/issues/7805#issuecomment-2153349963# It seems like doing (Q * scalar) @ K is better than (Q @ K) * scalar to stop overflows