
    iA	                     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I-JEPA model configuration    )strict   )PreTrainedConfig)auto_docstringzfacebook/ijepa_vith14_1k)
checkpointc                   D    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dz  ed<   dZeed<    fdZ xZS ) IJepaConfiga  
    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 IJepaConfig, IJepaModel

    >>> # Initializing a IJEPA ijepa-base-patch16-224 style configuration
    >>> configuration = IJepaConfig()

    >>> # Initializing a model (with random weights) from the ijepa-base-patch16-224 style configuration
    >>> model = IJepaModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```ijepai   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_biasN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/ijepa/configuration_ijepa.pyr"   zIJepaConfig.__post_init__@   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"   __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%)d
)J( (r'   r	   N)	r+   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r    r'   r&   <module>r9      sG    ! . 3 # 56*(" *(  7*(Z /r'   