
    Z j                     p    S SK Jr  SSKJr  SSKJr  SSKJrJr  \" SS9\ " S	 S
\5      5       5       r	S
/r
g)    )strict   )PreTrainedConfig)auto_docstring   )CONFIG_MAPPING
AutoConfigzzai-org/GLM-4.1V-9B-Thinking)
checkpointc                      ^  \ rS 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$ )Glm46VConfig   aX  
image_start_token_id (`int`, *optional*, defaults to 151339):
    The image start token index to encode the start of image.
image_end_token_id (`int`, *optional*, defaults to 151340):
    The image end token index to encode the end of image.
video_start_token_id (`int`, *optional*, defaults to 151361):
    The video start token index to encode the start of video.
video_end_token_id (`int`, *optional*, defaults to 151362):
    The video end token index to encode the end of video.

```python
>>> from transformers import Glm46VForConditionalGeneration, Glm46VConfig

>>> # Initializing a GLM-4.6V style configuration
>>> configuration = Glm46VConfig()

>>> # Initializing a model from the GLM-4.6V style configuration
>>> model = Glm4vForConditionalGeneration(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```glm46v)text_configvision_configpast_key_valuesNr   r   i/O image_token_idi0O video_token_idi+O image_start_token_idi,O image_end_token_idiAO video_start_token_idiBO video_end_token_idFtie_word_embeddingsc                 v  > [        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                  c  [        S   " 5       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
                  c  [        S   " 5       U l        [        TU ]  " S0 UD6  g )N
model_typeglm4v_vision
glm4v_text )
isinstancer   dictgetr   r   super__post_init__)selfkwargs	__class__s     ڀ/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/transformers/models/glm46v/configuration_glm46v.pyr"   Glm46VConfig.__post_init__E   s   d(($///3/A/A/E/ElTb/cD|,!/0B0B<0P!Q!gTXTfTf!gD'!/!?!ADd&&---1-=-=-A-A,P\-]D\*-d.>.>|.LMaPTP`P`aD%-l;=D''    )__name__
__module____qualname____firstlineno____doc__r   r	   sub_configskeys_to_ignore_at_inferencer   r   r   __annotations__r   r   intr   r   r   r   r   r   boolr"   __static_attributes____classcell__)r%   s   @r&   r   r      s    . J",zJK#4"526K((4/648M4**T18 NC  NC  &#&$$ &#&$$ %%( (r(   r   N)huggingface_hub.dataclassesr   configuration_utilsr   utilsr   autor   r	   r   __all__r   r(   r&   <module>r:      sH   , / 3 # - 9:3(# 3(  ;3(l 
r(   