diff --git a/python/sglang/srt/hardware_backend/npu/quantization/moe_methods.py b/python/sglang/srt/hardware_backend/npu/quantization/moe_methods.py index f08d1af6c..f49d53534 100644 --- a/python/sglang/srt/hardware_backend/npu/quantization/moe_methods.py +++ b/python/sglang/srt/hardware_backend/npu/quantization/moe_methods.py @@ -332,7 +332,7 @@ class NPUW8A8Int8MoEMethod(_NPUMoEMethodBase): # Process weight weight: torch.Tensor = getattr(layer, f"{weight_prefix}_weight") - weight.data = npu_format_cast(weight.data.transpose(1, 2)) + weight.data = npu_format_cast(weight.data.transpose(1, 2).contiguous()) # Set dispatcher output dtype if weight_prefix == "w13":