feat: Support DP Attention for step3_vl #8699
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Support DP Attention for step3_vl
Modifications
In the implementation prior to
step3_vl
, DP Attention was already supported for the LLM.This update extends DP Attention support to the vision model component of the VLM.
In
vision.py
,world_size
andtp_size
have been replaced withattn_tp_size
. This change does not affect VLM models that previously used standard tensor parallelism.For the vision model in
step3_vl
, when DP Attention is enabled:In other words, each Attn TP Group (i.e., DP Group) loads a full copy of the vision model.
Please note that this setup may not reflect best practice, and is intended solely to ensure that DP Attention can function correctly in step3_vl.
Accuracy Test
Benchmark & Profiling
Checklist