
    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LUKE configuration    )strict   )PreTrainedConfig)auto_docstringzstudio-ousia/luke-base)
checkpointc                   d   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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z  dz  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&<   y)'
LukeConfiga  
    entity_vocab_size (`int`, *optional*, defaults to 500000):
        Entity vocabulary size of the LUKE model. Defines the number of different entities that can be represented
        by the `entity_ids` passed when calling [`LukeModel`].
    entity_emb_size (`int`, *optional*, defaults to 256):
        The number of dimensions of the entity embedding.
    use_entity_aware_attention (`bool`, *optional*, defaults to `True`):
        Whether or not the model should use the entity-aware self-attention mechanism proposed in [LUKE: Deep
        Contextualized Entity Representations with Entity-aware Self-attention (Yamada et
        al.)](https://huggingface.co/papers/2010.01057).

    Examples:

    ```python
    >>> from transformers import LukeConfig, LukeModel

    >>> # Initializing a LUKE configuration
    >>> configuration = LukeConfig()

    >>> # Initializing a model from the configuration
    >>> model = LukeModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```lukei[  
vocab_sizei  entity_vocab_sizei   hidden_size   entity_emb_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_epsTuse_entity_aware_attentionNclassifier_dropout   pad_token_idr   bos_token_ideos_token_idtie_word_embeddings)__name__
__module____qualname____doc__
model_typer   int__annotations__r   r   r   r   r   r   r   strr   floatr   r   r   r   r   r   boolr   r    r!   r"   listr#        |/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/luke/configuration_luke.pyr	   r	      s   4 JJ#s#KOSs!!!s!J'**03 %#+3#&S&OS#u#!NE!'++-1d*1 L#*  L#* +,L#S	/D(, $$r0   r	   N)	r'   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r/   r0   r1   <module>r6      sG     . 3 # 340%! 0%  50%f .r0   