Ë
    ÜÓ^jë  ã                   ój   — 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y
)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        ‰| �  di |¤Ž y )Né   © )r   Úintr   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €úz/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/seggpt/configuration_seggpt.pyr-   zSegGptConfig.__post_init__M   s9   ø€ Ø48·L±LÐ4H”s˜4×+Ñ+¨aÑ/Ô0ÈdÏlÉlˆŒÜ‰ÑÑ' Ó'ó    c                 ó’   — | j                   t        | j                  «      kD  r%t        d| j                   ›d| j                  ›�«      ‚y)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   sb   € à×Ñœc $×"HÑ"HÓIÒIÜØlÐ[_×[kÑ[kÐZmð  n[Ðsw÷  tZñ  tZð  s\ð  ]óð ð Jr2   )"Ú__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Ø€L�#ÓØ€HˆdÓØ€GˆS�4‰ZÓØ"%€N�E˜C‘KÓ%Ø=@Ð˜˜t C™y™¨5°°c°©?Ñ:Ó@Ø!Ð˜Ó!Ø-1Ð$ dÓ1Ø€K�ÓØETÐ% t¨C¡y°5¸¸c¸±?Ñ'BÓTØ€Dˆ%Óô(ör2   r	   N)	r:   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   Ú__all__r*   r2   r1   ú<module>rG      sH   ðñ !å .å 3Ý #ñ Ð2Ô3Øô>Ð#ó >ó ó 4ð>ðB Ð
�r2   