Skip to content

Commit 99c8489

Browse files
committed
fix: add assertion for num_tokens_across_dp in NPUModelRunner
Signed-off-by: Jade Zheng <zheng.shoujian@outlook.com>
1 parent 14117c8 commit 99c8489

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vllm_ascend/worker/model_runner_v1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ def _process_reqs(
11171117
dummy_num_tokens = 1
11181118

11191119
if self.dp_size > 1:
1120+
assert num_tokens_across_dp is not None
11201121
num_tokens_across_dp.masked_fill_(num_tokens_across_dp == -1,
11211122
dummy_num_tokens)
11221123

0 commit comments

Comments
 (0)