Skip to content

Commit 1847568

Browse files
committed
fix: change num_tokens_across_dp type from int to torch.Tensor
Signed-off-by: Jade Zheng <zheng.shoujian@outlook.com>
1 parent 62c12ca commit 1847568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm_ascend/worker/model_runner_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ def _dummy_run(
17791779
is_compile: bool = False,
17801780
with_prefill: bool = True,
17811781
skip_attn: bool = True,
1782-
num_tokens_across_dp: Optional[int] = None,
1782+
num_tokens_across_dp: Optional[torch.Tensor] = None,
17831783
) -> torch.Tensor:
17841784
# Set num_scheduled_tokens based on num_tokens and max_num_seqs
17851785
# for dummy run with LoRA so that the num_reqs collectively

0 commit comments

Comments
 (0)