@@ -88,6 +88,12 @@ def __init__(self) -> None:
8888
8989 self ._processing_cache = ProcessingCache (VLLM_MM_INPUT_CACHE_GIB )
9090
91+ def reset_processor_cache (self ) -> bool :
92+ """Reset the multi-modal processing cache."""
93+ self ._processing_cache .reset ()
94+
95+ return True # Success
96+
9197 @deprecated ("Legacy input processor/mapper pipeline has been removed. "
9298 "Please update your model runner to use "
9399 "`seq_group_metadata.multi_modal_data` directly without "
@@ -106,7 +112,7 @@ def get_max_tokens_per_item_by_modality(
106112 if not model_config .is_multimodal_model :
107113 return {}
108114
109- processor = self .create_processor (model_config , disable_cache = True )
115+ processor = self .create_processor (model_config , disable_cache = False )
110116 profiler = MultiModalProfiler (processor )
111117
112118 seq_len = model_config .max_model_len
@@ -190,7 +196,7 @@ def get_mm_limits_per_prompt(
190196 if not model_config .is_multimodal_model :
191197 return {}
192198
193- processor = self .create_processor (model_config , disable_cache = True )
199+ processor = self .create_processor (model_config , disable_cache = False )
194200 profiler = MultiModalProfiler (processor )
195201 return profiler .get_mm_limits ()
196202
@@ -286,7 +292,7 @@ def get_decoder_dummy_data(
286292
287293 The model is identified by ``model_config``.
288294 """
289- processor = self .create_processor (model_config , disable_cache = True )
295+ processor = self .create_processor (model_config , disable_cache = False )
290296 profiler = MultiModalProfiler (processor )
291297 dummy_data = profiler .get_decoder_dummy_data (seq_len , mm_counts )
292298
@@ -310,7 +316,7 @@ def get_encoder_dummy_data(
310316
311317 The model is identified by ``model_config``.
312318 """
313- processor = self .create_processor (model_config , disable_cache = True )
319+ processor = self .create_processor (model_config , disable_cache = False )
314320 profiler = MultiModalProfiler (processor )
315321 dummy_data = profiler .get_encoder_dummy_data (seq_len , mm_counts )
316322
0 commit comments