Ë
    ÜÓ^jK  ã                   ó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XLM configurationé    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringzFacebookAI/xlm-mlm-en-2048)Ú
checkpointc                   ó&  — e Zd ZU dZdZddddddd	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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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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z  ed.<   d%Z#eed/<   d%Z$eed0<   d1Z%ed+z  ed2<   d1Z&eed3<   d4Z'ed+z  ed	<   d1Z(ed+z  ed<   dZ)ee*e   z  d+z  ed<   dZ+eed5<   y+)6Ú	XLMConfigaw  
    gelu_activation (`bool`, *optional*, defaults to `True`):
        Whether or not to use *gelu* for the activations instead of *relu*.
    sinusoidal_embeddings (`bool`, *optional*, defaults to `False`):
        Whether or not to use sinusoidal positional embeddings instead of absolute positional embeddings.
    causal (`bool`, *optional*, defaults to `False`):
        Whether or not the model should behave in a causal manner. Causal models use a triangular attention mask in
        order to only attend to the left-side context instead if a bidirectional context.
    asm (`bool`, *optional*, defaults to `False`):
        Whether or not to use an adaptive log softmax projection layer instead of a linear layer for the prediction
        layer.
    n_langs (`int`, *optional*, defaults to 1):
        The number of languages the model handles. Set to 1 for monolingual models.
    use_lang_emb (`bool`, *optional*, defaults to `True`):
        Whether to use language embeddings. Some models use additional language embeddings, see [the multilingual
        models page](http://huggingface.co/transformers/multilingual.html#xlm-language-embeddings) for information
        on how to use them.
    embed_init_std (`float`, *optional*, defaults to 2048^-0.5):
        The standard deviation of the truncated_normal_initializer for initializing the embedding matrices.
    unk_index (`int`, *optional*, defaults to 3):
        The index of the unknown token in the vocabulary.
    mask_index (`int`, *optional*, defaults to 5):
        The index of the masking token in the vocabulary.
    is_encoder (`bool`, *optional*, defaults to `True`):
        Whether or not the initialized model should be a transformer encoder or decoder as seen in Vaswani et al.
    summary_type (`string`, *optional*, defaults to "first"):
        Argument used when doing sequence summary. Used in the sequence classification and multiple choice models.
        Has to be one of the following options:
            - `"last"`: Take the last token hidden state (like XLNet).
            - `"first"`: Take the first token hidden state (like BERT).
            - `"mean"`: Take the mean of all tokens hidden states.
            - `"cls_index"`: Supply a Tensor of classification token position (like GPT/GPT-2).
            - `"attn"`: Not implemented now, use multi-head attention.
    summary_use_proj (`bool`, *optional*, defaults to `True`):
        Argument used when doing sequence summary. Used in the sequence classification and multiple choice models.
        Whether or not to add a projection after the vector extraction.
    summary_activation (`str`, *optional*):
        Argument used when doing sequence summary. Used in the sequence classification and multiple choice models.
        Pass `"tanh"` for a tanh activation to the output, any other value will result in no activation.
    summary_proj_to_labels (`bool`, *optional*, defaults to `True`):
        Used in the sequence classification and multiple choice models.
        Whether the projection outputs should have `config.num_labels` or `config.hidden_size` classes.
    summary_first_dropout (`float`, *optional*, defaults to 0.1):
        Used in the sequence classification and multiple choice models.
        The dropout ratio to be used after the projection and activation.
    start_n_top (`int`, *optional*, defaults to 5):
        Used in the SQuAD evaluation script.
    end_n_top (`int`, *optional*, defaults to 5):
        Used in the SQuAD evaluation script.
    mask_token_id (`int`, *optional*, defaults to 0):
        Model agnostic parameter to identify masked tokens when generating text in an MLM context.
    lang_id (`int`, *optional*, defaults to 1):
        The ID of the language used by the model. This parameter is used when generating text in a given language.

    Examples:

    ```python
    >>> from transformers import XLMConfig, XLMModel

    >>> # Initializing a XLM configuration
    >>> configuration = XLMConfig()

    >>> # Initializing a model (with random weights) from the configuration
    >>> model = XLMModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```ÚxlmÚemb_dimÚn_headsÚn_layersÚ
vocab_sizeÚbos_token_idÚeos_token_idÚpad_token_id)Úhidden_sizeÚnum_attention_headsÚnum_hidden_layersÚn_wordsÚ	bos_indexÚ	eos_indexÚ	pad_indexiÁu  i   é   é   gš™™™™™¹?ÚdropoutÚattention_dropoutTÚgelu_activationFÚsinusoidal_embeddingsÚcausalÚasmé   Ún_langsÚuse_lang_embi   Úmax_position_embeddingsgÍ;fž –?Úembed_init_stdgê-�™—q=Úlayer_norm_epsg{®Gáz”?Úinit_stdr   Ú	unk_indexé   Ú
mask_indexÚ
is_encoderÚfirstÚsummary_typeÚsummary_use_projNÚsummary_activationÚsummary_proj_to_labelsÚsummary_first_dropoutÚstart_n_topÚ	end_n_topr   Úmask_token_idÚlang_idé   Útie_word_embeddings),Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typeÚattribute_mapr   ÚintÚ__annotations__r   r   r   r   Úfloatr   r   Úboolr   r   r    r"   r#   r$   r%   r&   r'   r(   r*   r+   r-   Ústrr.   r/   r0   r1   r2   r3   r4   r5   r   r   r   Úlistr7   © ó    út/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/xlm/configuration_xlm.pyr	   r	      sŸ  … ñCðJ €Jà Ø(Ø'ØØ#Ø#Ø#ñ€Mð €J�ÓØ€GˆSÓØ€HˆcÓØ€GˆSÓØ€GˆU�S‰[ÓØ%(Ð�u˜s‘{Ó(Ø €O�TÓ Ø"'Ð˜4Ó'Ø€FˆDÓØ€CˆÓØ€GˆSÓØ€L�$ÓØ#&Ð˜SÓ&Ø&€N�EÓ&Ø!€N�EÓ!Ø€HˆeÓØ€IˆsÓØ€J�ÓØ€J�ÓØ€L�#ÓØ!Ð�dÓ!Ø%)Ð˜˜d™
Ó)Ø#'Ð˜DÓ'Ø),Ð˜5 3™;Ó,Ø€K�ÓØ€IˆsÓØ !€M�3˜‘:Ó!Ø€GˆSÓØ €L�#˜‘*Ó Ø €L�#˜‘*Ó Ø+,€L�#˜˜S™	‘/ DÑ(Ó,Ø $Ð˜Ô$rE   r	   N)	r;   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   Ú__all__rD   rE   rF   ú<module>rK      sJ   ðñ å .å 3Ý #ñ Ð7Ô8Øôp%Ð ó p%ó ó 9ðp%ðf ˆ-�rE   