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 Han69c2cd23c0bb
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 23a8c0a6810..143cd416597 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -20,7 +20,7 @@ from ._utils import *from ._utils import __version__from torch.nn.functional import scaled_dot_product_attentionfrom transformers import __version__ as transformers_version-from unsloth_zoo.utils import Version+from unsloth_zoo.utils import Version, _get_dtypetransformers_version = Version(transformers_version)# Transformers moved rotary embeddings out of all attention layersIS_ATTENTION_REFACTOR = transformers_version > Version("4.47.1")