§
    ‚ŠtjdD  ã                   óŽ  — d dl mZ d dl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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 ddlmZ ddlmZ ddl m!Z!m"Z" ddl#m$Z$ ddl%m&Z&m'Z'  ej(        e)¦  «        Z* ed¬¦  «        e G d„ de$¦  «        ¦   «         ¦   «         Z+ G d„ de'd¬¦  «        Z, ed¬¦  «        e G d„ de&¦  «        ¦   «         ¦   «         Z-e G d „ d!e"¦  «        ¦   «         Z. ed"¬#¦  «        e G d$„ d%e¦  «        ¦   «         ¦   «         Z/ ed&¬#¦  «         G d'„ d(e!¦  «        ¦   «         Z0g d)¢Z1dS )*é    )Ú	dataclass)ÚOptionalÚUnionN)Ústricté   )ÚPreTrainedConfig)ÚBatchFeature)Ú
ImageInputÚis_valid_image)ÚUnpack)Ú	TextInput)ÚModelOutputÚTransformersKwargsÚauto_docstringÚlogging)Úcan_return_tuple)Úrequiresé   )ÚCONFIG_MAPPING)Ú	AutoModel)ÚColPaliForRetrievalÚColPaliPreTrainedModel)ÚColQwen2Config)ÚIdefics3ProcessorÚIdefics3ProcessorKwargsz!ModernVBERT/colmodernvbert-merged)Ú
checkpointc                   óf   ‡ — e Zd ZU dZdZdeiZdZeez  dz  e	d<   dZ
ee	d<   dZee	d<   ˆ fd	„Zˆ xZS )
ÚColModernVBertConfigzË
    Example:

    ```python
    from transformers import ColModernVBertConfig, ColModernVBertForRetrieval

    config = ColModernVBertConfig()
    model = ColModernVBertForRetrieval(config)
    ```
    ÚcolmodernvbertÚ
vlm_configNé€   Úembedding_dimg{®Gáz”?Úinitializer_rangec                 ó¬  •— | j         €4t          d         ¦   «         | _         t                               d¦  «         nAt	          | j         t
          ¦  «        r't          | j         d                  di | j         ¤Ž| _         t          | j         d¦  «        s(| j                              ¦   «         j        | j         _         t          ¦   «         j
        di |¤Ž d S )NÚmodernvbertzc`vlm_config` is `None`. Initializing `vlm_config` with the `ModernVBertConfig` with default values.Ú
