vllm.multimodal.processing.dummy_inputs
¶
Classes:
-
BaseDummyInputsBuilder–Abstract base class that constructs the dummy data to profile
BaseDummyInputsBuilder
¶
Abstract base class that constructs the dummy data to profile multi-modal models.
Methods:
-
get_dummy_mm_data–Build the multimodal input which, after processing, results in
-
get_dummy_text–Build the text input corresponding to
mm_counts.
get_dummy_mm_data(seq_len, mm_counts, mm_options)
abstractmethod
¶
Build the multimodal input which, after processing, results in the maximum possible number of placeholder tokens.
Parameters:
-
(seq_len¶int) –Sequence length
-
(mm_counts¶Mapping[str, int]) –Count of items per modality
-
(mm_options¶MultiModalDummyOptions) –Configurable options per modality (optional). If None, use model defaults for backward compatibility. If provided, models can use these to customize dummy data generation.
get_dummy_text(mm_counts)
abstractmethod
¶
Build the text input corresponding to mm_counts.