
    Z j
                     d    S r SSKJr  SSKJr  SSKJr  \" SS9\ " S S	\5      5       5       rS	/rg
)zBros model configuration    )strict   )PreTrainedConfig)auto_docstringzjinho8345/bros-base-uncased)
checkpointc                   T  ^  \ rS rSr% SrSrSr\\S'   Sr	\\S'   Sr
\\S	'   Sr\\S
'   Sr\\S'   Sr\\S'   Sr\\-  \S'   Sr\\-  \S'   Sr\\S'   Sr\\S'   Sr\\S'   Sr\\S'   Sr\S-  \S'   Sr\\S'   Sr\\S '   S!r\\S"'   Sr\\-  \S#'   S$r\\S%'   S$r\\S&'   U 4S' jrS(rU =r $ ))
BrosConfig   a  
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                    > U R                   S-  U l        U R                  U R                  -  U l        U R                   U R                  -  U l        [        TU ]  " S0 UD6  g )N    )r   dim_bbox_sinusoid_emb_2dr   dim_bbox_sinusoid_emb_1dr   dim_bbox_projectionsuper__post_init__)selfkwargs	__class__s     |/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/transformers/models/bros/configuration_bros.pyr+   BrosConfig.__post_init__F   sV    (,(8(8A(=%(,(E(E(V%#'#3#3t7O7O#O ''    )r)   r(   r'   )!__name__
__module____qualname____firstlineno____doc__
model_typer   int__annotations__r   r   r   r   r   strr   floatr   r   r   r   r   r   r   r   r    r!   r"   boolr#   r+   __static_attributes____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 %%( (r1   r	   N)	r6   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r&   r1   r/   <module>rC      sG     . 3 # 892(! 2(  :2(j .r1   