Ë
    S^(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CPMAnt model configurationé   )ÚPretrainedConfig)Úloggingc                   ó„   ‡ — e Zd ZdZdZ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddedededededed	ed
edededededededefˆ fd„Zˆ xZ	S )ÚCpmAntConfiga·  
    This is the configuration class to store the configuration of a [`CpmAntModel`]. It is used to instantiate an
    CPMAnt model according to the specified arguments, defining the model architecture. Instantiating a configuration
    with the defaults will yield a similar configuration to that of the CPMAnt
    [openbmb/cpm-ant-10b](https://huggingface.co/openbmb/cpm-ant-10b) architecture.

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

    Args:
        vocab_size (`int`, *optional*, defaults to 30720):
            Vocabulary size of the CPMAnt model. Defines the number of different tokens that can be represented by the
            `input` passed when calling [`CpmAntModel`].
        hidden_size (`int`, *optional*, defaults to 4096):
            Dimension of the encoder layers.
        num_attention_heads (`int`, *optional*, defaults to 32):
            Number of attention heads in the Transformer encoder.
        dim_head (`int`, *optional*, defaults to 128):
            Dimension of attention heads for each attention layer in the Transformer encoder.
        dim_ff (`int`, *optional*, defaults to 10240):
            Dimension of the "intermediate" (i.e., feed-forward) layer in the Transformer encoder.
        num_hidden_layers (`int`, *optional*, defaults to 48):
            Number of layers of the Transformer encoder.
        dropout_p (`float`, *optional*, defaults to 0.0):
            The dropout probability for all fully connected layers in the embeddings, encoder.
        position_bias_num_buckets (`int`, *optional*, defaults to 512):
            The number of position_bias buckets.
        position_bias_max_distance (`int`, *optional*, defaults to 2048):
            The maximum sequence length that this model might ever be used with. Typically set this to something large
            just in case (e.g., 512 or 1024 or 2048).
        eps (`float`, *optional*, defaults to 1e-06):
            The epsilon used by the layer normalization layers.
        init_std (`float`, *optional*, defaults to 1.0):
            Initialize parameters with std = init_std.
        prompt_types (`int`, *optional*, defaults to 32):
            The type of prompt.
        prompt_length (`int`, *optional*, defaults to 32):
            The length of prompt.
        segment_types (`int`, *optional*, defaults to 32):
            The type of segment.
        use_cache (`bool`, *optional*, defaults to `True`):
            Whether to use cache.

    Example:

    ```python
    >>> from transformers import CpmAntModel, CpmAntConfig

    >>> # Initializing a CPMAnt cpm-ant-10b style configuration
    >>> configuration = CpmAntConfig()

    >>> # Initializing a model from the cpm-ant-10b style configuration
    >>> model = CpmAntModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```ÚcpmantÚ
vocab_sizeÚhidden_sizeÚnum_attention_headsÚdim_headÚdim_ffÚnum_hidden_layersÚ	dropout_pÚposition_bias_num_bucketsÚposition_bias_max_distanceÚepsÚinit_stdÚprompt_typesÚprompt_lengthÚsegment_typesÚ	use_cachec                 óö   •— t        ‰| �  di |¤Ž || _        || _        || _        || _        || _        || _        || _        || _	        || _
        |	| _        || _        |
| _        || _        || _        || _        y )N© )ÚsuperÚ__init__r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   )Úselfr   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   ÚkwargsÚ	__class__s                    €úm/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/transformers/models/cpmant/configuration_cpmant.pyr   zCpmAntConfig.__init__U   s†   ø€ ô& 	‰ÑÑ"˜6Ò"Ø(ˆÔØ*ˆÔØ*ˆÔØ&ˆÔØ#6ˆÔ Ø ˆŒØˆŒØ!2ˆÔØ)BˆÔ&Ø*DˆÔ'Ø"ˆŒØˆŒØ"ˆŒØ$ˆŒØ ˆ�ó    )i x  i   é    é€   i (  é0   g        i   i   g�íµ ÷Æ°>g      ð?r    r    r    T)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typeÚintÚfloatÚboolr   Ú__classcell__)r   s   @r   r   r      sÝ   ø„ ñ8ðt €Jð  ØØ#%ØØØ!#ØØ),Ø*.ØØØØØØñ!"!àð"!ð ð"!ð !ð	"!ð
 ð"!ð ð"!ð ð"!ð ð"!ð $'ð"!ð %(ð"!ð ð"!ð ð"!ð ð"!ð ð"!ð ð"!ð  ÷!"!ñ "!r   r   N)
r&   Úconfiguration_utilsr   Úutilsr   Ú
get_loggerr#   Úloggerr   Ú__all__r   r   r   ú<module>r1      s>   ðñ !å 3Ý ð 
ˆ×	Ñ	˜HÓ	%€ô_!Ð#ô _!ðD Ð
�r   