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
Explain why the gated-deltanet fast kernels were disabled (#8073)
Daniel Han437a75ece6d0
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex 94b47089aee..d414ad76f84 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -271,7 +271,9 @@ def _maybe_advise_fla_install(model_types):The kernels ship with Unsloth (no install needed); this fires only when theycould not be enabled on this platform (e.g. no CUDA, torch < 2.7 or- triton < 3.3), i.e. exactly when transformers uses the slow pure PyTorch path.+ triton < 3.3), or when Unsloth deliberately disabled them because they are+ known-broken on this GPU / Triton combination, i.e. exactly when transformers+ uses the slow pure PyTorch path."""global _fla_advisedif _fla_advised:@@ -291,6 +293,19 @@ def _maybe_advise_fla_install(model_types):except Exception:return_fla_advised = True+ # Prefer unsloth_zoo's specific reason when it disabled the kernels on purpose.+ # The generic text below blames CUDA / torch / triton minimums, all of which are+ # satisfied on e.g. an H100 that hit the fla #640 Triton miscompile, so it would+ # send that user looking in the wrong place. try/except keeps an unsloth pinned+ # against an older unsloth_zoo working.+ try:+ from unsloth_zoo.temporary_patches.fla_vendor import fla_unavailable_reason+ reason = fla_unavailable_reason()+ except Exception:+ reason = None+ if reason:+ print(reason)+ returnprint("Unsloth: This model uses gated-deltanet linear attention layers. Unsloth\n""bundles the flash-linear-attention kernels, but they could not be enabled\n"