vllm.transformers_utils.processors.bagel ¶
BAGEL processor for image and text inputs.
BagelProcessor ¶
Bases: ProcessorMixin
Constructs a BAGEL processor which wraps a SigLIP image processor and a Qwen2 tokenizer.
Source code in vllm/transformers_utils/processors/bagel.py
image_processor_class class-attribute instance-attribute ¶
__call__ ¶
__call__(
text: TextInput
| PreTokenizedInput
| list[TextInput]
| list[PreTokenizedInput] = None,
images: ImageInput = None,
**kwargs,
)
Main method to prepare for the model one or several sequences(s) and image(s).
Source code in vllm/transformers_utils/processors/bagel.py
batch_decode ¶
This method forwards all its arguments to Qwen2TokenizerFast's batch_decode.
decode ¶
This method forwards all its arguments to Qwen2TokenizerFast's decode.