§
    ‚Štjë  ã                   ó„   — d Z ddlmZ ddlmZ ddlmZ  ed¬¦  «        e G d„ d	e¦  «        ¦   «         ¦   «         Zd	gZd
S )zSegGpt model configurationé    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringzBAAI/seggpt-vit-large)Ú
checkpointc                   óä  ‡ — e Zd ZU dZdZdZeed<   dZeed<   dZ	eed<   d	Z
eed
<   dZeez  ed<   dZeed<   dZeed<   dZeee         z  eedf         z  ed<   dZeee         z  eeef         z  ed<   dZeed<   dZeed<   dZedz  ed<   dZeez  ed<   dZeee         z  eeef         z  ed<   dZeed <   dZeed!<   d"Zeed#<   d$Zee         eedf         z  ed%<   d&Zeed'<   ˆ fd(„Zd)„ Z ˆ xZ!S )*ÚSegGptConfigaþ  
    mlp_dim (`int`, *optional*):
        The dimensionality of the MLP layer in the Transformer encoder. If unset, defaults to
        `hidden_size` * 4.
    pretrain_image_size (`int`, *optional*, defaults to 224):
        The pretrained size of the absolute position embeddings.
    use_relative_position_embeddings (`bool`, *optional*, defaults to `True`):
        Whether to use relative position embeddings in the attention layers.
    merge_index (`int`, *optional*, defaults to 2):
        The index of the encoder layer to merge the embeddings.
    intermediate_hidden_state_indices (`list[int]`, *optional*, defaults to `[5, 11, 17, 23]`):
        The indices of the encoder layers which we store as features for the decoder.
    beta (`float`, *optional*, defaults to 0.01):
        Regularization factor for SegGptLoss (smooth-l1 loss).

    Example:

    ```python
    >>> from transformers import SegGptConfig, SegGptModel

    >>> # Initializing a SegGPT seggpt-vit-large style configuration
    >>> configuration = SegGptConfig()

    >>> # Initializing a model (with random weights) from the seggpt-vit-large style configuration
    >>> model = SegGptModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```Úseggpti   Úhidden_sizeé   Únum_hidden_layersé   Únum_attention_headsÚgeluÚ
hidden_actg        Úhidden_dropout_probg{®Gáz”?Úinitializer_rangeg�íµ ÷Æ°>Úlayer_norm_eps)i€  iÀ  .Ú
image_sizeÚ
patch_sizer   Únum_channelsTÚqkv_biasNÚmlp_dimgš™™™™™¹?Údrop_path_rateéà   Úpretrain_image_sizeé@   Údecoder_hidden_sizeÚ use_relative_position_embeddingsé   Úmerge_index)é   é   é   é   Ú!intermediate_hidden_state_indicesg{®Gáz„?Úbetac                 óŽ   •— | j         €t          | j        dz  ¦  «        n| j         | _          t          ¦   «         j        di |¤Ž d S )Né   © )r   Úintr   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €úm/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/models/seggpt/configuration_seggpt.pyr-   zSegGptConfig.__post_init__M   sK   ø€ Ø48´LÐ4H•s˜4Ô+¨aÑ/Ñ0Ô0Ð0ÈdÌlˆŒØ�‰ŒÔÐ'Ð' Ð'Ð'Ð'Ð'Ð'ó    c                 ó~   — | j         t          | j        ¦  «        k    rt          d| j         ›d| j        ›�¦  «        ‚dS )zOPart of `@strict`-powered validation. Validates the architecture of the config.zYMerge index must be less than the minimum encoder output index, but got self.merge_index=z, and self.intermediate_hidden_state_indices=N)r!   Úminr&   Ú
ValueError)r.   s    r1   Úvalidate_architecturez"SegGptConfig.validate_architectureQ   sd   € àÔ�c $Ô"HÑIÔIÒIÐIÝð ]Ð[_Ô[kð  ]ð  ]Ðswô  tZð  ]ð  ]ñô ð ð JÐIr2   )"Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer   r+   Ú__annotations__r   r   r   Ústrr   Úfloatr   r   r   ÚlistÚtupler   r   r   Úboolr   r   r   r   r   r!   r&   r'   r-   r6   Ú__classcell__)r0   s   @r1   r	   r	      sî  ø€ € € € € € ðð ð< €Jà€K�ÐÐÑØÐ�sÐÐÑØ!Ð˜Ð!Ð!Ñ!Ø€J�ÐÐÑØ'*Ð˜ ™Ð*Ð*Ñ*Ø#Ð�uÐ#Ð#Ñ#Ø €N�EÐ Ð Ñ Ø4>€J��d˜3”i‘ %¨¨S¨¤/Ñ1Ð>Ð>Ñ>Ø46€J��d˜3”i‘ %¨¨S¨¤/Ñ1Ð6Ð6Ñ6Ø€L�#ÐÐÑØ€HˆdÐÐÑØ€GˆS�4‰ZÐÐÑØ"%€N�E˜C‘KÐ%Ð%Ñ%Ø=@Ð˜˜t Cœy™¨5°°c°¬?Ñ:Ð@Ð@Ñ@Ø!Ð˜Ð!Ð!Ñ!Ø-1Ð$ dÐ1Ð1Ñ1Ø€K�ÐÐÑØETÐ% t¨C¤y°5¸¸c¸´?Ñ'BÐTÐTÑTØ€Dˆ%ÐÐÑð(ð (ð (ð (ð (ðð ð ð ð ð ð r2   r	   N)	r:   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   Ú__all__r*   r2   r1   ú<module>rG      s¢   ðð !Ð  à .Ð .Ð .Ð .Ð .Ð .à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø #Ð #Ð #Ð #Ð #Ð #ð €Ð2Ð3Ñ3Ô3Øð>ð >ð >ð >ð >Ð#ñ >ô >ñ „ñ 4Ô3ð>ðB Ð
€€€r2   