Ë
    ÛÓ^j’  ã                   óv   — d dl mZ ddlmZ ddlmZ ddlmZmZ  ed¬«      e G d	„ d
e«      «       «       Z	d
gZ
y)é    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringé   )ÚCONFIG_MAPPINGÚ
AutoConfigzzai-org/GLM-4.1V-9B-Thinking)Ú
checkpointc                   óÎ   ‡ — e Zd ZU dZdZeedœZdgZdZe	e
z  dz  ed<   dZe	e
z  dz  ed<   dZeed	<   d
Zeed<   dZeed<   dZeed<   dZeed<   dZeed<   dZeed<   ˆ fd„Zˆ xZS )ÚGlm46VConfigaœ  
    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                 óT  •— t        | j                  t        «      rT| j                  j                  dd«      | j                  d<   t	        | j                  d      di | j                  ¤Ž| _        n| j                  €t	        d   «       | _        t        | j
                  t        «      rT| j
                  j                  dd«      | j
                  d<   t	        | j
                  d      di | j
                  ¤Ž| _        n| j
                  €t	        d   «       | _        t        ‰| �  di |¤Ž y )NÚ
model_typeÚglm4v_visionÚ
glm4v_text© )Ú
isinstancer   ÚdictÚgetr   r   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €úz/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/glm46v/configuration_glm46v.pyr!   zGlm46VConfig.__post_init__E   s  ø€ Ü�d×(Ñ(¬$Ô/Ø/3×/AÑ/A×/EÑ/EÀlÐTbÓ/cˆD×Ñ˜|Ñ,Ü!/°×0BÑ0BÀ<Ñ0PÑ!QÑ!gÐTX×TfÑTfÑ!gˆDÕØ×ÑÐ'Ü!/°Ñ!?Ó!AˆDÔä�d×&Ñ&¬Ô-Ø-1×-=Ñ-=×-AÑ-AÀ,ÐP\Ó-]ˆD×Ñ˜\Ñ*Ü-¨d×.>Ñ.>¸|Ñ.LÑMÑaÐPT×P`ÑP`ÑaˆDÕØ×ÑÐ%Ü-¨lÑ;Ó=ˆDÔä‰ÑÑ' Ó'ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r	   Úsub_configsÚkeys_to_ignore_at_inferencer   r   r   Ú__annotations__r   r   Úintr   r   r   r   r   r   Úboolr!   Ú__classcell__)r$   s   @r%   r   r      s¡   ø… ñð. €JØ",¸zÑJ€KØ#4Ð"5Ðà26€K�Ð(Ñ(¨4Ñ/Ó6Ø48€M�4Ð*Ñ*¨TÑ1Ó8Ø €N�CÓ Ø €N�CÓ Ø &Ð˜#Ó&Ø$Ð˜Ó$Ø &Ð˜#Ó&Ø$Ð˜Ó$Ø %Ð˜Ó%÷(ð (r&   r   N)Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   Úautor   r	   r   Ú__all__r   r&   r%   ú<module>r6      sH   ðõ, /å 3Ý #ß -ñ Ð9Ô:Øô3(Ð#ó 3(ó ó ;ð3(ðl Ð
�r&   