[XPU] fix incorrect gdn kernel log for XPU path (#54871)

Signed-off-by: Yan Ma <yan.ma@intel.com>
This commit is contained in:
Yan Ma
2026-09-20 14:00:31 +08:00
committed by GitHub
parent 601e1c7c51
commit d05da62e9c
@@ -167,6 +167,8 @@ def _log_gdn_backend_decision(
head_k_dim,
)
return
elif current_platform.is_xpu():
return
chosen = {
"flashinfer": "FlashInfer",
@@ -524,6 +526,8 @@ class QwenGatedDeltaNetAttention(GatedDeltaNetAttention):
self.gdn_decode_kernel = "triton"
elif current_platform.is_cpu():
self.gdn_decode_kernel = "CPU"
elif current_platform.is_xpu():
self.gdn_decode_kernel = "XPU"
self.enable_fused_gdn_decode = self.gdn_decode_kernel == "cuda"
logger.info_once("GDN decode kernel: %s", self.gdn_decode_kernel)