Convert formatting to use ruff instead of yapf + isort (#26247)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
from vllm.model_executor.layers.shared_fused_moe.shared_fused_moe import (
|
||||
SharedFusedMoE)
|
||||
from vllm.model_executor.layers.shared_fused_moe.shared_fused_moe import SharedFusedMoE
|
||||
|
||||
__all__ = ["SharedFusedMoE"]
|
||||
|
||||
@@ -40,8 +40,11 @@ class SharedFusedMoE(FusedMoE):
|
||||
|
||||
# Reduce outputs if necessary, since the MLP should
|
||||
# have been created with reduce_results=False.
|
||||
if (self.reduce_results and self.tp_size > 1
|
||||
and self.must_reduce_shared_expert_outputs()):
|
||||
if (
|
||||
self.reduce_results
|
||||
and self.tp_size > 1
|
||||
and self.must_reduce_shared_expert_outputs()
|
||||
):
|
||||
shared_out = tensor_model_parallel_all_reduce(shared_out)
|
||||
|
||||
fused_out = super().forward(
|
||||
|
||||
Reference in New Issue
Block a user