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 flex_attention.py
Daniel Hanc8005418c599
diff --git a/unsloth/kernels/flex_attention.py b/unsloth/kernels/flex_attention.pyindex 99e46a904c1..1342bfafc29 100644--- a/unsloth/kernels/flex_attention.py+++ b/unsloth/kernels/flex_attention.py@@ -42,15 +42,13 @@ if not HAS_FLEX_ATTENTION:# Below fails on compiled_autograd, so disable ittry:- disable_compiled_autograd = torch._dynamo.compiled_autograd.disable+ disable_compile = torch._dynamo.compiled_autograd.disableexcept:- disable_compiled_autograd = lambda f: f+ disable_compile = lambda f: fpass# Logit softcapping- @disable_compiled_autograd(- torch.compile(fullgraph = True, dynamic = True, options = torch_compile_options)- )+ @disable_compile(torch.compile(fullgraph = True, dynamic = True, options = torch_compile_options))def slow_attention_softcapping(Q, K, V, causal_mask, self, bsz, q_len):n_heads = self.num_headshead_dim = self.head_dim