§
    ‚Štj»  ã                   óÐ   — d dl mZ ddlmZ ddlmZ  ed¬¦  «        e G d„ de¦  «        ¦   «         ¦   «         Z ed¬¦  «        e G d	„ d
e¦  «        ¦   «         ¦   «         Zd
gZdS )é    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringz&PaddlePaddle/SLANeXt_wired_safetensors)Ú
checkpointc                   óV  — e Zd ZU dZdZ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e         z  eeef         z  ed<   dZeed<   dZeed<   dZee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         eedf         z  ed <   d!Zeed"<   d#S )$ÚSLANeXtVisionConfiga¾  
    output_channels (`int`, *optional*, defaults to 256):
        Dimensionality of the output channels in the Patch Encoder.
    use_abs_pos (`bool`, *optional*, defaults to `True`):
        Whether to use absolute position embedding.
    use_rel_pos (`bool`, *optional*, defaults to `True`):
        Whether to use relative position embedding.
    window_size (`int`, *optional*, defaults to 14):
        Window size for relative position.
    global_attn_indexes (`list[int]`, *optional*, defaults to `[2, 5, 8, 11]`):
        The indexes of the global attention layers.
    mlp_dim (`int`, *optional*, defaults to 3072):
        The dimensionality of the MLP layer in the Transformer encoder.
    Úvision_configi   Úhidden_sizeé   Úoutput_channelsé   Únum_hidden_layersÚnum_attention_headsr   Únum_channelsé   Ú
image_sizeé   Ú
patch_sizeÚgeluÚ
hidden_actg�íµ ÷Æ°>Úlayer_norm_epsg        Úattention_dropoutg»½×Ùß|Û=Úinitializer_rangeTÚqkv_biasÚuse_abs_posÚuse_rel_posé   Úwindow_size)é   é   é   é   .Úglobal_attn_indexesi   Úmlp_dimN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úbase_config_keyr   ÚintÚ__annotations__r   r   r   r   r   r   ÚlistÚtupler   Ústrr   Úfloatr   r   r   Úboolr   r   r   r$   r%   © ó    úo/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/models/slanext/configuration_slanext.pyr	   r	      sb  € € € € € € ðð ð &€OØ€K�ÐÐÑØ€O�SÐÐÑØÐ�sÐÐÑØ!Ð˜Ð!Ð!Ñ!Ø€L�#ÐÐÑØ€J�ÐÐÑØ46€J��d˜3”i‘ %¨¨S¨¤/Ñ1Ð6Ð6Ñ6Ø€J�ÐÐÑØ!€N�EÐ!Ð!Ñ!Ø%(Ð�u˜s‘{Ð(Ð(Ñ(Ø$Ð�uÐ$Ð$Ñ$Ø€HˆdÐÐÑØ€K�ÐÐÑØ€K�ÐÐÑØ€K�ÐÐÑØ7DÐ˜˜cœ U¨3°¨8¤_Ñ4ÐDÐDÑDØ€GˆSÐÐÑÐÐr3   r	   c                   ó�   ‡ — e Zd ZU dZdZdeiZ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<   ˆ fd„Zˆ xZS )ÚSLANeXtConfigaÖ  
    vision_config (`dict` or [`SLANeXtVisionConfig`], *optional*):
        Configuration for the vision encoder. If `None`, a default [`SLANeXtVisionConfig`] is used.
    post_conv_in_channels (`int`, *optional*, defaults to 256):
        Number of input channels for the post-encoder convolution layer.
    post_conv_out_channels (`int`, *optional*, defaults to 512):
        Number of output channels for the post-encoder convolution layer.
    out_channels (`int`, *optional*, defaults to 50):
        Vocabulary size for the table structure token prediction head, i.e., the number of distinct structure
        tokens the model can predict.
    hidden_size (`int`, *optional*, defaults to 512):
        Dimensionality of the hidden states in the attention GRU cell and the structure/location prediction heads.
    max_text_length (`int`, *optional*, defaults to 500):
        Maximum number of autoregressive decoding steps (tokens) for the structure and location decoder.
    Úslanextr
   Nr   Úpost_conv_in_channelsr   Úpost_conv_out_channelsé2   Úout_channelsr   iô  Úmax_text_lengthc                 óÐ   •— | j         €t          ¦   «         | _         n0t          | j         t          ¦  «        rt          di | j         ¤Ž| _          t	          ¦   «         j        di |¤Ž d S )Nr2   )r
   r	   Ú
isinstanceÚdictÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €r4   rA   zSLANeXtConfig.__post_init___   so   ø€ ØÔÐ%Ý!4Ñ!6Ô!6ˆDÔÐÝ˜Ô*­DÑ1Ô1ð 	KÝ!4Ð!JÐ!J°tÔ7IÐ!JÐ!JˆDÔØ�‰ŒÔÐ'Ð' Ð'Ð'Ð'Ð'Ð'r3   )r&   r'   r(   r)   Ú
model_typer	   Úsub_configsr
   r?   r,   r8   r+   r9   r;   r   r<   rA   Ú__classcell__)rD   s   @r4   r6   r6   B   sÃ   ø€ € € € € € ðð ð  €JØ"Ð$7Ð8€Kà7;€M�4Ð-Ñ-°Ñ4Ð;Ð;Ñ;Ø!$Ð˜3Ð$Ð$Ñ$Ø"%Ð˜CÐ%Ð%Ñ%Ø€L�#ÐÐÑØ€K�ÐÐÑØ€O�SÐÐÑð(ð (ð (ð (ð (ð (ð (ð (ð (r3   r6   N)	Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r	   r6   Ú__all__r2   r3   r4   ú<module>rL      sï   ðð, /Ð .Ð .Ð .Ð .Ð .à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø #Ð #Ð #Ð #Ð #Ð #ð €ÐCÐDÑDÔDØð!ð !ð !ð !ð !Ð*ñ !ô !ñ „ñ EÔDð!ðH €ÐCÐDÑDÔDØð (ð  (ð  (ð  (ð  (Ð$ñ  (ô  (ñ „ñ EÔDð (ðF Ð
€€€r3   