Skip to content

Add super kernel in moe #1877

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 1 commit into
base: v0.9.1-dev
Choose a base branch
from
Open

Conversation

NNUCJ
Copy link

@NNUCJ NNUCJ commented Jul 18, 2025

What this PR does / why we need it?

Reduce the scheduling overhead of MOE operator on devices through super_kernel

Does this PR introduce any user-facing change?

How was this patch tested?

The superkernel feature is also controlled through “enable_rultistream_mae“, which is set to True to enable the superkernel
The example is as follows

 llm = LLM(
        model=model,
        tensor_parallel_size=GPUs_per_dp_rank,
        # enforce_eager=True,
        max_num_seqs=12,
        max_model_len=4600,
        max_num_batched_tokens=4600,
        gpu_memory_utilization=0.85,
        enable_expert_parallel=True,
        trust_remote_code=True,
        enable_prefix_caching=False,
        additional_config={
            'ascend_scheduler_config': {'enabled': True},
            'torchair_graph_config': {'enabled': True, 'enable_multistream_moe': True, 'enable_multistream_mla': True, "graph_batch_sizes": [12], "enable_kv_nz": True},
        }
    )

Signed-off-by: NNUCJ <616151263@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.

1 participant