
    Z j                         S SK Jr  SSKJr  SSKJr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/rg)    )strict   )PreTrainedConfig)auto_docstringlogging   )CONFIG_MAPPING
AutoConfigz$HuggingFaceTB/SmolVLM2-2.2B-Instruct)
checkpointc                       \ 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)SmolVLMVisionConfig!   aS  
Example:

```python
>>> from transformers.models.smolvlm.modeling_smolvlm import SmolVLMVisionTransformer
>>> from transformers.models.smolvlm.configuration_smolvlm import SmolVLMVisionConfig

>>> # Initializing a SmolVLMVisionConfig with google/siglip-so400m-patch14-384 style configuration
>>> configuration = SmolVLMVisionConfig()

>>> # Initializing a SmolVLMVisionTransformer (with random weights) from the google/siglip-so400m-patch14-384 style configuration
>>> model = SmolVLMVisionTransformer(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```smolvlm_visionvision_configi  hidden_sizei   intermediate_size   num_hidden_layers   num_attention_headsr   num_channels   
image_size    
patch_sizegelu_pytorch_tanh
hidden_actgư>layer_norm_epsg        attention_dropoutg{Gz?initializer_range N)__name__
__module____qualname____firstlineno____doc__
model_typebase_config_keyr   int__annotations__r   r   r   r   r   listtupler   r   strr   floatr   r    __static_attributes__r!       ڂ/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/transformers/models/smolvlm/configuration_smolvlm.pyr   r   !   s    " "J%OK!s!s!!L#47Jd3i%S/1746Jd3i%S/16)J) NE %(us{(#u#r0   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'   Sr\\-  S-  \S'   Sr\\S'   Sr\S-  \S'   U 4S jrSrU =r$ )SmolVLMConfigE   a  
scale_factor (`int`, *optional*, defaults to 2):
    The scale factor for the image encoder.

Example:
```python
>>> from transformers import SmolVLMModel, SmolVLMConfig
>>> # Initializing configuration
>>> configuration = SmolVLMConfig()
>>> # Initializing a model from the configuration
>>> model = SmolVLMModel(configuration)
>>> # Accessing the model configuration
>>> configuration = model.config
```smolvlm)text_configr   T	use_cachei image_token_idFtie_word_embeddingsNr   r6   r   scale_factori pad_token_idc                 b  > U R                   c%  [        5       U l         [        R                  S5        O9[	        U R                   [
        5      (       a  [        S0 U R                   D6U l         [	        U R                  [
        5      (       aU  U R                  R                  SS5      U R                  S'   [        U R                  S      " S0 U R                  D6U l        O?U R                  c2  [        R                  S5        [        S   " SU R                  S9U l        [        TU ],  " S0 UD6  g )Nz2vision_config is None, using default vision configr'   llamaz4text_config is None, using default Llama text configgh㈵>)rms_norm_epsr;   r!   )r   r   loggerinfo
isinstancedictr6   getr	   r;   super__post_init__)selfkwargs	__class__s     r1   rE   SmolVLMConfig.__post_init__b   s    %!4!6DKKLM**D11!4!Jt7I7I!JDd&&---1-=-=-A-A,PW-XD\*-d.>.>|.LMaPTP`P`aD%KKNO-g6!!.. D
 	''r0   )r"   r#   r$   r%   r&   r'   r
   r   sub_configsr7   boolr*   r8   r)   r9   r   rB   r   r6   r:   r;   rE   r/   __classcell__)rH   s   @r1   r3   r3   E   s     J",?RSKIt NC  %%48M4**T1826K((4/6L#&L#*&( (r0   r3   N)huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r   autor	   r
   
get_loggerr"   r?   r   r3   __all__r!   r0   r1   <module>rS      s   . / 3 , - 
		H	% AB$* $  C$D AB,($ ,(  C,(^ !/
2r0   