utils.mistral.mistral3_processor

utils.mistral.mistral3_processor

Processor for Mistral3 multimodal models with image support

Classes

Name Description
Mistral3Processor Processor for Mistral3 multimodal models that handles text and images.

Mistral3Processor

utils.mistral.mistral3_processor.Mistral3Processor(tokenizer)

Processor for Mistral3 multimodal models that handles text and images. Wraps HFMistralTokenizer and adds image processing capabilities.

Attributes

Name Description
audio_tokenizer Audio tokenizer is not supported. Dummy method to satisfy HuggingFace API.

Methods

Name Description
apply_chat_template Apply chat template with image support for Mistral3.
apply_chat_template
utils.mistral.mistral3_processor.Mistral3Processor.apply_chat_template(
    conversation,
    **kwargs,
)

Apply chat template with image support for Mistral3.

Similar to VoxtralProcessor, this method extracts images from the conversation, calls the tokenizer’s apply_chat_template, then adds pixel_values and image_sizes to the result.