Skip to content

[Feature]: Generalized the DP feature for ViT and multimodal backbone for the benefit of all models #22743

@tjtanaa

Description

@tjtanaa

🚀 The feature, motivation and pitch

The existing PRs

Has clearly shown that hybrid inferencing: (ViT is DP, and LLM is in TP), has greatly reduce the TTFT and improve the overall throughput significantly.

There are multiple reasons that we should have ViT implemented as a DP:

  1. The ViT are small models, the TP all reduce incurred a larger overhead than the gain from accelerating through TP.
  2. ViT are not captured in cuda graphs or torch compile graph, thus the kernel overhead and all reduce overhead will be higher.

Extending the support to more models:

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions