+
    œ°³j—  ã                   ó  € R t ^ RIHt ^RIHt ^RIHtHt ]P                  ! ]	4      t
]! RR7      ] ! R R]4      4       4       t]! RR7      ] ! R R	]4      4       4       t]! RR7      ] ! R
 R]4      4       4       t. ROtR# )zBridgeTower model configuration)Ústrict)ÚPreTrainedConfig)Úauto_docstringÚloggingzBridgeTower/bridgetower-base)Ú
checkpointc                   ó`   a € ] tR t^t o RtRtRtRt^t^t	^t
Rt^tRtRtRtRtV 3R	 ltR
tV tR# )ÚBridgeTowerVisionConfiga[  
stop_gradient (`bool`, *optional*, defaults to `False`):
    Whether to stop gradient for training.
share_layernorm (`bool`, *optional*, defaults to `True`):
    Whether LayerNorm layers are shared.
remove_last_layer (`bool`, *optional*, defaults to `False`):
    Whether to remove the last layer from the vision encoder.

Example:

```python
>>> from transformers import BridgeTowerVisionConfig

>>> # Initializing a BridgeTower BridgeTower/bridgetower-base style configuration for the vision model
>>> configuration = BridgeTowerVisionConfig()

>>> # Accessing the configuration
>>> configuration
```Úbridgetower_vision_modelÚvision_configé   i   çñhãˆµøä>FTc                ó.  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ S[S[ ,          ,          S[S[ S[ 3,          ,          ;R&   S[ S[S[ ,          ,          S[S[ S[ 3,          ,          ;R&   S[S[ ,          ;R&   S[;R&   S[;R&   S[;R	&   S[;R
&   # )é   Úhidden_sizeÚnum_hidden_layersÚnum_channelsÚ
patch_sizeÚ
image_sizeÚinitializer_factorÚlayer_norm_epsÚstop_gradientÚshare_layernormÚremove_last_layer)ÚintÚlistÚtupleÚfloatÚbool)ÚformatÚ__classdict__s   "€Úz/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/bridgetower/configuration_bridgetower.pyÚ__annotate__Ú$BridgeTowerVisionConfig.__annotate__   s½   ø‡ ‚ ñ4 Ññ5 ñ6 Ññ7 ñ8 Ññ9 ñ: ‘d™3•i•¡%©©S¨¥/Õ1Ñ6ñ; ñ< ‘d™3•i•¡%©©S¨¥/Õ1Ñ7ñ= ñ> ¡�Ñ'ñ? ñ@ Ñ!ñA ñB ÑñC ñD Ñ ñE ñF Ñ#òG ó    © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typeÚbase_config_keyr   r   r   r   r   r   r   r   r   r   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r   s   @r    r   r      sS   ø‡ € ñð( ,€JØ%€Oà€KØÐØ€LØ46€JØ47€JØ&'ÐØ!€NØ€MØ €OØ#Ð÷G ƒ r#   r   c                   ó€   a € ] tR t^?t o RtRtRtRtRt^t	^t
^tRtRtRtRtR	t^tR
t^t^ t^tRtRtRtV 3R ltRtV tR# )ÚBridgeTowerTextConfiga  
Example:

```python
>>> from transformers import BridgeTowerTextConfig

>>> # Initializing a BridgeTower BridgeTower/bridgetower-base style configuration for the text model
>>> configuration = BridgeTowerTextConfig()

>>> # Accessing the configuration
>>> configuration
```Úbridgetower_text_modelÚtext_configiYÄ  r   i   Úgelugš™™™™™¹?i  r   TFc                ól  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[S[ ,          ;R&   S[ ;R&   S[;R&   S[S[ ,          ;R&   S[S[ ,          ;R	&   S[ ;R
&   S[ ;R&   S[;R&   S[ R,          ;R&   S[ R,          ;R&   S[ S[S[ ,          ,          R,          ;R&   S[;R&   S[;R&   S[;R&   # )r   Ú
vocab_sizer   r   Únum_attention_headsr   Úintermediate_sizeÚ
hidden_actÚhidden_dropout_probÚattention_probs_dropout_probÚmax_position_embeddingsÚtype_vocab_sizer   NÚpad_token_idÚbos_token_idÚeos_token_idÚ	use_cacheÚ
is_decoderÚadd_cross_attention)r   r   Ústrr   r   )r   r   s   "€r    r!   Ú"BridgeTowerTextConfig.__annotate__?   s  ø‡ ‚ ñ& Ññ' ñ( Ññ) ñ* Ññ+ ñ, Ñ!ñ- ñ. ¡�Ñ'ñ/ ñ0 Ñ!ñ1 ñ2 Ññ3 ñ4 ¡�Ñ*ñ5 ñ6 #(©#¥+Ñ3ñ7 ñ8 !Ñ&ñ9 ñ: Ññ; ñ< Ñ!ñ= ñ> ˜•*Ñ ñ? ñ@ ˜•*Ñ ñA ñB ™™S�	•/ DÕ(Ñ,ñC ñD ÑñE ñF ÑñG ñH Ñ%òI r#   r$   N)r%   r&   r'   r(   r)   r*   r+   r6   r   r   r7   r   r8   r9   r:   r;   r<   r=   r   r>   r?   r@   rA   rB   rC   r,   r-   r.   r/   s   @r    r1   r1   ?   s€   ø‡ € ñð *€JØ#€Oà€JØ€KØÐØ!ÐØ&'ÐØ!ÐØ€JØ'*ÐØ03Ð Ø#&ÐØ€OØ!€NØ €LØ €LØ+,€LØ€IØ€JØ %Ð÷I ƒ r#   r1   c                   ó†   a a€ ] tR t^ft oRtRtR]R]/tRt	Rt
Rt^tRtR	tR
t^t^tR	tR	tRtRtV 3R ltV3R ltRtVtV ;t# )ÚBridgeTowerConfiga�  
share_cross_modal_transformer_layers (`bool`, *optional*, defaults to `True`):
    Whether cross modal transformer layers are shared.
share_link_tower_layers (`bool`, *optional*, defaults to `False`):
    Whether the bridge/link tower layers are shared.
link_tower_type (`str`, *optional*, defaults to `"add"`):
    Type of the bridge/link layer.
init_layernorm_from_vision_encoder (`bool`, *optional*, defaults to `False`):
    Whether to init LayerNorm from the vision encoder.

Example:

```python
>>> from transformers import BridgeTowerModel, BridgeTowerConfig

