Skip to content

Commit 0484b64

Browse files
[Bug] Fix shape issue for eplb expert weights (#27589)
Signed-off-by: yewentao256 <[email protected]> Co-authored-by: Cyrus Leung <[email protected]>
1 parent f58d9b6 commit 0484b64

File tree

1 file changed

+2
-0
lines changed
  • vllm/model_executor/layers/fused_moe

1 file changed

+2
-0
lines changed

vllm/model_executor/layers/fused_moe/layer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,8 @@ def get_expert_weights(self) -> Iterable[torch.Tensor]:
19591959
if name not in NON_EXPERT_WEIGHTS
19601960
and weight.shape != torch.Size([])
19611961
and not name.startswith("_shared_experts.")
1962+
# exclude parameters from non-expert submodules (e.g. gate/shared)
1963+
and not name.startswith("_gate.")
19621964
]
19631965

19641966
def set_eplb_state(

0 commit comments

Comments
 (0)