Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vllm_ascend/worker/model_runner_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,10 @@ def _dummy_run(
)

# Padding for DP
num_pad, num_tokens_across_dp_native = self.get_dp_padding(num_tokens)
# num_tokens += num_pad ## Uncomment this after TorchAir is removed

# Padding for DP (for TorchAir)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this _get_forward_metadata_across_dp_and_pad function not for torchair, this method can be rewritten in torchair runner

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, will figure out a way to merge these two paths.

(num_tokens, num_tokens_across_dp, with_prefill,
_) = self._get_forward_metadata_across_dp_and_pad(
num_tokens, with_prefill, False)
Expand Down
Loading