>>> # Initializing a BridgeTower BridgeTower/bridgetower-base style configuration
>>> configuration = BridgeTowerConfig()

>>> # Initializing a model from the BridgeTower/bridgetower-base style configuration
>>> model = BridgeTowerModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úbridgetowerr3   r
   Tr4   r   r   FÚaddNc                ó$  <€ VP                  R R4      pVP                  RR4      pV P                  f&   \        4       V n        \        P	                  R4       M:\        V P                  \        4      '       d   \        R/ V P                  B V n        V P                  f&   \        4       V n        \        P	                  R4       M:\        V P                  \        4      '       d   \        R/ V P                  B V n        \        SV `(  ! R/ VB  R# )Útext_config_dictNÚvision_config_dictzV`text_config` is `None`. initializing the `BridgeTowerTextConfig` with default values.zZ`vision_config` is `None`. initializing the `BridgeTowerVisionConfig` with default values.r$   )Úpopr3   r1   ÚloggerÚinfoÚ
isinstanceÚdictr
   r   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ_Ú	__class__s   &, €r    rS   ÚBridgeTowerConfig.__post_init__“   sÏ   ø€ à�J‰JÐ)¨4Ó0ˆØ�J‰JÐ+¨TÓ2ˆà×ÑÒ#Ü4Ó6ˆDÔÜ�K‰KÐpÕqÜ˜×(Ñ(¬$×/Ò/Ü4ÑH°t×7GÑ7GÑHˆDÔà×ÑÒ%Ü!8Ó!:ˆDÔÜ�K‰KÐtÕuÜ˜×*Ñ*¬D×1Ò1Ü!8Ñ!N¸4×;MÑ;MÑ!NˆDÔä‰ÒÑ' Ô'r#   c                ó  <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[S[,          ;R&   S[;R&   S[ ;R&   S[;R&   S[;R&   S[;R	&   S[ ;R
&   S[ ;R&   S[S[,          R,          ;R&   S[S[,          R,          ;R&   # )r   Ú$share_cross_modal_transformer_layersr9   r   r   r   Úshare_link_tower_layersÚlink_tower_typer7   r   Útie_word_embeddingsÚ"init_layernorm_from_vision_encoderNr3   r
   )r   rD   r   r   rQ   r   )r   r   s   "€r    r!   ÚBridgeTowerConfig.__annotate__f   sà   ø‡ ‚ ñ> +/Ñ5ñ? ñ@ ÑñA ñB ÑñC ñD ¡�Ñ'ñE ñF Ñ!ñG ñH "Ñ)ñI ñJ Ñ ñK ñL Ñ!ñM ñN ÑñO ñP Ñ%ñQ ñR )-Ñ4ñS ñT Ñ(Õ(¨4Õ/Ñ6ñU ñV Ñ*Õ*¨TÕ1Ñ8òW r#   )r3   r
   )r%   r&   r'   r(   r)   r*   r1   r   Úsub_configsrZ   r9   r   r   r   r[   r\   r7   r   r]   r^   r3   r
   rS   r,   r-   r.   Ú__classcell__)rW   r   s   @@r    rG   rG   f   sv   ù‡ € ñð2 €JØ Ð"7¸ÐJaÐb€Kà15Ð(Ø€JØ€KØ&'ÐØ!€NØ$)ÐØ €OØ!ÐØÐØ %ÐØ/4Ð&Ø26€KØ48€Mõ(÷[ … r#   rG   N)rG   r1   r   )r)   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   Ú
get_loggerr%   rN   r   r1   rG   Ú__all__r$   r#   r    Ú<module>rg      s®   ðñ &å .å 3ß ,ð 
×	Ò	˜HÓ	%€ñ Ð9Ô:Øô!$Ð.ó !$ó ó ;ð!$ñH Ð9Ô:Øô"&Ð,ó "&ó ó ;ð"&ñJ Ð9Ô:Øô<(Ð(ó <(ó ó ;ð<(ò~ T‚r#   