Ë
    T^(h�  ã                   ó`   — d Z ddlmZ ddlmZ  ej
                  e«      Z G d„ de«      ZdgZ	y)zPixtral model configurationé   )ÚPretrainedConfig)Úloggingc                   ó>   ‡ — e Zd ZdZdZ	 	 	 	 	 	 	 	 	 	 	 dˆ fd„	Zˆ xZS )ÚPixtralVisionConfigaT	  
    This is the configuration class to store the configuration of a [`PixtralVisionModel`]. It is used to instantiate an
    Pixtral vision encoder according to the specified arguments, defining the model architecture. Instantiating a configuration
    with the defaults will yield a similar configuration to the vision encoder used by Pixtral-12B.

    e.g. [pixtral-hf/pixtral-9b](https://huggingface.co/pixtral-hf/pixtral-9b)

    Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
    documentation from [`PretrainedConfig`] for more information.

    Args:
        hidden_size (`int`, *optional*, defaults to 1024):
            Dimension of the hidden representations.
        intermediate_size (`int`, *optional*, defaults to 4096):
            Dimension of the MLP representations.
        num_hidden_layers (`int`, *optional*, defaults to 24):
            Number of hidden layers in the Transformer encoder.
        num_attention_heads (`int`, *optional*, defaults to 16):
            Number of attention heads in the Transformer encoder.
        num_channels (`int`, *optional*, defaults to 3):
            Number of input channels in the input images.
        image_size (`int`, *optional*, defaults to 1024):
            Max dimension of the input images.
        patch_size (`int`, *optional*, defaults to 16):
            Size of the image patches.
        hidden_act (`str`, *optional*, defaults to `"gelu"`):
            Activation function used in the hidden layers.
        attention_dropout (`float`, *optional*, defaults to 0.0):
            Dropout probability for the attention layers.
        rope_theta (`float`, *optional*, defaults to 10000.0):
            The base period of the RoPE embeddings.
        initializer_range (`float`, *optional*, defaults to 0.02):
            The standard deviation of the truncated_normal_initializer for initializing all weight matrices.

    Example:

    ```python
    >>> from transformers import PixtralVisionModel, PixtralVisionConfig

    >>> # Initializing a Pixtral-12B style configuration
    >>> config = PixtralVisionConfig()

    >>> # Initializing a model (with randomly initialized weights) from the configuration
    >>> model = PixtralVisionModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```Úpixtralc                 óÒ   •— t        ‰| �  di |¤Ž || _        || _        || _        || _        || _        || _        || _        |	| _	        || _
        |
| _        ||z  | _        || _        y )N© )ÚsuperÚ__init__Úhidden_sizeÚintermediate_sizeÚnum_hidden_layersÚnum_attention_headsÚnum_channelsÚ
patch_sizeÚ
image_sizeÚattention_dropoutÚ
hidden_actÚ
rope_thetaÚhead_dimÚinitializer_range)Úselfr   r   r   r   r   r   r   r   r   r   r   ÚkwargsÚ	__class__s                €úo/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/transformers/models/pixtral/configuration_pixtral.pyr   zPixtralVisionConfig.__init__K   sv   ø€ ô 	‰ÑÑ"˜6Ò"à&ˆÔØ!2ˆÔØ!2ˆÔØ#6ˆÔ Ø(ˆÔØ$ˆŒØ$ˆŒØ!2ˆÔØ$ˆŒØ$ˆŒØ#Ð':Ñ:ˆŒØ!2ˆÕó    )é   i   é   é   r   r   r   Úgelug        g     ˆÃ@g{®Gáz”?)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer   Ú__classcell__)r   s   @r   r   r      s=   ø„ ñ/ðb €Jð ØØØØØØØØØØ÷3ñ 3r   r   N)
r$   Úconfiguration_utilsr   Úutilsr   Ú
get_loggerr!   Úloggerr   Ú__all__r	   r   r   ú<module>r,      s>   ðñ "å 3Ý ð 
ˆ×	Ñ	˜HÓ	%€ôP3Ð*ô P3ðf !Ð
!�r   