
    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Bros model configuration    )strict   )PreTrainedConfig)auto_docstringzjinho8345/bros-base-uncased)
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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ed<   dZeed<   d Zeed!<   dZeez  ed"<   d#Zeed$<   d#Zeed%<    fd&Z xZS )'
BrosConfiga3  
    dim_bbox (`int`, *optional*, defaults to 8):
        The dimension of the bounding box coordinates. (x0, y1, x1, y0, x1, y1, x0, y1)
    bbox_scale (`float`, *optional*, defaults to 100.0):
        The scale factor of the bounding box coordinates.
    n_relations (`int`, *optional*, defaults to 1):
        The number of relations for SpadeEE(entity extraction), SpadeEL(entity linking) head.

    Examples:

    ```python
    >>> from transformers import BrosConfig, BrosModel

    >>> # Initializing a BROS jinho8345/bros-base-uncased style configuration
    >>> configuration = BrosConfig()

    >>> # Initializing a model from the jinho8345/bros-base-uncased style configuration
    >>> model = BrosModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```brosi:w  
vocab_sizei   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_id   dim_bboxg      Y@
bbox_scale   n_relationsclassifier_dropout_probF
is_decoderadd_cross_attentionc                     | j                   dz  | _        | j                  | j                  z  | _        | j                   | j                  z  | _        t        |   di | y )N    )r   dim_bbox_sinusoid_emb_2dr   dim_bbox_sinusoid_emb_1dr   dim_bbox_projectionsuper__post_init__)selfkwargs	__class__s     |/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/bros/configuration_bros.pyr*   zBrosConfig.__post_init__F   sV    (,(8(8A(=%(,(E(E(V%#'#3#3t7O7O#O ''    )__name__
__module____qualname____doc__
model_typer   int__annotations__r   r   r   r   r   strr   floatr   r   r   r   r   r   r   r   r   r    r!   boolr"   r*   __classcell__)r-   s   @r.   r	   r	      s    . JJKs!!!s!J'**03 %#+3#&S&OS#u#!NE! L#* HcJK+.US[.J %%( (r/   r	   N)	r3   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r%   r/   r.   <module>r?      sG     . 3 # 892(! 2(  :2(j .r/   