model_typeÚ
vocab_size© )r    r   ÚloggerÚinfoÚ
isinstanceÚdictÚhasattrÚget_text_configr'   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €úw/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/models/colmodernvbert/modular_colmodernvbert.pyr0   z"ColModernVBertConfig.__post_init__<   sÈ   ø€ ØŒ?Ð"Ý,¨]Ô;Ñ=Ô=ˆDŒOÝ�KŠKØuñô ð ð õ ˜œ­Ñ.Ô.ð 	_Ý,¨T¬_¸\Ô-JÔKÐ^Ð^ÈdÌoÐ^Ð^ˆDŒOå�t”¨Ñ5Ô5ð 	VØ)-¬×)HÒ)HÑ)JÔ)JÔ)UˆDŒOÔ&à�‰ŒÔÐ'Ð' Ð'Ð'Ð'Ð'Ð'ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r&   r   Úsub_configsr    r,   Ú__annotations__r"   Úintr#   Úfloatr0   Ú__classcell__©r3   s   @r4   r   r   '   s’   ø€ € € € € € ð	ð 	ð "€JØÐ!1Ð2€Kà15€J�Ð'Ñ'¨$Ñ.Ð5Ð5Ñ5Ø€M�3ÐÐÑØ#Ð�uÐ#Ð#Ñ#ð(ð (ð (ð (ð (ð (ð (ð (ð (r5   r   c                   ó*   — e Zd ZddiddddœddidœZd	S )
ÚColModernVBertProcessorKwargsÚpaddingÚlongestTÚchannels_first)Úreturn_row_col_infoÚdata_formatÚdo_convert_rgbÚreturn_tensorsÚpt)Útext_kwargsÚimages_kwargsÚcommon_kwargsN)r6   r7   r8   Ú	_defaultsr(   r5   r4   rA   rA   K   sE   € € € € € ð �yð
ð $(Ø+Ø"ð
ð 
ð
 +¨DÐ1ð
ð 
€I€I€Ir5   rA   F)Útotal)Útorch)Úbackendsc                   ó  ‡ — e Zd Z	 	 	 	 	 ddededz  dedz  fˆ fd„Z	 ddedz  dee         d	e	fd
„Z
deee         z  dee         d	e	fd„Z	 	 	 ddeded         f         deded         f         deded         dedef         d	dfd„Zˆ xZS )ÚColModernVBertProcessorNé@   Úimage_seq_lenÚvisual_prompt_prefixÚquery_prefixc                 ó–   •— d} t          ¦   «         j        ||f||dœ|¤Ž |p
d| j        › d�| _        |pd| _        | j        | _        dS )a‚  
        image_seq_len (`int`, *optional*, defaults to 64):
            The length of the image sequence i.e. the number of <image> tokens per image in the input.
        visual_prompt_prefix (`str`, *optional*):
            A string that gets tokenized and prepended to the image tokens.
        query_prefix (`str`, *optional*):
            A prefix to be used for the query.
        N)Úchat_templaterT   z<|begin_of_text|>User:z0Describe the image.<end_of_utterance>
Assistant:Ú )r/   Ú__init__Úimage_tokenrU   rV   Úend_of_utterance_tokenÚquery_augmentation_token)	r1   Úimage_processorÚ	tokenizerrX   rT   rU   rV   r2   r3   s	           €r4   rZ   z ColModernVBertProcessor.__init__\   sŠ   ø€ ð$ ˆà�‰ŒÔØØð	
ð (Ø'ð		
ð 	
ð
 ð	
ð 	
ð 	
ð %9ð %
Øh TÔ%5ÐhÐhÐhð 	Ô!ð )Ð.¨BˆÔØ(,Ô(CˆÔ%Ð%Ð%r5   Úimagesr2   Úreturnc                 óÀ  —  | j         t          fd| j        j        i|¤Ž}|d                              dd¦  «        }|du}t          |¦  «        r|g}n…t          |t          ¦  «        rt          |d         ¦  «        rnZt          |t          ¦  «        r6t          |d         t          ¦  «        rt          |d         d         ¦  «        st          d¦  «        ‚d„ |D ¦   «         }|  	                    | j
        gt          |¦  «        z  ||d         |d         ¬	¦  «        }|r=|d
                              |d         dk    d¦  «        }|                     d|i¦  «         |S )a  
        Prepare for the model one or several image(s). Handles input validation, RGB conversion,
        and prepends the `visual_prompt_prefix` to each image. Optionally computes labels from
        `token_type_ids` when a `suffix` is provided in `text_kwargs`.

        Args:
            images (`PIL.Image.Image`, `np.ndarray`, `torch.Tensor`, `list[PIL.Image.Image]`, `list[np.ndarray]`, `list[torch.Tensor]`):
                The image or batch of images to be prepared. Each image can be a PIL image, NumPy array or PyTorch
                tensor. In case of a NumPy array/PyTorch tensor, each image should be of shape (C, H, W), where C is a
                number of channels, H and W are image height and width.
            return_tensors (`str` or [`~utils.TensorType`], *optional*):
                If set, will return tensors of a particular framework. Acceptable values are:

                - `'pt'`: Return PyTorch `torch.Tensor` objects.
                - `'np'`: Return NumPy `np.ndarray` objects.

        Returns:
            [`BatchFeature`]: A [`BatchFeature`] with the following fields:

            - **input_ids** -- List of token ids to be fed to a model.
            - **attention_mask** -- List of indices specifying which tokens should be attended to by the model (when
              `return_attention_mask=True` or if *"attention_mask"* is in `self.model_input_names` and if `text` is not
              `None`).
            - **pixel_values** -- Pixel values to be fed to a model. Returned when `images` is not `None`.
        Útokenizer_init_kwargsrJ   ÚsuffixNr   zAimages must be an image, list of images or list of list of imagesc                 ó8   — g | ]}|                      d ¦  «        ‘ŒS )ÚRGB)Úconvert)Ú.0Úimages     r4   ú
