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.

fix for tma (#4023)

Lei Zhenyuancdc9dc1fb173
diff --git a/unsloth/kernels/moe/grouped_gemm/interface.py b/unsloth/kernels/moe/grouped_gemm/interface.py
index 572b02702b3..554e5fcc036 100644
--- a/unsloth/kernels/moe/grouped_gemm/interface.py
+++ b/unsloth/kernels/moe/grouped_gemm/interface.py
@@ -4,6 +4,7 @@
import logging
import warnings
from dataclasses import asdict
+from unsloth import DEVICE_TYPE
import torch
import 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 False
import triton.language as tl
gpu_supports_tma = torch.cuda.get_device_capability()[0] >= 9