mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-03 18:40:56 +08:00
[Bugfix] Fix use_direct_call condition in FusedMoE layer for (#14382)
Signed-off-by: Tyler Michael Smith <tyler@neuralmagic.com>
This commit is contained in:
parent
99b0915d3b
commit
958adce478
@ -359,7 +359,7 @@ class FusedMoE(torch.nn.Module):
|
||||
|
||||
# For smuggling this layer into the fused moe custom op
|
||||
self.use_direct_call = self.dp_size == 1
|
||||
if self.use_direct_call:
|
||||
if not self.use_direct_call:
|
||||
compilation_config = vllm_config.compilation_config
|
||||
if prefix in compilation_config.static_forward_context:
|
||||
raise ValueError("Duplicate layer name: {}".format(prefix))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user