<listcomp>z:ColModernVBertProcessor.process_images.<locals>.<listcomp>¯   s$   € Ð;Ð;Ð;¨5�%—-’- Ñ&Ô&Ð;Ð;Ð;r5   rK   )Útextr`   rK   rJ   Ú	input_idsÚtoken_type_idsiœÿÿÿÚlabels)Ú_merge_kwargsrA   r_   Úinit_kwargsÚpopr   r+   ÚlistÚ
ValueErrorÚ__call__rU   ÚlenÚmasked_fillÚupdate)r1   r`   r2   Úoutput_kwargsrd   Úreturn_token_type_idsÚ	batch_docrn   s           r4   Úprocess_imagesz&ColModernVBertProcessor.process_images~   sŸ  € ð< +˜Ô*Ý)ð
ð 
à"&¤.Ô"<ð
ð ð
ð 
ˆð ˜}Ô-×1Ò1°(¸DÑAÔAˆà &¨dÐ 2Ðõ ˜&Ñ!Ô!ð 	bØ�XˆFˆFÝ˜¥Ñ%Ô%ð 	b­.¸À¼Ñ*CÔ*Cð 	bØÝ˜V¥TÑ*Ô*ð 	b­z¸&À¼)ÅTÑ/JÔ/Jð 	bÍ~Ð^dÐefÔ^gÐhiÔ^jÑOkÔOkð 	bÝÐ`ÑaÔaÐað <Ð;°FÐ;Ñ;Ô;ˆð —M’MØÔ+Ð,­s°6©{¬{Ñ:ØØ'¨Ô8Ø% mÔ4ð	 "ñ 
ô 
ˆ	ð !ð 	1Ø˜{Ô+×7Ò7¸	ÐBRÔ8SÐWXÒ8XÐZ^Ñ_Ô_ˆFØ×Ò˜h¨Ð/Ñ0Ô0Ð0àÐr5   rk   c                 ó¢  ‡ ‡—  ‰ j         t          fd‰ j        j        i|¤Ž}|d                              dd¦  «        Št          |t          ¦  «        r|g}n?t          |t          ¦  «        rt          |d         t          ¦  «        st          d¦  «        ‚‰€
‰ j	        dz  Šˆ ˆfd„|D ¦   «         }‰  
                    |d	|d         ¬
¦  «        }|S )ad  
        Prepare for the model one or several text queries. Handles input validation, prepends the
        `query_prefix`, and appends query augmentation tokens (used to pad query embeddings for
        better late-interaction retrieval performance).

        Args:
            text (`str`, `list[str]`, `list[list[str]]`):
                The sequence or batch of sequences to be encoded. Each sequence can be a string or a list of strings
                (pretokenized string). If the sequences are provided as list of strings (pretokenized), you must set
                `is_split_into_words=True` (to lift the ambiguity with a batch of sequences).
            return_tensors (`str` or [`~utils.TensorType`], *optional*):
                If set, will return tensors of a particular framework. Acceptable values are:

                - `'pt'`: Return PyTorch `torch.Tensor` objects.
                - `'np'`: Return NumPy `np.ndarray` objects.

        Returns:
            [`BatchFeature`]: A [`BatchFeature`] with the following fields:

            - **input_ids** -- List of token ids to be fed to a model.
            - **attention_mask** -- List of indices specifying which tokens should be attended to by the model (when
              `return_attention_mask=True` or if *"attention_mask"* is in `self.model_input_names` and if `text` is not
              `None`).
        rc   rJ   rd   Nr   z*Text must be a string or a list of stringsé
   c                 ó*   •— g | ]}‰j         |z   ‰z   ‘ŒS r(   )rV   )rh   Úqueryr1   rd   s     €€r4   rj   z;ColModernVBertProcessor.process_queries.<locals>.<listcomp>ï   s&   ø€ Ð!WÐ!WÐ!WÈ $Ô"3°eÑ";¸fÑ"DÐ!WÐ!WÐ!Wr5   F)rk   ry   rJ   )ro   rA   r_   rp   rq   r+   Ústrrr   rs   r]   rt   )r1   rk   r2   rx   Útexts_queryÚbatch_queryrd   s   `     @r4   Úprocess_queriesz'ColModernVBertProcessor.process_queriesÀ   s  øø€ ð: +˜Ô*Ý)ð
