
    i2
                     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DeiT model configuration    )strict   )PreTrainedConfig)auto_docstringz(facebook/deit-base-distilled-patch16-224)
checkpointc                   R    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d<   dZeez  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e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ed<   dZedz  ed<   dZeed<    fd Z xZS )!
DeiTConfigaN  
    encoder_stride (`int`, *optional*, defaults to 16):
        Factor to increase the spatial resolution by in the decoder head for masked image modeling.
    pooler_output_size (`int`, *optional*):
        Dimensionality of the pooler layer. If None, defaults to `hidden_size`.
    pooler_act (`str`, *optional*, defaults to `"tanh"`):
        The activation function to be used by the pooler.

    Example:

    ```python
    >>> from transformers import DeiTConfig, DeiTModel

    >>> # Initializing a DeiT deit-base-distilled-patch16-224 style configuration
    >>> configuration = DeiTConfig()

    >>> # Initializing a model (with random weights) from the deit-base-distilled-patch16-224 style configuration
    >>> model = DeiTModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```deiti   hidden_size   num_hidden_layersnum_attention_headsi   intermediate_sizegelu
hidden_actg        hidden_dropout_probattention_probs_dropout_probg{Gz?initializer_rangeg-q=layer_norm_eps   
image_size   
patch_sizer   num_channelsTqkv_biasencoder_strideNpooler_output_sizetanh
pooler_actc                 v    | j                   r| j                   n| j                  | _         t        |   di | y )N )r   r   super__post_init__)selfkwargs	__class__s     |/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/deit/configuration_deit.pyr#   zDeiTConfig.__post_init__C   s2    =A=T=T$"9"9Z^ZjZj''    )__name__
__module____qualname____doc__
model_typer   int__annotations__r   r   r   r   strr   floatr   r   r   r   listtupler   r   r   boolr   r   r   r#   __classcell__)r&   s   @r'   r	   r	      s    . JKs!!!s!J'**03 %#+3#u#!NE!47Jd3i%S/1746Jd3i%S/16L#HdNC%)d
)J( (r(   r	   N)	r,   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r!   r(   r'   <module>r:      sH     . 3 # EF-(! -(  G-(` .r(   