nemo_automodel.components.models.ministral_bidirectional.reranker_model
nemo_automodel.components.models.ministral_bidirectional.reranker_model
Portable Transformers implementation of pooled Mistral3 sequence scoring.
Module Contents
Classes
API
Bases: Mistral3PreTrainedModel
Mistral3 backbone with masked pooling and an FP32 scoring projection.
Score tokenized text or multimodal pairs.
Parameters:
Integer tensor of shape [batch, sequence].
Padding mask of shape [batch, sequence]; required for pooling.
Optional image tensor of shape [images, channels, height, width].
Optional integer tensor of shape [images, 2], height then width.
Optional integer tensor of shape [batch, sequence].
Additional Mistral3Model inputs, following its forward tensor contract.
Returns: SequenceClassifierOutputWithPast
Classifier output with raw, unscaled FP32 logits of shape [batch, num_labels].
Load the shared classifier head without changing global Transformers conversion mappings.