
    i                         d dl mZ ddlmZ ddlmZmZ  ej                  e      Z	 ed      e G d de                    Z
 ed      e G d	 d
e                    Zd
dgZy)    )strict   )PreTrainedConfig)auto_docstringloggingzmicrosoft/git-base)
checkpointc                       e Zd ZU dZ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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z  ed<   dZeed<   y)GitVisionConfiga  
    Example:

    ```python
    >>> from transformers import GitVisionConfig, GitVisionModel

    >>> # Initializing a GitVisionConfig with microsoft/git-base style configuration
    >>> configuration = GitVisionConfig()

    >>> # Initializing a GitVisionModel (with random weights) from the microsoft/git-base style configuration
    >>> model = GitVisionModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```git_vision_modelvision_config   hidden_size   intermediate_size   num_hidden_layersnum_attention_headsr   num_channels   
image_size   
patch_size
quick_gelu
hidden_actgh㈵>layer_norm_epsg        attention_dropout{Gz?initializer_rangeN)__name__
__module____qualname____doc__
model_typebase_config_keyr   int__annotations__r   r   r   r   r   listtupler   r   strr   floatr   r        z/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/git/configuration_git.pyr
   r
      s      $J%OK!s!s!!L#47Jd3i%S/1746Jd3i%S/16"J" NE %(us{(#u#r,   r
   c                   h    e Zd ZU dZdZdeiZdZeez  dz  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	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	d<   dZedz  e	d<   dZee	d<   dZee	d<   d Zedz  e	d!<   d"Zeee   z  dz  e	d#<   dZedz  e	d$<    fd%Z  xZ!S )&	GitConfiga<  
    num_image_with_embedding (`int`, *optional*):
        The number of temporal embeddings to add, in case the model is used for video captioning/VQA.

    Examples:

    ```python
    >>> from transformers import GitConfig, GitModel

    >>> # Initializing a GIT microsoft/git-base style configuration
    >>> configuration = GitConfig()

    >>> # Initializing a model (with random weights) from the microsoft/git-base style configuration
    >>> model = GitModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```gitr   Ni:w  
vocab_sizer   r      r   r   r   r   r   gelur   g?hidden_dropout_probattention_probs_dropout_probi   max_position_embeddingsr   r   g-q=r   r   pad_token_idT	use_cacheFtie_word_embeddingse   bos_token_idf   eos_token_idnum_image_with_embeddingc                     | j                   %t               | _         t        j                  d       n4t	        | j                   t
              rt        di | j                   | _         t        |   di | y )NzLvision_config is None. initializing the GitVisionConfig with default values.r+   )r   r
   loggerinfo
isinstancedictsuper__post_init__)selfkwargs	__class__s     r-   rE   zGitConfig.__post_init__h   s]    %!0!2DKKfg**D1!0!F43E3E!FD''r,   )"r   r    r!   r"   r#   r
   sub_configsr   rC   r&   r1   r%   r   r   r   r   r   r)   r4   r*   r5   r6   r   r   r7   r8   boolr9   r;   r=   r'   r>   rE   __classcell__)rH   s   @r-   r/   r/   <   s   & J"O4K37M4/)D07JKs!!!s!J'**03 %#+3#'S'#u#!NE! L#* It %%"L#*"+.L#S	/D(.+/cDj/( (r,   r/   N)huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r   
get_loggerr   r@   r
   r/   __all__r+   r,   r-   <module>rQ      s     / 3 , 
		H	% /0$& $  1$B /00(  0(  10(f )
*r,   