
    %	&hPm                        d dl mZ d dlmZmZmZmZ d dlZd dlmZ ddl	m
Z
 ddlmZ ddlmZ dd	lmZ dd
lmZmZmZmZ ddlmZ ddlmZmZ ddlmZ dZ G d dej<                        Z G d dej<                        Z  G d dej<                        Z!e G d de             Z"dZ# ede#       G d de             Z$dZ% ede#       G d d e$e             Z&dd gZ'y)!    )	dataclass)ListOptionalTupleUnionN)nn   )ACT2FN)GenerationMixin)ModelOutput)PreTrainedModel)add_start_docstrings%add_start_docstrings_to_model_forwardis_torchdynamo_compilingreplace_return_docstrings)deprecate_kwarg   )	AutoModelAutoModelForCausalLM   )Mistral3Configr   c                   ,     e Zd Zd fd	Zd Zd Z xZS )Mistral3RMSNormc                     t         |           t        j                  t	        j
                  |            | _        || _        y)z>
        Mistral3RMSNorm is equivalent to T5LayerNorm
        N)super__init__r   	Parametertorchonesweightvariance_epsilon)selfhidden_sizeeps	__class__s      /var/www/pru.catia.catastroantioquia-mas.com/valormas/lib/python3.12/site-packages/transformers/models/mistral3/modeling_mistral3.pyr   zMistral3RMSNorm.__init__/   s1     	ll5::k#:; #    c                 "   |j                   }|j                  t        j                        }|j	                  d      j                  dd      }|t        j                  || j                  z         z  }| j                  |j                  |      z  S )Nr   T)keepdim)	dtypetor   float32powmeanrsqrtr!   r    )r"   hidden_statesinput_dtypevariances       r&   forwardzMistral3RMSNorm.forward7   sy    #))%((7 $$Q',,R,>%Ht?T?T4T(UU{{]--k:::r'   c                 ^    t        | j                  j                         d| j                   S )Nz, eps=)tupler    shaper!   r"   s    r&   
extra_reprzMistral3RMSNorm.extra_repr>   s*    ))*+6$2G2G1HIIr'   )gư>)__name__
__module____qualname__r   r4   r9   __classcell__r%   s   @r&   r   r   .   s    $;Jr'   r   c                   x     e Zd ZdZdef fdZdej                  dej                  dej                  fdZ xZ	S )Mistral3PatchMergerz<
    Learned merging of spatial_merge_size ** 2 patches
    configc                 "   t         |           || _        |j                  j                  }|j
                  | _        | j                  j                  j                  | _        t        j                  || j
                  dz  z  |d      | _	        y )Nr   Fbias)
r   r   rA   vision_configr#   spatial_merge_size
patch_sizer   Linearmerging_layer)r"   rA   r#   r%   s      r&   r   zMistral3PatchMerger.__init__G   sr    **66"(";";++33>>YY{T5L5La5O'OQ\chir'   image_featuresimage_sizesreturnc                    |D cg c]&  }|d   | j                   z  |d   | j                   z  f( }}|D cg c]
  \  }}||z   }}}|j                  d   }g }t        |j                  |            D ]  \  }	}
