§
    ‚ŠtjÂ  ã                   óœ   — 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
  ed¬	¦  «        e G d
„ de¦  «        ¦   «         ¦   «         ZdgZdS )é    )ÚLiteral)Ústricté   )ÚPreTrainedConfig)Úauto_docstringé   )ÚCONFIG_MAPPINGÚ
AutoConfigzModernVBERT/modernvbert)Ú
checkpointc                   óè   ‡ — e Zd ZU dZdZeedœZdZee	z  dz  e
d<   dZee	z  dz  e
d<   dZee
d<   d	Zee
d
<   dZee
d<   dZee
d<   dZed         e
d<   dZeez  e
d<   dZee
d<   dZee
d<   ˆ fd„Zˆ xZS )ÚModernVBertConfiga?  
    pixel_shuffle_factor (`int | None`, *optional*, defaults to 4):
        Scale factor used by any pixel-shuffle / upsampling operations in the vision head.
    initializer_cutoff_factor (`float | None`, *optional*, defaults to 2.0):
        The cutoff factor for the truncated_normal_initializer for initializing all weight matrices.
    classifier_pooling (`Literal["cls", "mean"]`, *optional*, defaults to `"cls"`):
        The pooling strategy to use for classification tasks.
    classifier_bias (`bool | None`, *optional*, defaults to `False`):
        Whether to add a bias term to the classification head

    Example:
    ```python
    >>> from transformers import ModernVBertConfig

    >>> # Initializing configuration
    >>> configuration = ModernVBertConfig()

    >>> # Initializing a model from the configuration (model class is implemented in
    >>> # `modernvbert.modeling_modernvbert`)

    >>> from transformers import ModernVBertModel
    >>> model = ModernVBertModel(configuration)

    >>> # Accessing the model configuration
    >>> cfg = model.config
    ```Úmodernvbert)Útext_configÚvision_configNr   r   içÄ  Úimage_token_idé   Úpixel_shuffle_factorg{®Gáz”?Úinitializer_rangeg       @Úinitializer_cutoff_factorÚcls)r   ÚmeanÚclassifier_poolingg        Úclassifier_dropoutFÚclassifier_biasÚtie_word_embeddingsc                 ó–  •— | j         €t          d         ¦   «         | _         n6t          | j         t          ¦  «        rt          d         di | j         ¤Ž| _         | j        €t          d         ¦   «         | _        n6t          | j        t          ¦  «        rt          d         di | j        ¤Ž| _         t          ¦   «         j        di |¤Ž d S )NÚ
modernbertÚsiglip_vision_model© )r   r	   Ú
isinstanceÚdictr   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €úw/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/models/modernvbert/configuration_modernvbert.pyr#   zModernVBertConfig.__post_init__J   sÎ   ø€ ØÔÐ#Ý-¨lÔ;Ñ=Ô=ˆDÔÐÝ˜Ô(­$Ñ/Ô/ð 	PÝ-¨lÔ;ÐOÐO¸dÔ>NÐOÐOˆDÔàÔÐ%Ý!/Ð0EÔ!FÑ!HÔ!HˆDÔÐÝ˜Ô*­DÑ1Ô1ð 	]Ý!/Ð0EÔ!FÐ!\Ð!\ÈÔI[Ð!\Ð!\ˆDÔà�‰ŒÔÐ'Ð' Ð'Ð'Ð'Ð'Ð'ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer
   Úsub_configsr   r   r!   Ú__annotations__r   r   Úintr   r   Úfloatr   r   r   r   r   Úboolr   r#   Ú__classcell__)r&   s   @r'   r   r      s  ø€ € € € € € ðð ð6 €JØ",¸zÐJÐJ€Kà26€KÐ! DÑ(¨4Ñ/Ð6Ð6Ñ6Ø48€MÐ# dÑ*¨TÑ1Ð8Ð8Ñ8Ø€N�CÐÐÑØ !Ð˜#Ð!Ð!Ñ!Ø#Ð�uÐ#Ð#Ñ#Ø'*Ð˜uÐ*Ð*Ñ*Ø16Ð˜ Ô.Ð6Ð6Ñ6Ø&)Ð˜ ™Ð)Ð)Ñ)Ø!€O�TÐ!Ð!Ñ!Ø %Ð˜Ð%Ð%Ñ%ð(ð (ð (ð (ð (ð (ð (ð (ð (r(   r   N)Útypingr   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   Úautor	   r
   r   Ú__all__r   r(   r'   ú<module>r:      sÆ   ðð* Ð Ð Ð Ð Ð à .Ð .Ð .Ð .Ð .Ð .à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø #Ð #Ð #Ð #Ð #Ð #Ø -Ð -Ð -Ð -Ð -Ð -Ð -Ð -ð €Ð4Ð5Ñ5Ô5Øð5(ð 5(ð 5(ð 5(ð 5(Ð(ñ 5(ô 5(ñ „ñ 6Ô5ð5(ðp Ð
€€€r(   