vllm.multimodal.profiling
BaseDummyInputsBuilder
¶
Abstract base class that constructs the dummy data to profile multi-modal models.
Source code in vllm/multimodal/profiling.py
_get_dummy_audios
¶
_get_dummy_images
¶
_get_dummy_videos
¶
Source code in vllm/multimodal/profiling.py
get_dummy_mm_data
abstractmethod
¶
get_dummy_mm_data(
seq_len: int, mm_counts: Mapping[str, int]
) -> MultiModalDataDict
Build the multimodal input which, after processing, results in the maximum possible number of placeholder tokens.
Source code in vllm/multimodal/profiling.py
get_dummy_processor_inputs
¶
get_dummy_processor_inputs(
seq_len: int, mm_counts: Mapping[str, int]
) -> ProcessorInputs
Build the input which, after processing, results in the maximum possible number of placeholder tokens.
Source code in vllm/multimodal/profiling.py
get_dummy_text
abstractmethod
¶
DummyDecoderData
¶
DummyEncoderData
¶
MultiModalProfiler
¶
Contains code for running memory profiling for multi-modal models.
Source code in vllm/multimodal/profiling.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
|
__init__
¶
__init__(processor: BaseMultiModalProcessor[_I]) -> None
_get_dummy_mm_inputs
¶
_get_dummy_mm_inputs(
seq_len: int,
mm_counts: Optional[Mapping[str, int]] = None,
) -> MultiModalInputs
Source code in vllm/multimodal/profiling.py
_get_mm_num_tokens
¶
_get_mm_num_tokens(
mm_inputs: MultiModalInputs,
) -> Mapping[str, int]
Source code in vllm/multimodal/profiling.py
get_decoder_dummy_data
¶
get_decoder_dummy_data(
seq_len: int,
mm_counts: Optional[Mapping[str, int]] = None,
) -> DummyDecoderData
Source code in vllm/multimodal/profiling.py
get_encoder_dummy_data
¶
get_encoder_dummy_data(
seq_len: int,
mm_counts: Optional[Mapping[str, int]] = None,
) -> DummyEncoderData
Source code in vllm/multimodal/profiling.py
get_mm_limits
¶
ProcessorInputs
dataclass
¶
Represents the keyword arguments to
vllm.multimodal.processing.BaseMultiModalProcessor.apply
.