File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2062,7 +2062,7 @@ def _validate_model_input(
2062
2062
raise ValueError (f"The { prompt_type } prompt cannot be empty" )
2063
2063
2064
2064
max_prompt_len = self .model_config .max_model_len
2065
- if len (prompt_ids ) >= max_prompt_len :
2065
+ if len (prompt_ids ) > max_prompt_len :
2066
2066
if prompt_type == "encoder" and model_config .is_multimodal_model :
2067
2067
mm_registry = self .input_preprocessor .mm_registry
2068
2068
mm_processor = mm_registry .create_processor (
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ def _validate_model_input(
354
354
raise ValueError (f"Token id { max_input_id } is out of vocabulary" )
355
355
356
356
max_prompt_len = self .model_config .max_model_len
357
- if len (prompt_ids ) >= max_prompt_len :
357
+ if len (prompt_ids ) > max_prompt_len :
358
358
if prompt_type == "encoder" and model_config .is_multimodal_model :
359
359
mm_registry = self .input_preprocessor .mm_registry
360
360
mm_processor = mm_registry .create_processor (
You can’t perform that action at this time.
0 commit comments