Skip to content

vllm.multimodal.registry

Classes:

DummyInputsBuilderFactory

Bases: Protocol[_I]

Constructs a BaseDummyInputsBuilder instance from the context.

MultiModalProcessorFactory

Bases: Protocol[_I]

Constructs a BaseMultiModalProcessor instance from the context.

MultiModalRegistry

A registry that dispatches data processing according to the model.

Methods:

  • create_processor –

    Create a multi-modal processor for a specific model and tokenizer.

  • register_processor –

    Register a multi-modal processor to a model class. The processor

create_processor(model_config, *, tokenizer=None)

Create a multi-modal processor for a specific model and tokenizer.

register_processor(processor, *, info, dummy_inputs)

Register a multi-modal processor to a model class. The processor is constructed lazily, hence a factory method should be passed.

When the model receives multi-modal data, the provided function is invoked to transform the data into a dictionary of model inputs.

ProcessingInfoFactory

Bases: Protocol[_I_co]

Constructs a BaseMultiModalProcessor instance from the context.