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 _utils.py
Daniel Han09ad3757c9bf
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 5a7d0b005f3..94cf1b74e0e 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -321,8 +321,7 @@ except Exception as error:)passimport xformers.ops.fmha as xformers-# [TODO] Unsure why Xformers is also breaking as well-xformers_attention = torch.compiler.disable(xformers.memory_efficient_attention)+xformers_attention = xformers.memory_efficient_attention# Check TRL versionfrom trl import __version__ as trl_version@@ -375,8 +374,8 @@ pass# =============================================# Torch compile settings-UNSLOTH_COMPILE_DEBUG = True #"UNSLOTH_COMPILE_DEBUG" in os.environ-UNSLOTH_COMPILE_MAXIMUM = True #"UNSLOTH_COMPILE_MAXIMUM" in os.environ+UNSLOTH_COMPILE_DEBUG = "UNSLOTH_COMPILE_DEBUG" in os.environ+UNSLOTH_COMPILE_MAXIMUM = "UNSLOTH_COMPILE_MAXIMUM" in os.environ# Just remove max_autotune_gemm warningimport functools@functools.lru_cache(None)