mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-06-02 00:17:54 +08:00
[Bug] Fix shape issue for eplb expert weights (#27589)
Signed-off-by: yewentao256 <zhyanwentao@126.com> Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
parent
f58d9b6404
commit
0484b64248
@ -1959,6 +1959,8 @@ class FusedMoE(CustomOp):
|
|||||||
if name not in NON_EXPERT_WEIGHTS
|
if name not in NON_EXPERT_WEIGHTS
|
||||||
and weight.shape != torch.Size([])
|
and weight.shape != torch.Size([])
|
||||||
and not name.startswith("_shared_experts.")
|
and not name.startswith("_shared_experts.")
|
||||||
|
# exclude parameters from non-expert submodules (e.g. gate/shared)
|
||||||
|
and not name.startswith("_gate.")
|
||||||
]
|
]
|
||||||
|
|
||||||
def set_eplb_state(
|
def set_eplb_state(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user