
    Z jR                         S r SSKJr  SSKJr  SSKJrJr  \R                  " \	5      r
\" SS9\ " S S	\5      5       5       r\" SS9\ " S
 S\5      5       5       r\" SS9\ " S S\5      5       5       r/ SQrg)zBlip model configuration    )strict   )PreTrainedConfig)auto_docstringloggingzSalesforce/blip-vqa-base)
checkpointc                   x   \ rS 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r\S-  \	S'   Sr\\\   -  S-  \	S '   S!r\S-  \	S"'   S#r\S-  \	S$'   S%r\\	S&'   S%r\\	S''   S%r \\	S('   Sr!\\	S)'   S*r"g)+BlipTextConfig   a9  
label_smoothing (float, *optional*):
    A float in [0.0, 1.0]. Specifies the amount of smoothing when computing the loss, where 0.0 means no smoothing. The targets
    become a mixture of the original ground truth and a uniform distribution as described in
    `Rethinking the Inception Architecture for Computer Vision <https://huggingface.co/papers/1512.00567>`__. Default: :math:`0.0`.

Example:

```python
>>> from transformers import BlipTextConfig, BlipTextModel

>>> # Initializing a BlipTextConfig with Salesforce/blip-vqa-base style configuration
>>> configuration = BlipTextConfig()

>>> # Initializing a BlipTextModel (with random weights) from the Salesforce/blip-vqa-base style configuration
>>> model = BlipTextModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```blip_text_modeltext_configi<w  
vocab_size   hidden_sizeencoder_hidden_size   intermediate_sizeprojection_dim   num_hidden_layers   num_attention_heads   max_position_embeddingsgelu
hidden_actg-q=layer_norm_eps        hidden_dropout_probattention_probs_dropout_prob{Gz?initializer_rangei:w  Nbos_token_id   eos_token_idr   pad_token_idf   sep_token_idT
is_decoder	use_cachetie_word_embeddingslabel_smoothing )#__name__
__module____qualname____firstlineno____doc__
model_typebase_config_keyr   int__annotations__r   r   r   r   r   r   r   r   strr   floatr   r    r"   r#   r%   listr&   r(   r)   boolr*   r+   r,   __static_attributes__r-       |/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/transformers/models/blip/configuration_blip.pyr
   r
      s   * #J#OJK""!s!NCs  #&S&J!NE!'**03 %#+3#u#$L#*$+,L#S	/D(, L#* "L#*"JIt $$ OU r<   r
   c                       \ rS 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\\\   -  \\\4   -  \	S'   Sr\\\   -  \\\4   -  \	S'   Sr\\	S'   Sr\\	S'   Sr\\-  \	S'   Sr\\	S'   Srg)BlipVisionConfigK   a  
Example:

```python
>>> from transformers import BlipVisionConfig, BlipVisionModel

>>> # Initializing a BlipVisionConfig with Salesforce/blip-vqa-base style configuration
>>> configuration = BlipVisionConfig()

>>> # Initializing a BlipVisionModel (with random weights) from the Salesforce/blip-vqa-base style configuration
>>> model = BlipVisionModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```blip_vision_modelvision_configr   r   r   r   r   r   r   r   r   i  
image_size   
patch_sizer   r   gh㈵>r   r   attention_dropoutg|=r"   r-   N)r.   r/   r0   r1   r2   r3   r4   r   r5   r6   r   r   r   r   rC   r9   tuplerE   r   r7   r   r8   rF   r"   r;   r-   r<   r=   r?   r?   K   s      %J%OK!s!NCs!!47Jd3i%S/1746Jd3i%S/16J NE %(us{($u$r<   r?   c                      ^  \ rS rSr% SrSr\\S.rSr	\
\-  S-  \S'   Sr\
\-  S-  \S'   Sr\\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$ )
BlipConfign   a  
image_text_hidden_size (`int`, *optional*, defaults to 256):
    Dimensionality of the hidden state of the image-text fusion layer.
label_smoothing (float, *optional*):
    A float in [0.0, 1.0]. Specifies the amount of smoothing when computing the loss, where 0.0 means no smoothing. The targets
    become a mixture of the original ground truth and a uniform distribution as described in
    `Rethinking the Inception Architecture for Computer Vision <https://huggingface.co/papers/1512.00567>`__. Default: :math:`0.0`.

Example:

```python
>>> from transformers import BlipConfig, BlipModel

>>> # Initializing a BlipConfig with Salesforce/blip-vqa-base style configuration
>>> configuration = BlipConfig()

>>> # Initializing a BlipPModel (with random weights) from the Salesforce/blip-vqa-base style configuration
>>> model = BlipModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config

>>> # We can also initialize a BlipConfig from a BlipTextConfig and a BlipVisionConfig

>>> # Initializing a BLIPText and BLIPVision configuration
>>> config_text = BlipTextConfig()
>>> config_vision = BlipVisionConfig()

>>> config = BlipConfig(text_config=config_text, vision_config=config_vision)
```blip)r   rB   Nr   rB   r   r   g/L
F@logit_scale_init_value   image_text_hidden_sizer   r,   Tr+   g      ?initializer_factorr!   r"   c                   > U R                   c%  [        5       U l         [        R                  S5        O9[	        U R                   [
        5      (       a  [        S0 U R                   D6U l         U R                  c%  [        5       U l        [        R                  S5        O9[	        U R                  [
        5      (       a  [        S0 U R                  D6U l        U R                  R                  U R                   l	        [        TU ],  " S0 UD6  g )NzO`text_config` is `None`. Initializing the `BlipTextConfig` with default values.zS`vision_config` is `None`. initializing the `BlipVisionConfig` with default values.r-   )r   r
   loggerinfo
isinstancedictrB   r?   r   r   super__post_init__)selfkwargs	__class__s     r=   rV   BlipConfig.__post_init__   s    #-/DKKij(($//-A0@0@AD%!1!3DKKmn**D11!1!GD4F4F!GD/3/A/A/M/M,''r<   )r.   r/   r0   r1   r2   r3   r
   r?   sub_configsr   rT   r   r6   rB   r   r5   rL   r8   rN   r,   r+   r:   rO   r"   rV   r;   __classcell__)rY   s   @r=   rI   rI   n   s    > J"0CSTK26K((4/648M4**T18NC$*E*"%C% OU  $$ ###u#( (r<   rI   )rI   r
   r?   N)r2   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r   
get_loggerr.   rQ   r
   r?   rI   __all__r-   r<   r=   <module>rb      s     . 3 , 
		H	% 56-!% -!  7-!` 56%' %  7%B 56<(! <(  7<(~ ?r<   