ð 
à"&¤.Ô"<ð
ð ð
ð 
ˆð ˜}Ô-×1Ò1°(¸DÑAÔAˆå�d�CÑ Ô ð 	KØ�6ˆDˆDÝ˜T¥4Ñ(Ô(ð 	K­Z¸¸Q¼ÅÑ-EÔ-Eð 	KÝÐIÑJÔJÐJð ˆ>ØÔ2°RÑ7ˆFð "XÐ!WÐ!WÐ!WÐ!WÐRVÐ!WÑ!WÔ!Wˆà—m’mØØ"'Ø% mÔ4ð $ñ 
ô 
ˆð Ðr5   r!   ÚcpuÚquery_embeddingsztorch.TensorÚpassage_embeddingsÚ
batch_sizeÚoutput_dtypeztorch.dtypeÚoutput_deviceztorch.devicec           	      ó8  — t          |¦  «        dk    rt          d¦  «        ‚t          |¦  «        dk    rt          d¦  «        ‚|d         j        |d         j        k    rt          d¦  «        ‚|d         j        |d         j        k    rt          d¦  «        ‚|€|d         j        }g }t	          dt          |¦  «        |¦  «        D �]:}g }t
          j        j        j         	                    ||||z   …         dd¬¦  «        }	t	          dt          |¦  «        |¦  «        D ]�}
t
          j        j        j         	                    ||
|
|z   …         dd¬¦  «        }| 
                    t          j        d	|	|¦  «                             d
