Skip to content

Commit 12e5a9a

Browse files
committed
Rename _get_dummy_mm_inputs
Signed-off-by: DarkLight1337 <[email protected]>
1 parent 0899dce commit 12e5a9a

File tree

13 files changed

+32
-21
lines changed

13 files changed

+32
-21
lines changed

tests/multimodal/test_processing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,10 @@ def _test_processing_cache_correctness(
723723
}
724724

725725
mm_counts = {k: len(vs) for k, vs in mm_data.items()}
726-
prompt = baseline_processor._get_dummy_mm_inputs(mm_counts).prompt_text
726+
prompt = baseline_processor._get_dummy_processor_inputs(
727+
model_config.max_model_len,
728+
mm_counts,
729+
).prompt_text
727730

728731
# Drop unnecessary keys and test single -> multi conversion
729732
if rng.rand() < simplify_rate:

vllm/model_executor/models/aria.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def _get_prompt_replacements(
488488
)
489489
]
490490

491-
def _get_dummy_mm_inputs(
491+
def _get_dummy_processor_inputs(
492492
self,
493493
seq_len: int,
494494
mm_counts: Mapping[str, int],

vllm/model_executor/models/blip2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def apply(
457457

458458
return result
459459

460-
def _get_dummy_mm_inputs(
460+
def _get_dummy_processor_inputs(
461461
self,
462462
seq_len: int,
463463
mm_counts: Mapping[str, int],

vllm/model_executor/models/chameleon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _get_prompt_replacements(
9090
)
9191
]
9292

93-
def _get_dummy_mm_inputs(
93+
def _get_dummy_processor_inputs(
9494
self,
9595
seq_len: int,
9696
mm_counts: Mapping[str, int],

vllm/model_executor/models/fuyu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def apply(
208208

209209
return result
210210

211-
def _get_dummy_mm_inputs(
211+
def _get_dummy_processor_inputs(
212212
self,
213213
seq_len: int,
214214
mm_counts: Mapping[str, int],

vllm/model_executor/models/llava.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _get_dummy_image_size(self) -> ImageSize:
149149
def _get_image_token(self) -> str:
150150
raise NotImplementedError
151151

152-
def _get_dummy_mm_inputs(
152+
def _get_dummy_processor_inputs(
153153
self,
154154
seq_len: int,
155155
mm_counts: Mapping[str, int],

vllm/model_executor/models/llava_next_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_replacement(item_idx: int):
162162
),
163163
]
164164

165-
def _get_dummy_mm_inputs(
165+
def _get_dummy_processor_inputs(
166166
self,
167167
seq_len: int,
168168
mm_counts: Mapping[str, int],

vllm/model_executor/models/llava_onevision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def get_video_replacement(item_idx: int):
296296
),
297297
]
298298

299-
def _get_dummy_mm_inputs(
299+
def _get_dummy_processor_inputs(
300300
self,
301301
seq_len: int,
302302
mm_counts: Mapping[str, int],

vllm/model_executor/models/phi3v.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def _apply_prompt_replacements(
442442

443443
return token_ids, text, placeholders
444444

445-
def _get_dummy_mm_inputs(
445+
def _get_dummy_processor_inputs(
446446
self,
447447
seq_len: int,
448448
mm_counts: Mapping[str, int],

vllm/model_executor/models/qwen2_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _always_apply_prompt_replacements(self) -> bool:
191191
# tokens than the number of audio items)
192192
return True
193193

194-
def _get_dummy_mm_inputs(
194+
def _get_dummy_processor_inputs(
195195
self,
196196
seq_len: int,
197197
mm_counts: Mapping[str, int],

0 commit comments

Comments
 (0)