ó
    qyüië  ã                   ód   • S r SSKJr  SSKJr  SSKJr  \" SS9\ " S S	\5      5       5       rS	/rg
)zSegGpt model configurationé    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringzBAAI/seggpt-vit-large)Ú
checkpointc                   ó¾  ^ • \ rS rSr% SrSrSr\\S'   Sr	\\S'   Sr
\\S	'   S
r\\S'   Sr\\-  \S'   Sr\\S'   Sr\\S'   Sr\\\   -  \\S4   -  \S'   Sr\\\   -  \\\4   -  \S'   Sr\\S'   Sr\\S'   Sr\S-  \S'   Sr\\-  \S'   Sr\\\   -  \\\4   -  \S'   S r\\S!'   Sr\\S"'   S#r\\S$'   S%r\\   \\S4   -  \S&'   S'r\\S('   U 4S) jr S* r!S+r"U =r#$ ),ÚSegGptConfigé   a¢  
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                 ó’   >• U R                   c  [        U R                  S-  5      OU R                   U l         [        TU ]  " S0 UD6  g )Né   © )r   Úintr   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €Úl/home/mande/repo/quber/.venv/lib/python3.13/site-packages/transformers/models/seggpt/configuration_seggpt.pyr.   ÚSegGptConfig.__post_init__M   s9   ø€ Ø48·L±LÑ4H”s˜4×+Ñ+¨aÑ/Ô0ÈdÏlÉlˆŒÜ‰ÒÑ' Ó'ó    c                 ó˜   • U R                   [        U R                  5      :”  a'  [        SU R                   < SU R                  < 35      eg)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    r2   Úvalidate_architectureÚ"SegGptConfig.validate_architectureQ   sb   € à×Ñœc $×"HÑ"HÓIÓIÜØlÐ[_×[kÑ[kÑZmð  n[Ðsw÷  tZñ  tZñ  s\ð  ]óð ð Jr4   )r   )$Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__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.   r8   Ú__static_attributes__Ú__classcell__)r1   s   @r2   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ˆ%Óõ(÷ð r4   r	   N)	r>   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   Ú__all__r+   r4   r2   Ú<module>rL      sH   ðñ !å .å 3Ý #ñ Ð2Ñ3Øô>Ð#ó >ó ó 4ð>ðB Ð
�r4   