Skip to content

Commit caaf6c9

Browse files
authored
[v0.9.1][bugfix] fix deepseek with mc2 (#1269)
<!-- Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ https://docs.vllm.ai/en/latest/contributing/overview.html --> ### What this PR does / why we need it? <!-- - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Fixes # --> ### Does this PR introduce _any_ user-facing change? <!-- Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. Documentation-only updates are not considered user-facing changes. --> ### How was this patch tested? <!-- CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. --> Signed-off-by: zzzzwwjj <1183291235@qq.com>
1 parent 733b0a2 commit caaf6c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm_ascend/ops/fused_moe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,8 @@ def forward(self,
11861186
enable_force_load_balance=enable_force_load_balance,
11871187
log2phy=self.log2phy,
11881188
global_redundant_expert_num=self.global_redundant_expert_num,
1189-
shared_experts=shared_experts,
1189+
shared_experts=shared_experts if self.torchair_graph_enabled
1190+
and self.enable_multistream_moe and not is_prefill else None,
11901191
)
11911192

11921193
if shared_experts:

0 commit comments

Comments
 (0)