perf: use multicast to avoid padding decode request to prefill size (#1555)

### What this PR does / why we need it?
perf: use multicast to avoid padding decode request to prefill size

### How was this patch tested?

- vLLM version: v0.9.1
- vLLM main:
https://github.com/vllm-project/vllm/commit/1fd471e957526a34a0cb4b60d2e830cd6ca79fdc

Signed-off-by: boying <897013703@qq.com>
This commit is contained in:
NeverRaR authored and GitHub committed 2025-07-07 22:36:03 +08:00
1 parent f08c4f15a2
commit df84cceca8
3 files changed
+81 -34

No files matched your search

+3 -1
View File
@@ -780,7 +780,9 @@ class AscendW8A8DynamicFusedMoEMethod:
log2phy=log2phy,
global_redundant_expert_num=global_redundant_expert_num,
shared_experts=shared_experts)
elif fused_moe_state == FusedMoEState.AllGather:
elif fused_moe_state in [
FusedMoEState.AllGather, FusedMoEState.NaiveMulticast
]:
return fused_experts(hidden_states=x,
w1=layer.w13_weight,
w1_scale=layer.w13_weight_scale,