Skip to content

Commit a60a54a

Browse files
tlrmchlsmthDamonFool
authored andcommitted
[Bugfix] Fix use_direct_call condition in FusedMoE layer for (vllm-project#14382)
Signed-off-by: Tyler Michael Smith <[email protected]>
1 parent aa26b1e commit a60a54a

File tree

1 file changed

+1
-1
lines changed
  • vllm/model_executor/layers/fused_moe

1 file changed

+1
-1
lines changed

vllm/model_executor/layers/fused_moe/layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def __init__(
359359

360360
# For smuggling this layer into the fused moe custom op
361361
self.use_direct_call = self.dp_size == 1
362-
if self.use_direct_call:
362+
if not self.use_direct_call:
363363
compilation_config = vllm_config.compilation_config
364364
if prefix in compilation_config.static_forward_context:
365365
raise ValueError("Duplicate layer name: {}".format(prefix))

0 commit comments

Comments
 (0)