From 92f5d0f070ec9e0ca5fe72af672138a9bbd1cb68 Mon Sep 17 00:00:00 2001 From: Kunshang Ji Date: Mon, 2 Mar 2026 11:48:39 +0800 Subject: [PATCH] [XPU] fix mxfp4 activation type (#35691) Signed-off-by: Kunshang Ji --- vllm/model_executor/layers/quantization/mxfp4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/model_executor/layers/quantization/mxfp4.py b/vllm/model_executor/layers/quantization/mxfp4.py index 0ad1b89312..8856eb1e2e 100644 --- a/vllm/model_executor/layers/quantization/mxfp4.py +++ b/vllm/model_executor/layers/quantization/mxfp4.py @@ -1258,7 +1258,7 @@ class XpuMxfp4MoEMethod(Mxfp4MoEMethod): topk_weights=routing_weights, topk_ids=selected_experts, n_experts_per_token=layer.top_k, - activation=layer.activation, + activation=layer.activation.value, num_experts=layer.local_num_experts, is_mxfp4=True, )