We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51fe71c commit 6db3cf9Copy full SHA for 6db3cf9
vllm/v1/engine/processor.py
@@ -470,7 +470,8 @@ def _validate_model_input(
470
else:
471
tokenizer = self.tokenizer.get_lora_tokenizer(lora_request)
472
max_input_id = max(prompt_ids, default=0)
473
- if max_input_id > self.model_config.get_vocab_size() - 1:
+ if max_input_id > max(tokenizer.max_token_id,
474
+ self.model_config.get_vocab_size() - 1):
475
raise ValueError(
476
f"Token id {max_input_id} is out of vocabulary")
477
0 commit comments