Skip to content

Commit 6db3cf9

Browse files
author
Roger Wang
committed
update
Signed-off-by: Roger Wang <[email protected]> Signed-off-by: Roger Wang <[email protected]>
1 parent 51fe71c commit 6db3cf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm/v1/engine/processor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ def _validate_model_input(
470470
else:
471471
tokenizer = self.tokenizer.get_lora_tokenizer(lora_request)
472472
max_input_id = max(prompt_ids, default=0)
473-
if max_input_id > self.model_config.get_vocab_size() - 1:
473+
if max_input_id > max(tokenizer.max_token_id,
474+
self.model_config.get_vocab_size() - 1):
474475
raise ValueError(
475476
f"Token id {max_input_id} is out of vocabulary")
476477

0 commit comments

Comments
 (0)