From d91c6daf891158d11113767bd85c0fe1eae2cde9 Mon Sep 17 00:00:00 2001 From: xleoken Date: Tue, 19 Aug 2025 11:00:18 +0800 Subject: [PATCH] [improve] Remove redundant parentheses in pangu_moe.py (#2081) ### What this PR does / why we need it? Remove redundant parentheses in pangu_moe.py. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Local. - vLLM version: v0.10.0 - vLLM main: https://github.com/vllm-project/vllm/commit/099c0464637f330f8ea38b07fe0694717c16d815 Signed-off-by: xleoken --- setup.py | 2 +- vllm_ascend/models/pangu_moe.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 0ceb2e4..351efa1 100644 --- a/setup.py +++ b/setup.py @@ -364,7 +364,7 @@ setup( version=VERSION, author="vLLM-Ascend team", license="Apache 2.0", - description=("vLLM Ascend backend plugin"), + description="vLLM Ascend backend plugin", long_description=read_readme(), long_description_content_type="text/markdown", url="https://github.com/vllm-project/vllm-ascend", diff --git a/vllm_ascend/models/pangu_moe.py b/vllm_ascend/models/pangu_moe.py index bf0f948..1dfbcf8 100644 --- a/vllm_ascend/models/pangu_moe.py +++ b/vllm_ascend/models/pangu_moe.py @@ -122,7 +122,7 @@ class CustomMergedColumnParallelLinear(LinearBase): input_size=self.input_size, output_size=self.output_size, params_dtype=self.params_dtype, - weight_loader=(self.weight_loader)) + weight_loader=self.weight_loader) if bias: self.bias = Parameter( torch.empty(self.output_size_per_partition, @@ -227,7 +227,7 @@ class CustomRowParallelLinear(LinearBase): input_size=self.input_size, output_size=self.output_size, params_dtype=self.params_dtype, - weight_loader=(self.weight_loader)) + weight_loader=self.weight_loader) if not reduce_results and (bias and not skip_bias_add): raise ValueError("When not reduce the results, adding bias to the " "results can lead to incorrect results")