||	   \  }}|
j	                  |||      j                  ddd      j                  d      }t        j                  j                  j                  || j                  | j                        }|j	                  || j                  dz  z  d      j                         }|j                  |        t        j                  |d      }| j                  |      }|S c c}w c c}}w )Nr   r   r)   r   )kernel_sizestridedim)rG   r7   	enumeratesplitviewpermute	unsqueezer   r   
functionalunfoldrF   tappendcatrI   )r"   rJ   rK   
image_sizehwtokens_per_imagedpermuted_tensorimage_indeximage_tokens
image_gridgrids                r&   r4   zMistral3PatchMerger.forwardP   sl   cn
U_Z]doo-z!}/OP
 
 /::daAE::  $)2>3G3GHX3Y)Z 	)%K{+DAq%**1a3;;Aq!DNNqQJ88&&--(?(?H_H_ . D 99Q!8!8!!;;R@BBDD""4(	) ?:++N;)
 ;s
   +E"E')
r:   r;   r<   __doc__r   r   r   Tensorr4   r=   r>   s   @r&   r@   r@   B   s?    j~ jell  RWR^R^ r'   r@   c                   \     e Zd Zdef fdZdej                  dej                  fdZ xZS )Mistral3MultiModalProjectorrA   c                 ^   t         |           t        |j                  j                        | _        t        |      | _        t        |j                  t              rdnt        |j                        }t        j                  |j                  j                  |z  |j                  j                  |j                        | _        t"        |j$                     | _        t        j                  |j                  j                  |j                  j                  |j                        | _        y )Nr   rC   )r   r   r   rE   r#   normr@   patch_merger
isinstancevision_feature_layerintlenr   rH   text_configmultimodal_projector_biaslinear_1r
   projector_hidden_actactlinear_2)r"   rA   num_feature_layersr%   s      r&   r   z$Mistral3MultiModalProjector.__init__i   s    #F$8$8$D$DE	/7",V-H-H#"NQTWX^XsXsTt		  ,,/AA**11

 &556		**F,>,>,J,JQWQqQq
r'   rJ   rK   c                     | j                  |      }| j                  ||      }| j                  |      }| j                  |      }| j	                  |      }|S N)rk   rl   rs   ru   rv   )r"   rJ   rK   r1   s       r&   r4   z#Mistral3MultiModalProjector.forwardy   sR    >2**>;Gn5/m4r'   )	r:   r;   r<   r   r   r   rg   r4   r=   r>   s   @r&   ri   ri   h   s*    
~ 
 ell  r'   ri   c                      e Zd ZU dZdZeej                     ed<   dZ	eej                     ed<   dZ
eeej                        ed<   dZeeej                        ed<   dZeeej                        ed<   dZeej                     ed<   y)	Mistral3CausalLMOutputWithPasta  
    Base class for Mistral3 causal language model (or autoregressive) outputs.

    Args:
        loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` is provided):
            Language modeling loss (for next-token prediction).
        logits (`torch.FloatTensor` of shape `(batch_size, sequence_length, config.vocab_size)`):
            Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).
        past_key_values (`tuple(tuple(torch.FloatTensor))`, *optional*, returned when `use_cache=True` is passed or when `config.use_cache=True`):
            Tuple of `tuple(torch.FloatTensor)` of length `config.n_layers`, with each tuple having 2 tensors of shape
            `(batch_size, num_heads, sequence_length, embed_size_per_head)`)

            Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
            `past_key_values` input) to speed up sequential decoding.
        hidden_states (`tuple(torch.FloatTensor)`, *optional*, returned when `output_hidden_states=True` is passed or when `config.output_hidden_states=True`):
            Tuple of `torch.FloatTensor` (one for the output of the embeddings, if the model has an embedding layer, +
            one for the output of each layer) of shape `(batch_size, sequence_length, hidden_size)`.

            Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.
        attentions (`tuple(torch.FloatTensor)`, *optional*, returned when `output_attentions=True` is passed or when `config.output_attentions=True`):
            Tuple of `torch.FloatTensor` (one for each layer) of shape `(batch_size, num_heads, sequence_length,
            sequence_length)`.

            Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
            heads.
        image_hidden_states (`torch.FloatTensor`, *optional*):
            A `torch.FloatTensor` of size (batch_size, num_images, sequence_length, hidden_size)`.
            image_hidden_states of the model produced by the vision encoder and after projecting the last hidden state.
    Nlosslogitspast_key_valuesr1   
