§
    ‚ŠtjK  ã                   ó„   — 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d
S )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<   d+S )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   © ó    úg/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/models/xlm/configuration_xlm.pyr	   r	      sz  € € € € € € ðCð 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      s©   ðð Ð à .Ð .Ð .Ð .Ð .Ð .à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø #Ð #Ð #Ð #Ð #Ð #ð €Ð7Ð8Ñ8Ô8Øðp%ð p%ð p%ð p%ð p%Ð ñ p%ô p%ñ „ñ 9Ô8ðp%ðf ˆ-€€€rE   