Skip to content

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.

Update _utils.py

Daniel Hanb0f010259f91
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index cf34767d7bc..cdb28234c73 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -321,7 +321,8 @@ except Exception as error:
)
pass
import xformers.ops.fmha as xformers
-xformers_attention = xformers.memory_efficient_attention
+# [TODO] Unsure why Xformers is also breaking as well
+xformers_attention = torch.compiler.disable(xformers.memory_efficient_attention)
# Check TRL version
from trl import __version__ as trl_version