
    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"Data2VecVision model configuration    )strict   )PreTrainedConfig)auto_docstringzfacebook/data2vec-vision-base)
checkpointc                      \ 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\\\   -  \\\4   -  \S'   Sr\\\   -  \\\4   -  \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%4   -  \S&'   S'r!\\   \\S%4   -  \S('   S"r"\\S)'   S*r#\\S+'   S,r$\\S-'   S.r%\\S/'   Sr&\\S0'   S1r'\\S2'   S3r(g4)5Data2VecVisionConfig   a  
use_mask_token (`bool`, *optional*, defaults to `False`):
    Whether to use a mask token for masked image modeling.
use_shared_relative_position_bias (`bool`, *optional*, defaults to `False`):
    Whether to use the same relative position embeddings across all self-attention layers of the Transformer.
use_mean_pooling (`bool`, *optional*, defaults to `True`):
    Whether to mean pool the final hidden states of the patches instead of using the final hidden state of the
    CLS token, before applying the classification head.
pool_scales (`tuple[int]`, *optional*, defaults to `[1, 2, 3, 6]`):
    Pooling scales used in Pooling Pyramid Module applied on the last feature map.
use_auxiliary_head (`bool`, *optional*, defaults to `True`):
    Whether to use an auxiliary head during training.
auxiliary_loss_weight (`float`, *optional*, defaults to 0.4):
    Weight of the cross-entropy loss of the auxiliary head.
auxiliary_channels (`int`, *optional*, defaults to 256):
    Number of channels to use in the auxiliary head.
auxiliary_num_convs (`int`, *optional*, defaults to 1):
    Number of convolutional layers to use in the auxiliary head.
auxiliary_concat_input (`bool`, *optional*, defaults to `False`):
    Whether to concatenate the output of the auxiliary head with the input before the classification layer.

Example:

```python
>>> from transformers import Data2VecVisionConfig, Data2VecVisionModel

>>> # Initializing a Data2VecVision data2vec_vision-base-patch16-224-in22k style configuration
>>> configuration = Data2VecVisionConfig()

>>> # Initializing a model (with random weights) from the data2vec_vision-base-patch16-224-in22k style configuration
>>> model = Data2VecVisionModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```zdata2vec-visioni   hidden_size   num_hidden_layersnum_attention_headsi   intermediate_sizegelu
hidden_actg        hidden_dropout_probattention_probs_dropout_probg{Gz?initializer_rangeg-q=layer_norm_eps   
image_size   
patch_sizer   num_channelsFuse_mask_token use_absolute_position_embeddingsuse_relative_position_bias!use_shared_relative_position_biasg?layer_scale_init_valuedrop_path_rateTuse_mean_pooling)r            .out_indices)      r      pool_scalesuse_auxiliary_headg?auxiliary_loss_weight   auxiliary_channelsr&   auxiliary_num_convsauxiliary_concat_input   semantic_loss_ignore_index N))__name__
__module____qualname____firstlineno____doc__
model_typer   int__annotations__r   r   r   r   strr   floatr   r   r   r   listtupler   r   r   boolr   r   r   r   r    r!   r%   r)   r*   r+   r-   r.   r/   r1   __static_attributes__r2       ڋ/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/transformers/models/data2vec/configuration_data2vec_vision.pyr	   r	      s   "H #JKs!!!s!J'**03 %#+3#u#!NE!47Jd3i%S/1746Jd3i%S/16L# ND -2$d2',,.3%t3$'E'"%NECK%!d!/<KcU38_,</;KcU38_,;###&5&!!  #(D(&))rA   r	   N)	r7   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r2   rA   rB   <module>rG      sK    ) . 3 # :;A*+ A*  <A*H "
"rA   