¬¦  «        d                              d¬¦  «        ¦  «         Œ‘| 
                    t          j        |d¬¦  «                             |¦  «                             |¦  «        ¦  «         �Œ<t          j        |d¬¦  «        S )a[  
        Compute the late-interaction/MaxSim score (ColBERT-like) for the given multi-vector
        query embeddings (`qs`) and passage embeddings (`ps`). For ColQwen2, a passage is the
        image of a document page.

        Because the embedding tensors are multi-vector and can thus have different shapes, they
        should be fed as:
        (1) a list of tensors, where the i-th tensor is of shape (sequence_length_i, embedding_dim)
        (2) a single tensor of shape (n_passages, max_sequence_length, embedding_dim) -> usually
            obtained by padding the list of tensors.

        Args:
            query_embeddings (`Union[torch.Tensor, list[torch.Tensor]`): Query embeddings.
            passage_embeddings (`Union[torch.Tensor, list[torch.Tensor]`): Passage embeddings.
            batch_size (`int`, *optional*, defaults to 128): Batch size for computing scores.
            output_dtype (`torch.dtype`, *optional*, defaults to `torch.float32`): The dtype of the output tensor.
                If `None`, the dtype of the input embeddings is used.
            output_device (`torch.device` or `str`, *optional*, defaults to "cpu"): The device of the output tensor.

        Returns:
            `torch.Tensor`: A tensor of shape `(n_queries, n_passages)` containing the scores. The score
            tensor is saved on the "cpu" device.
        r   zNo queries providedzNo passages providedz/Queries and passages must be on the same devicez-Queries and passages must have the same dtypeNT)Úbatch_firstÚpadding_valuezbnd,csd->bcnsr   )Údimr   é   )ru   rs   ÚdeviceÚdtypeÚrangerO   ÚnnÚutilsÚrnnÚpad_sequenceÚappendÚeinsumÚmaxÚsumÚcatÚto)r1   r…   r†   r‡   rˆ   r‰   ÚscoresÚiÚbatch_scoresÚbatch_queriesÚjÚbatch_passagess               r4   Úscore_retrievalz'ColModernVBertProcessor.score_retrievalù   s*  € õ@ ÐÑ Ô  AÒ%Ð%ÝÐ2Ñ3Ô3Ð3ÝÐ!Ñ"Ô" aÒ'Ð'ÝÐ3Ñ4Ô4Ð4à˜AÔÔ%Ð);¸AÔ)>Ô)EÒEÐEÝÐNÑOÔOÐOà˜AÔÔ$Ð(:¸1Ô(=Ô(CÒCÐCÝÐLÑMÔMÐMàÐØ+¨AÔ.Ô4ˆLà%'ˆå�q�#Ð.Ñ/Ô/°Ñ<Ô<ð 	]ñ 	]ˆAØ/1ˆLÝ!œHœNÔ.×;Ò;Ø   Q¨¡^Ð!3Ô4À$ÐVWð <ñ ô ˆMõ ˜1�cÐ"4Ñ5Ô5°zÑBÔBð ð �Ý!&¤¤Ô!3×!@Ò!@Ø& q¨1¨z©>Ð'9Ô:ÈÐ\]ð "Añ "ô "�ð ×#Ò#Ý”L °-ÀÑPÔP×TÒTÐYZÐTÑ[Ô[Ð\]Ô^×bÒbÐghÐbÑiÔiñô ð ð ð �MŠM�%œ) L°aÐ8Ñ8Ô8×;Ò;¸LÑIÔI×LÒLÈ]Ñ[Ô[Ñ\Ô\Ð\Ñ\åŒy˜ QÐ'Ñ'Ô'Ð'r5   )NNrS   NN©N)r!   Nr„   )r6   r7   r8   r<   r€   rZ   r
   r   rA   r	   r{   r   rr   rƒ   r   r   r¢   r>   r?   s   @r4   rR   rR   Y   s�  ø€ € € € € ð ØØØ+/Ø#'ð Dð  Dð
 ð Dð " D™jð Dð ˜D‘jð Dð  Dð  Dð  Dð  Dð  DðH %)ð@ð @à˜TÑ!ð@ð Ð6Ô7ð@ð 
ð	@ð @ð @ð @ðD7à˜$˜yœ/Ñ)ð7ð Ð6Ô7ð7ð 
ð	7ð 7ð 7ð 7ðz Ø04Ø49ð>(ð >(à °°^Ô0DÐ DÔEð>(ð " .°$°~Ô2FÐ"FÔGð>(ð ð	>(ð
 ˜}Ô-ð>(ð ˜^¨SÐ0Ô1ð>(ð 
ð>(ð >(ð >(ð >(ð >(ð >(ð >(ð >(r5   rR   c                   ó   — e Zd ZU eed<   dS )ÚColModernVBertPreTrainedModelÚconfigN)r6   r7   r8   r   r;   r(   r5   r4   r¥   r¥   :  s   € € € € € € à Ð Ð Ñ Ð Ð r5   r¥   z:
    Base class for ColModernVBert embeddings output.
    )Úcustom_introc                   óÎ   — e Zd ZU dZdZej        dz  ed<   dZej	        dz  ed<   dZ
eej                 dz  ed<   dZeej                 dz  ed<   dZeej                 dz  ed<   dS )Ú ColModernVBertForRetrievalOutputa  
    loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` is provided):
        Language modeling loss (for next-token prediction).
    embeddings (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`):
        The embeddings of the model.
    image_hidden_states (`tuple(torch.FloatTensor)`, *optional*, returned when `output_hidden_states=True` is passed or when `config.output_hidden_states=True` and `pixel_values` are provided):
        Tuple of `torch.FloatTensor` (one for the output of the image modality projection + one for the output of each layer) of shape
        `(batch_size, num_channels, image_size, image_size)`.
        Hidden-states of the image encoder at the output of each layer plus the initial modality projection outputs.
    NÚlossÚ
embeddingsÚhidden_statesÚimage_hidden_statesÚ
attentions)r6   r7   r8   r9   rª   rO   ÚFloatTensorr;   r«   ÚTensorr¬   Útupler­   r®   r(   r5   r4   r©   r©   ?  s¥   € € € € € € ð	ð 	ð &*€Dˆ%Ô
˜dÑ
"Ð)Ð)Ñ)Ø&*€J�”˜tÑ#Ð*Ð*Ñ*Ø59€M�5˜Ô*Ô+¨dÑ2Ð9Ð9Ñ9Ø;?Ð˜˜uÔ0Ô1°DÑ8Ð?Ð?Ñ?Ø26€J��eÔ'Ô(¨4Ñ/Ð6Ð6Ñ6Ð6Ð6r5   r©   u  
    Following the ColPali approach, ColModernVBert leverages VLMs to construct efficient multi-vector embeddings directly
    from document images (â€œscreenshotsâ€�) for document retrieval. The model is trained to maximize the similarity
    between these document embeddings and the corresponding query embeddings, using the late interaction method
    introduced in ColBERT.

    Using ColModernVBert removes the need for potentially complex and brittle layout recognition and OCR pipelines with
    a single model that can take into account both the textual and visual content (layout, charts, ...) of a document.

    ColModernVBert is trained on top of ModernVBert, and was introduced in the following paper:
    [*ModernVBERT: Towards Smaller Visual Document Retrievers*](https://arxiv.org/abs/2510.01149).

    ColModernVBert is part of the ColVision model family, which was introduced with ColPali in the following paper:
    [*ColPali: Efficient Document Retrieval with Vision Language Models*](https://huggingface.co/papers/2407.01449).
    c                   ó¤   ‡ — e Zd Zdefˆ fd„Zee	 	 	 d
dej        dz  dej	        dz  dej
        dz  dee         def
d	„¦   «         ¦   «         Zˆ xZS )ÚColModernVBertForRetrievalr¦   c                 ó®   •— t          ¦   «                              |¦  «         t          j        |j        ¦  «        | _        |                      ¦   «          d S r£   )r/   rZ   r   Úfrom_configr    ÚvlmÚ	post_init)r1   r¦   r3   s     €r4   rZ   z#ColModernVBertForRetrieval.__init__j  sF   ø€ Ý‰Œ×Ò˜Ñ Ô Ð ÝÔ(¨Ô):Ñ;Ô;ˆŒØ�ŠÑÔÐÐÐr5   Nrl   Úpixel_valuesÚattention_maskr2   ra   c                 ó”  —  | j         d|||dœ|¤Ž}|d         }| j        j        j        }|                      |                     |¦  «        ¦  «        }||                     dd¬¦  «        z  }|�9|                     |j        |j        ¬¦  «        }||                     d¦  «        z  }t          ||j	        |j
        |j        ¬¦  «        S )	N)rl   r¹   r¸   r   éÿÿÿÿT)r�   Úkeepdim)r�   r�   )r«   r¬   r®   r­   r(   )r¶   Úembedding_proj_layerÚweightr�   r›   Únormr�   Ú	unsqueezer©   r¬   r®   r­   )	r1   rl   r¸   r¹   r2   Ú
vlm_outputÚlast_hidden_statesÚ
proj_dtyper«   s	            r4   Úforwardz"ColModernVBertForRetrieval.forwardo  sô   € ð �T”Xð 
ØØ)Ø%ð
ð 
ð ð	
ð 
ˆ
ð (¨œ]ÐØÔ.Ô5Ô;ˆ
Ø×.Ò.Ð/A×/DÒ/DÀZÑ/PÔ/PÑQÔQˆ
ð   *§/¢/°bÀ$ /Ñ"GÔ"GÑGˆ
àÐ%Ø+×.Ò.°ZÔ5EÈjÔN_Ð.Ñ`Ô`ˆNØ# n×&>Ò&>¸rÑ&BÔ&BÑBˆJå/Ø!Ø$Ô2Ø!Ô,Ø *Ô >ð	
ñ 
ô 
ð 	
r5   )NNN)r6   r7   r8   r   rZ   r   r   rO   Ú
LongTensorr¯   r°   r   r   r©   rÄ   r>   r?   s   @r4   r³   r³   X  sÍ   ø€ € € € € ð$Ð3ð ð ð ð ð ð ð
 Øð .2Ø15Ø.2ð	
