
    i                     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CANINE model configuration    )strict   )PreTrainedConfig)auto_docstringzgoogle/canine-s)
checkpointc                   J   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d<   dZeed<   dZedz  ed<   dZedz  ed<   dZe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%<   y)&CanineConfiga.  
    downsampling_rate (`int`, *optional*, defaults to 4):
        The rate at which to downsample the original character sequence length before applying the deep Transformer
        encoder.
    upsampling_kernel_size (`int`, *optional*, defaults to 4):
        The kernel size (i.e. the number of characters in each window) of the convolutional projection layer when
        projecting back from `hidden_size`*2 to `hidden_size`.
    num_hash_functions (`int`, *optional*, defaults to 8):
        The number of hash functions to use. Each hash function has its own embedding matrix.
    num_hash_buckets (`int`, *optional*, defaults to 16384):
        The number of hash buckets to use.
    local_transformer_stride (`int`, *optional*, defaults to 128):
        The stride of the local attention of the first shallow Transformer encoder. Defaults to 128 for good
        TPU/XLA memory alignment.

    Example:

    ```python
    >>> from transformers import CanineConfig, CanineModel

    >>> # Initializing a CANINE google/canine-s style configuration
    >>> configuration = CanineConfig()

    >>> # Initializing a model (with random weights) from the google/canine-s style configuration
    >>> model = CanineModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```caninei   hidden_size   num_hidden_layersnum_attention_headsi   intermediate_sizegelu
hidden_actg?hidden_dropout_probattention_probs_dropout_probi @  max_position_embeddings   type_vocab_sizeg{Gz?initializer_rangeg-q=layer_norm_epsr   Npad_token_idi   bos_token_idi  eos_token_id   downsampling_rateupsampling_kernel_size   num_hash_functionsnum_hash_buckets   local_transformer_stride)__name__
__module____qualname____doc__
model_typer   int__annotations__r   r   r   r   strr   floatr   r   r   r   r   r   r   r   listr   r   r    r!   r#        /var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/canine/configuration_canine.pyr	   r	      s    < JKs!!!s!J'**03 %#+3#(S(OS#u#!NE! L#* %L#*%+1L#S	/D(1s"#C#!c!$'c'r/   r	   N)	r'   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r.   r/   r0   <module>r5      sH    ! . 3 # ,-3(# 3(  .3(l 
r/   