§
     `ƒiP  ã                   ó„   — 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	  ej
        e¦  «        Z G d„ d	e¦  «        Zd	gZd
S )é    )Údeepcopy)ÚAnyé   )ÚPretrainedConfig)Úloggingé   )ÚCONFIG_MAPPINGc                   óh   ‡ — e Zd ZU dZdZdeiZeee	f         e
d<   	 	 	 dded	efˆ fd
„Zdefd„Zˆ xZS )ÚColQwen2Configac  
    Configuration class to store the configuration of a [`ColQ2en2ForRetrieval`]. It is used to instantiate an instance
    of `ColQwen2ForRetrieval` according to the specified arguments, defining the model architecture following the methodology
    from the "ColPali: Efficient Document Retrieval with Vision Language Models" paper.

    Instantiating a configuration with the defaults will yield a similar configuration to the vision encoder used by the pre-trained
    ColQwen2-v1.0 model, e.g. [vidore/colqwen2-v1.0-hf](https://huggingface.co/vidore/colqwen2-v1.0-hf).

    Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
    documentation from [`PretrainedConfig`] for more information.

    Args:
        vlm_config (`PretrainedConfig`, *optional*):
            Configuration of the VLM backbone model.
        embedding_dim (`int`, *optional*, defaults to 128):
            Dimension of the multi-vector embeddings produced by the model.
        initializer_range (`float`, *optional*, defaults to 0.02):
            The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
    Example:

    ```python
    from transformers.models.colqwen2 import ColQwen2Config, ColQwen2ForRetrieval

    config = ColQwen2Config()
    model = ColQwen2ForRetrieval(config)
    ```
    Úcolqwen2Ú
vlm_configÚsub_configsNé€   ç{®Gáz”?Úembedding_dimÚinitializer_rangec                 óÐ  •— |€/t          d         ¦   «         }t                               d¦  «         n…t          |t          ¦  «        r;t          |¦  «        }d|vrt          d¦  «        ‚t          |d                  di |¤Ž}n5t          |t          ¦  «        s t          dt          |¦  «        › d¦  «        ‚|| _
        || _        || _         t          ¦   «         j        di |¤Ž d S )NÚqwen2_vlz_`vlm_config` is `None`. Initializing `vlm_config` with the `Qwen2VLConfig` with default values.Ú
model_typez^The `model_type` key is missing in the `vlm_config` dictionary. Please provide the model type.zWInvalid type for `vlm_config`. Expected `PretrainedConfig`, `dict`, or `None`, but got ú.© )r	   ÚloggerÚinfoÚ
isinstanceÚdictr   ÚKeyErrorr   Ú	TypeErrorÚtyper   r   r   ÚsuperÚ__init__)Úselfr   r   r   ÚkwargsÚ	__class__s        €ú‡/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/transformers/models/colqwen2/configuration_colqwen2.pyr    zColQwen2Config.__init__;   s  ø€ ð ÐÝ'¨
Ô3Ñ5Ô5ˆJÝKŠKØqñô ð ð õ ˜
¥DÑ)Ô)ð 
	Ý! *Ñ-Ô-ˆJØ :Ð-Ð-ÝØtñô ð õ (¨
°<Ô(@ÔAÐOÐOÀJÐOÐOˆJˆJÝ˜JÕ(8Ñ9Ô9ð 	ÝØ}ÕjnÐoyÑjzÔjzÐ}Ð}Ð}ñô ð ð %ˆŒØ*ˆÔØ!2ˆÔØ‰ŒÔÐ"Ð"˜6Ð"Ð"Ð"Ð"Ð"ó    Úreturnc                 ó&   —  | j         j        |i |¤ŽS )N)r   Úget_text_config)r!   Úargsr"   s      r$   r(   zColQwen2Config.get_text_configX   s   € Ø.ˆtŒÔ.°Ð?¸Ð?Ð?Ð?r%   )Nr   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   Ústrr   Ú__annotations__ÚintÚfloatr    r(   Ú__classcell__)r#   s   @r$   r   r      s·   ø€ € € € € € ðð ð8 €JØ#/Ð1AÐ"B€Kc˜3h”ÐBÐBÑBð Ø Ø#'ð	#ð #ð ð#ð !ð	#ð #ð #ð #ð #ð #ð:@Ð2Bð @ð @ð @ð @ð @ð @ð @ð @r%   r   N)Úcopyr   Útypingr   Úconfiguration_utilsr   Úutilsr   Úautor	   Ú
get_loggerr*   r   r   Ú__all__r   r%   r$   ú<module>r:      s·   ðð  Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø Ð Ð Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !ð 
ˆÔ	˜HÑ	%Ô	%€ð>@ð >@ð >@ð >@ð >@Ð%ñ >@ô >@ð >@ðB Ð
€€€r%   