Skip to content

[BugFix]: Avoid unnecessary coordination for non-MoE data parallel #24461

Description

@njhill

🚀 The feature, motivation and pitch

Currently, when DP is enabled, we assume the model uses EP or TP for expert layers and as such enable additional synchronization so that dummy forward passes are done in idle ranks when necessary, and certain metadata is shared before each forward pass.

However, this is also done for non-MoE models unnecessarily, which results in unnecessary additional overhead. We should ensure that the extra DP-related sync isn't done in this case.

We do probably still want the DPCoordinator to run, since we'll still want it to propagate the load-balancing stats.

Alternatives

We could consider hard-failing in this situation to avoid folks unintentionally using vLLM with sub-par performance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions