Skip to content

Commit 433f3d8

Browse files
committed
update
Signed-off-by: Xu Song <xusong.vip@gmail.com>
1 parent 466166d commit 433f3d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vllm/model_executor/layers/sampler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,8 +1197,7 @@ def _get_next_prompt_tokens(
11971197
prompt_tokens = seq_data.prompt_token_ids
11981198
# +1 because we are looking for a next prompt token.
11991199
next_token_index_start = computed_len + 1
1200-
next_token_index_end = min(computed_len + query_len + 1,
1201-
len(prompt_tokens))
1200+
next_token_index_end = min(computed_len + query_len, len(prompt_tokens))
12021201
next_prompt_tokens = prompt_tokens[
12031202
next_token_index_start:next_token_index_end]
12041203
return next_prompt_tokens

0 commit comments

Comments
 (0)