Skip to content

Commit 061e2c5

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 dada008 commit 061e2c5

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
@@ -1810,7 +1810,7 @@ def _dummy_run(
18101810
is_compile: bool = False,
18111811
with_prefill: bool = True,
18121812
skip_attn: bool = True,
1813-
num_tokens_across_dp: Optional[int] = None,
1813+
num_tokens_across_dp: Optional[torch.Tensor] = None,
18141814
) -> torch.Tensor:
18151815
# Set num_scheduled_tokens based on num_tokens and max_num_seqs
18161816
# for dummy run with LoRA so that the num_reqs collectively

0 commit comments

Comments
 (0)