attentionsimage_hidden_states)r:   r;   r<   rf   r|   r   r   FloatTensor__annotations__r}   r~   r   r1   r   r   r    r'   r&   r{   r{      s    < )-D(5$$
%,*.FHU&&'.9=OXd5#4#456=8<M8E%"3"345<59Ju001297;%"3"34;r'   r{   ai  
    This model inherits from [`PreTrainedModel`]. Check the superclass documentation for the generic methods the
    library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
    etc.)

    This model is also a PyTorch [torch.nn.Module](https://pytorch.org/docs/stable/nn.html#torch.nn.Module) subclass.
    Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
    and behavior.

    Parameters:
        config ([`Mistral3Config`] or [`Mistral3VisionConfig`]):
            Model configuration class with all the parameters of the model. Initializing with a config file does not
            load the weights associated with the model, only the configuration. Check out the
            [`~PreTrainedModel.from_pretrained`] method to load the model weights.
zSThe bare LLaMA Model outputting raw hidden-states without any specific head on top.c                   <    e Zd ZeZdZdZdgZdZdZ	dZ
dZdZdZd Zy)Mistral3PreTrainedModelmodelTMistral3VisionAttentionr~   c                    t        | j                  d      r| j                  j                  n| j                  j                  j                  }t        |d      r'|j                  j
                  j                  d|       t        |t        j                  t        j                  f      rY|j                  j
                  j                  d|       |j                  %|j                  j
                  j                          y y t        |t        j                        rf|j                  j
                  j                  d|       |j                  2|j                  j
                  |j                     j                          y y y )Ninitializer_rangeclass_embeddingg        )r/   std)hasattrrA   r   rq   r   datanormal_rm   r   rH   Conv2dr    rD   zero_	Embeddingpadding_idx)r"   moduler   s      r&   _init_weightsz%Mistral3PreTrainedModel._init_weights   s!    t{{$78 KK))((:: 	 6,-""''//Sc/Bfryy"))45MM&&CS&9{{&  &&( '-MM&&CS&9!!-""6#5#56<<> . .r'   N)r:   r;   r<   r   config_classbase_model_prefixsupports_gradient_checkpointing_no_split_modules_skip_keys_device_placement_supports_cache_class_supports_flash_attn_2_supports_sdpa_supports_quantized_cache_supports_static_cacher   r   r'   r&   r   r      sF    
 "L&*#23"3 !N $!?r'   r   aK  
    Args:
        input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`):
            Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
            it.

            Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
            [`PreTrainedTokenizer.__call__`] for details.

            [What are input IDs?](../glossary#input-ids)
        pixel_values (`torch.FloatTensor` of shape `(batch_size, num_channels, image_size, image_size)):
            The tensors corresponding to the input images. Pixel values can be obtained using
            [`AutoImageProcessor`]. See [`CLIPImageProcessor.__call__`] for details ([]`Mistral3Processor`] uses
            [`CLIPImageProcessor`] for processing images).
        attention_mask (`torch.Tensor` of shape `(batch_size, sequence_length)`, *optional*):
            Mask to avoid performing attention on padding token indices. Mask values selected in `[0, 1]`:

            - 1 for tokens that are **not masked**,
            - 0 for tokens that are **masked**.

            [What are attention masks?](../glossary#attention-mask)

            Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
            [`PreTrainedTokenizer.__call__`] for details.

            If `past_key_values` is used, optionally only the last `decoder_input_ids` have to be input (see
            `past_key_values`).

            If you want to change padding behavior, you should read [`modeling_opt._prepare_decoder_attention_mask`]
            and modify to your needs. See diagram 1 in [the paper](https://arxiv.org/abs/1910.13461) for more
            information on the default strategy.

            - 1 indicates the head is **not masked**,
            - 0 indicates the head is **masked**.
        position_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
            Indices of positions of each input sequence tokens in the position embeddings. Selected in the range `[0,
            config.n_positions - 1]`. [What are position IDs?](../glossary#position-ids)
        past_key_values (`tuple(tuple(torch.FloatTensor))`, *optional*, returned when `use_cache=True` is passed or when `config.use_cache=True`):
            Tuple of `tuple(torch.FloatTensor)` of length `config.n_layers`, with each tuple having 2 tensors of shape
            `(batch_size, num_heads, sequence_length, embed_size_per_head)`) and 2 additional tensors of shape
            `(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)`.

            Contains pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
            blocks) that can be used (see `past_key_values` input) to speed up sequential decoding.

            If `past_key_values` are used, the user can optionally input only the last `decoder_input_ids` (those that
            don't have their past key value states given to this model) of shape `(batch_size, 1)` instead of all
            `decoder_input_ids` of shape `(batch_size, sequence_length)`.
        inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*):
            Optionally, instead of passing `input_ids` you can choose to directly pass an embedded representation. This
            is useful if you want more control over how to convert `input_ids` indices into associated vectors than the
            model's internal embedding lookup matrix.
        vision_feature_layer (`Union[int, List[int]], *optional*, defaults to -2`):
            The index of the layer to select the vision feature. If multiple indices are provided,
            the vision feature of the corresponding indices will be concatenated to form the
            vision features.
        vision_feature_select_strategy (`str`, *optional*, defaults to `"default"`):
            The feature selection strategy used to select the vision feature from the vision backbone.
            Can be one of `"default"` or `"full"`.
        use_cache (`bool`, *optional*):
            If set to `True`, `past_key_values` key value states are returned and can be used to speed up decoding (see
            `past_key_values`).
        output_attentions (`bool`, *optional*):
            Whether or not to return the attentions tensors of all attention layers. See `attentions` under returned
            tensors for more detail.
        output_hidden_states (`bool`, *optional*):
            Whether or not to return the hidden states of all layers. See `hidden_states` under returned tensors for
            more detail.
        return_dict (`bool`, *optional*):
            Whether or not to return a [`~utils.ModelOutput`] instead of a plain tuple.
        cache_position (`torch.LongTensor` of shape `(sequence_length)`, *optional*):
            Indices depicting the position of the input sequence tokens in the sequence. Contrarily to `position_ids`,
            this tensor is not affected by padding. It is used to update the cache in the correct position and to infer
            the complete sequence length.
zLThe MISTRAL3 model which consists of a vision backbone and a language model.c            &           e Zd Zdef fdZd Zd Zd Zd Zd Z	d Z
d	ej                  d
eeee   f   dej                   fdZ eddd       ee       eee      	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d deej2                     d	eej                     deej                      deej2                     deeej                        deej                     d
eeeee   f      deej2                     dee   dee   dee   dee   deej2                     deeej                   f   deej                      deeef   f d                     Z	 	 	 	 	 	 d!dZ xZS )" Mistral3ForConditionalGenerationrA   c                    t         |   |       t        j                  |j                        | _        t        |      | _        |j                  j                  | _	        t        j                  |j                        | _        | j                  j                  ,| j                  j                  D cg c]  }d| 	 c}| _        | j                  j                  | j                  j                  nd| _        | j                          y c c}w )Nzlanguage_model.r)   )r   r   r   from_configrE   vision_towerri   multi_modal_projectorrq   
vocab_sizer   language_model_tied_weights_keysrA   pad_token_id	post_init)r"   rA   kr%   s      r&   r   z)Mistral3ForConditionalGeneration.__init__4  s     %11&2F2FG%@%H" ,,772>>v?Q?QR11=FJFYFYFlFl&m'<&mD#8<8P8P8\DKK44bd	 'ns   2D
c                 6    | j                   j                         S ry   )r   get_input_embeddingsr8   s    r&   r   z5Mistral3ForConditionalGeneration.get_input_embeddingsC  s    ""7799r'   c                 :    | j                   j                  |       y ry   )r   set_input_embeddings)r"   values     r&   r   z5Mistral3ForConditionalGeneration.set_input_embeddingsF  s    007r'   c                 6    | j                   j                         S ry   )r   get_output_embeddingsr8   s    r&   r   z6Mistral3ForConditionalGeneration.get_output_embeddingsI  s    ""88::r'   c                 :    | j                   j                  |       y ry   )r   set_output_embeddings)r"   new_embeddingss     r&   r   z6Mistral3ForConditionalGeneration.set_output_embeddingsL  s    11.Ar'   c                 :    | j                   j                  |       y ry   )r   set_decoder)r"   decoders     r&   r   z,Mistral3ForConditionalGeneration.set_decoderO  s    ''0r'   c                 6    | j                   j                         S ry   )r   get_decoderr8   s    r&   r   z,Mistral3ForConditionalGeneration.get_decoderR  s    ""..00r'   pixel_valuesrn   rK   c                 |   |j                         D ci c]  \  }}|	|| }}} | j                  |f|dd|}t        |t              r|j                  |   }n3|D 	cg c]  }	|j                  |	    }
}	t        j                  |
d      }| j                  |j                  d      |      }|S c c}}w c c}	w )a=  
        Obtains image last hidden states from the vision tower and apply multimodal projection.

        Args:
            pixel_values (`torch.FloatTensor]` of shape `(batch_size, channels, height, width)`):
               The tensors corresponding to the input images.
            vision_feature_layer (`Union[int, List[int]]`):
                The index of the layer to select the vision feature. If multiple indices are provided,
                the vision feature of the corresponding indices will be concatenated to form the
                vision features.
            image_sizes (`torch.Tensor`):
                Tensor containing the image sizes as returned by the processor.
        Returns:
            image_features (`torch.Tensor`): Image feature tensor of shape `(num_images, image_length, embed_dim)`).
        T)rK   output_hidden_statesr)   rP   r   )	itemsr   rm   ro   r1   r   r[   r   squeeze)r"   r   rn   rK   kwargsr   vimage_outputsselected_image_feature	layer_idxhs_poolrJ   s               r&   get_image_featuresz3Mistral3ForConditionalGeneration.get_image_featuresU  s    , $*<<>C41aQ]!Q$CC))),uKfjuntu *C0%2%@%@AU%V"Ocd)}229=dGd%*YYwB%?"334J4R4RST4UWbc D es   
