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(
20622062 raise ValueError (f"The { prompt_type } prompt cannot be empty" )
20632063
20642064 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 :
20662066 if prompt_type == "encoder" and model_config .is_multimodal_model :
20672067 mm_registry = self .input_preprocessor .mm_registry
20682068 mm_processor = mm_registry .create_processor (
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ def _validate_model_input(
354354 raise ValueError (f"Token id { max_input_id } is out of vocabulary" )
355355
356356 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 :
358358 if prompt_type == "encoder" and model_config .is_multimodal_model :
359359 mm_registry = self .input_preprocessor .mm_registry
360360 mm_processor = mm_registry .create_processor (
You can’t perform that action at this time.
0 commit comments