ð 
àÔ# dÑ*ð
ð Ô'¨$Ñ.ð
ð œ tÑ+ð	
ð
 Ð+Ô,ð
ð 
*ð
ð 
ð 
ñ „^ñ Ôð
ð 
ð 
ð 
ð 
r5   r³   )r   r³   r¥   rR   )2Údataclassesr   Útypingr   r   rO   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úfeature_extraction_utilsr	   Úimage_utilsr
   r   Úprocessing_utilsr   Útokenization_utils_baser   r“   r   r   r   r   Úutils.genericr   Úutils.import_utilsr   Úautor   Úauto.modeling_autor   Úcolpali.modeling_colpalir   r   Úcolqwen2.configuration_colqwen2r   Úidefics3.processing_idefics3r   r   Ú
get_loggerr6   r)   r   rA   rR   r¥   r©   r³   Ú__all__r(   r5   r4   ú<module>r×      sA  ðð "Ð !Ð !Ð !Ð !Ð !Ø "Ð "Ð "Ð "Ð "Ð "Ð "Ð "à €€€Ø .Ð .Ð .Ð .Ð .Ð .à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø &Ð &Ð &Ð &Ð &Ð &Ø 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MØ -Ð -Ð -Ð -Ð -Ð -Ø *Ð *Ð *Ð *Ð *Ð *Ø !Ð !Ð !Ð !Ð !Ð !Ø *Ð *Ð *Ð *Ð *Ð *Ø RÐ RÐ RÐ RÐ RÐ RÐ RÐ RØ <Ð <Ð <Ð <Ð <Ð <Ø UÐ UÐ UÐ UÐ UÐ UÐ UÐ Uð 
ˆÔ	˜HÑ	%Ô	%€ð €Ð>Ð?Ñ?Ô?Øð(ð (ð (ð (ð (˜>ñ (ô (ñ „ñ @Ô?ð(ðDð ð ð ð Ð$;À5ð ñ ô ð ð 
€�:ÐÑÔØð\(ð \(ð \(ð \(ð \(Ð/ñ \(ô \(ñ „ñ Ôð\(ð~ ð!ð !ð !ð !ð !Ð$:ñ !ô !ñ „ð!ð €ððñ ô ð
 ð7ð 7ð 7ð 7ð 7 {ñ 7ô 7ñ „ñô ð7ð& €ððñ ô ð"&
ð &
ð &
ð &
ð &
Ð!4ñ &
ô &
ñ#ô ð"&
ðRð ð €€€r5   