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(ROCm): prevent false TMA support detection on AMD GPUs (#4126)

金黄色葡萄球君君48e8f7804246
diff --git a/unsloth/kernels/moe/grouped_gemm/interface.py b/unsloth/kernels/moe/grouped_gemm/interface.py
index 554e5fcc036..5588458973d 100644
--- a/unsloth/kernels/moe/grouped_gemm/interface.py
+++ b/unsloth/kernels/moe/grouped_gemm/interface.py
@@ -39,10 +39,10 @@ logger.addHandler(ch)
# Precompute TMA support to avoid graph breaks
# TMA requires both:
-# 1. GPU capability >= 9 (Hopper+)
+# 1. NVIDIA GPU with 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":
+ if DEVICE_TYPE in ("xpu", "hip"):
return False
import triton.language as tl