
    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BART model configuration    )strict   )PreTrainedConfig)auto_docstringzfacebook/bart-large)
checkpointc                   n    e Zd ZU dZdZdgZddddZ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dz  e	d<   dZedz  e	d<   dZedz  e	d<   dZedz  e	d<   dZedz  e	d<   dZedz  e	d<   dZedz  e	d<   d
Zedz  e	d<   dZeez  dz  e	d<   dZeez  dz  e	d<   dZeez  dz  e	d<   dZedz  e	d<   dZeez  dz  e	d<   d Zedz  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dz  e	d*<   d(Z$edz  e	d+<   d(Z%ee"e   z  dz  e	d,<   d Z&edz  e	d-<   d"Z'ee	d.<    fd/Z( xZ)S )0
BartConfiga  
    Example:

    ```python
    >>> from transformers import BartConfig, BartModel

    >>> # Initializing a BART facebook/bart-large style configuration
    >>> configuration = BartConfig()

    >>> # Initializing a model (with random weights) from the facebook/bart-large style configuration
    >>> model = BartModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```bartpast_key_valuesencoder_attention_headsd_modelencoder_layers)num_attention_headshidden_sizenum_hidden_layersiY  
vocab_sizei   max_position_embeddings   Ni   encoder_ffn_dim   decoder_layersdecoder_ffn_dimdecoder_attention_headsg        encoder_layerdropdecoder_layerdropgeluactivation_functiong?dropoutattention_dropoutactivation_dropoutg{Gz?init_stdclassifier_dropoutFscale_embeddingT	use_cache   pad_token_idr   bos_token_id   eos_token_idis_encoder_decoderdecoder_start_token_idforced_eos_token_id
is_decodertie_word_embeddingsc                 j    | j                   |j                  dd      | _        t        |   di | y )N
num_labelsr    )id2labelpopr0   super__post_init__)selfkwargs	__class__s     |/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/bart/configuration_bart.pyr5   zBartConfig.__post_init__M   s1     == $jjq9DO''    )*__name__
__module____qualname____doc__
model_typekeys_to_ignore_at_inferenceattribute_mapr   int__annotations__r   r   r   r   r   r   r   r   floatr   r   strr   r   r   r    r!   r"   r#   boolr$   r&   r'   r)   listr*   r+   r,   r-   r.   r5   __classcell__)r8   s   @r9   r	   r	      s     J#4"58 -M J#'S'!#NC$J#"&OS4Z&*,S4Z,!#NC$J#"&OS4Z&*,S4Z,&)ut|)&)ut|)&,t,GS4Z"%GUS[4%,/us{T)/-0d*0!Hedl!-0d*0#(OTD[(It L#*  L#* +,L#S	/D(,&*t*)*C$J*23tCy4/3#Jt# $$( (r:   r	   N)	r>   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r1   r:   r9   <module>rM      sG     . 3 # 01;(! ;(  2;(| .r:   