B3B3!B9num_logits_to_keepz4.50logits_to_keep)versionnew_name)output_typer   	input_idsattention_maskposition_idsr~   inputs_embedslabels	use_cacheoutput_attentionsr   return_dictcache_positionrL   c                    |
|
n| j                   j                  }
||n| j                   j                  }||n| j                   j                  }||n| j                   j                  }|du |duz  rt        d      ||t        d      | | j                         |      }|#| j                  |||      }|| j                   j                  k(  j                  d      }|j                  |      j                  |j                        }t               s{||   j                         |j                         k7  rW|| j                   j                  k(  j                         }|j                   d   |j                   d   z  }t        d| d	|       |j                  |j                  |j"                        }|j%                  ||      } | j&                  d|||||	|
||||d

|}|d   }d}|<||dd|j                   d   dz
   df   j                  |j                        }|dddddf   |j                  |j                        dk7     j)                         }|dddf   |j                  |j                        dk7     j)                         }n1|dddddf   j)                         }|dddf   j)                         }t+        j,                         } ||j/                  d|j1                  d            |j/                  d      j                  |j                              }|s|f|dd z   }||f|z   S |S t3        |||j4                  |j6                  |j8                  |      S d      S )a<  
            labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
                Labels for computing the masked language modeling loss. Indices should either be in `[0, ...,
                config.vocab_size]` or -100 (see `input_ids` docstring). Tokens with indices set to `-100` are ignored
                (masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`.

            logits_to_keep (`int` or `torch.Tensor`, *optional*):
                If an `int`, compute logits for the last `logits_to_keep` tokens. If `0`, calculate logits for all
                `input_ids` (special case). Only last token logits are needed for generation, and calculating them only for that
                token can save memory, which becomes pretty significant for long sequences or large vocabulary size.
                If a `torch.Tensor`, must be 1D corresponding to the indices to keep in the sequence length dimension.
                This is useful when using packed tensor format (single dimension for batch and sequence length).


        Returns:

        Example:

        ```python
        >>> from PIL import Image
        >>> import requests
        >>> from transformers import AutoProcessor, Mistral3ForConditionalGeneration

        >>> model = Mistral3ForConditionalGeneration.from_pretrained("mistralai/Mistral-Small-3.1-24B-Instruct-2503")
        >>> processor = AutoProcessor.from_pretrained("mistralai/Mistral-Small-3.1-24B-Instruct-2503")

        >>> prompt = "<s>[INST][IMG]What is the image?[/INST]"
        >>> url = "http://images.cocodataset.org/val2017/000000039769.jpg"
        >>> image = Image.open(requests.get(url, stream=True).raw)

        >>> inputs = processor(images=image, text=prompt, return_tensors="pt")

        >>> # Generate
        >>> generate_ids = model.generate(**inputs, max_new_tokens=15)
        >>> processor.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
        "What is the image?The image depicts two cats lying on a pink blanket."
        ```Nz:You must specify exactly one of input_ids or inputs_embedszdYou cannot specify both pixel_values and inputs_embeds at the same time, and must specify either one)r   rn   rK   r)   r   r   z6Image features and image tokens do not match: tokens: z, features )
r   r   r~   r   r   r   r   r   r   r   .)r|   r}   r~   r1   r   r   r   )rA   r   r   use_return_dictrn   
ValueErrorr   r   image_token_indexrV   	expand_asr,   devicer   numelsumr7   r+   masked_scatterr   
contiguousr   CrossEntropyLossrT   sizer{   r~   r1   r   )r"   r   r   r   r   r~   r   rn   r   r   r   r   r   r   r   rK   	lm_kwargsrJ   special_image_maskn_image_tokensn_image_featuresoutputsr}   r|   shift_attention_maskshift_logitsshift_labelsloss_fctoutputs                                r&   r4   z(Mistral3ForConditionalGeneration.forwardy  s   x 2C1N-TXT_T_TqTq$8$D $++JjJj 	 &1%<k$++B]B]$8$D $++JjJj 	 -t";<YZZ#(Av   7D557	BM#!44)%9' 5 N #,t{{/L/L"L!W!WXZ![!3!=!=m!L!O!OP]PdPd!e+--@R2S2Y2Y2[_m_s_s_u2u"+t{{/L/L"L!Q!Q!S#1#7#7#:^=Q=QRS=T#T  L^L\\ghxgyz  ,..}/C/C]EXEXYN)889K^\M%$%% 
)%+'/!5#))
 
 ) (6a6<<?Q;N9O9Q6Q'R'U'UV\VcVc'd$%c3B3k23G3J3J6==3Y]^3^_jjl%c12g/C/F/Fv}}/UYZ/Z[ffh%c3B3k2==?%c12g99;**,H!!"l&7&7&;<l>O>OPR>S>V>VWcWjWj>kD Y,F'+'7D7V#CVC-#33!//))2>2J
 	
 QU
 	
r'   c           	      f     | j                   j                  |f|||||d|}	|d   dk(  r||	d<   |	S )N)r~   r   r   r   r   r   r   )r   prepare_inputs_for_generation)
r"   r   r~   r   r   r   r   r   r   model_inputss
             r&   r   z>Mistral3ForConditionalGeneration.prepare_inputs_for_generation
  s_     It**HH
+')))
 
 !! ,8L(r'   )NNNNNNNNNNNNNr   N)NNNNNN)r:   r;   r<   r   r   r   r   r   r   r   r   r   r   r   ro   r   rg   r   r   r   MISTRAL3_INPUTS_DOCSTRINGr   r{   _CONFIG_FOR_DOCr   
LongTensorboolr   r4   r   r=   r>   s   @r&   r   r   /  s@   
~ :8;B11"''" $CcN3" \\	"H )6DTU*+DE+IXgh 15481537=A59@D-1$(,0/3&*5934.2!L
E,,-L
 u001L
 !.	L

 u//0L
 "$u'8'8"9:L
   1 12L
 'uS$s)^'<=L
 ))*L
 D>L
 $D>L
 'tnL
 d^L
 !!1!12L
 c5<</0L
  ell+!L
$ 
u44	5%L
 i F VL
b r'   r   )(dataclassesr   typingr   r   r   r   r   r   activationsr
   
generationr   modeling_outputsr   modeling_utilsr   utilsr   r   r   r   utils.deprecationr   autor   r   configuration_mistral3r   r   Moduler   r@   ri   r{   MISTRAL3_START_DOCSTRINGr   r   r   __all__r   r'   r&   <module>r      s   , " / /   ! ) + -  1 2 2 #Jbii J(#")) #L")) 4 $<[ $< $<N " Y ?o  ?	 ?FJ Z Vs'> s	sl %&H
Ir'   