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
fix for tma (#4023)
Lei Zhenyuancdc9dc1fb173
diff --git a/unsloth/kernels/moe/grouped_gemm/interface.py b/unsloth/kernels/moe/grouped_gemm/interface.pyindex 572b02702b3..554e5fcc036 100644--- a/unsloth/kernels/moe/grouped_gemm/interface.py+++ b/unsloth/kernels/moe/grouped_gemm/interface.py@@ -4,6 +4,7 @@import loggingimport warningsfrom dataclasses import asdict+from unsloth import DEVICE_TYPEimport torchimport triton@@ -41,6 +42,8 @@ logger.addHandler(ch)# 1. GPU capability >= 9 (Hopper+)# 2. Triton version with TMA API (make_tensor_descriptor or _experimental_make_tensor_descriptor)def _check_tma_support():+ if DEVICE_TYPE == "xpu":+ return Falseimport triton.language as tlgpu_supports_tma = torch.cuda.get_device_capability()[0] >= 9