Skip to content

[perf]Support MOE Multi-stream in Deepseek #947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

David9857
Copy link

What this PR does / why we need it?

Support MOE inner Multi-stream for Deepseek

Does this PR introduce any user-facing change?

How was this patch tested?

@David9857 David9857 changed the title [perf][WIP] Support MOE Multi-stream in Deepseek [perf]Support MOE Multi-stream in Deepseek May 26, 2025
Signed-off-by: David9857 <985700846@qq.com>
global_bs = 0
moe_expert_num = len(expert_map)
# hidden_states = hidden_states.bfloat16()
kwargs = {
kwargs1 = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to a readable name

@@ -36,6 +36,8 @@
lambda: bool(int(os.getenv("COMPILE_CUSTOM_KERNELS", "1"))),
"VLLM_ENABLE_MC2":
lambda: bool(int(os.getenv("VLLM_ENABLE_MC2", '0'))),
"VLLM_ENABLE_CV_PARALLEL":
Copy link
Collaborator

@wangxiyuan wangxiyuan May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use additional_config instead of env, since this change is only used for torchair GE mode. like #839 does, there are another 3 new config option coming.

how about

{
   "additional_config": {
      "torchair_graph_config": {
         "enable": True,
         "enable_cv_parallet": True,
         "batch_sizes": "12345",
         "batch_sizes_init": True
      } 
  }
}

cc @zzzzwwjj

@wangxiyuan
Copy link
Collaborator

wangxiyuan commented May 29, 2025

David9857 added 3 commits May 29, 2025 22:10
Signed-off-by: David9857 <985700846@qq.com>
Signed-off-by: David9857 <985700846@qq.com>
Signed-off-by: David9857 <985700846@qq.com>
Signed-off-by: David9857 <985700846@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants