[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 <xleoken@163.com>
This commit is contained in:
1 parent
6335fe39ea
commit
d91c6daf89
2 files changed
+3
-3
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user