Ë
    ÜÓ^j»  ã                   óž   — 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y)é    )Ústricté   )ÚPreTrainedConfig)Úauto_docstringz&PaddlePaddle/SLANeXt_wired_safetensors)Ú
checkpointc                   ó<  — 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"<   y#)$Ú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%   © ó    ú|/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/slanext/configuration_slanext.pyr	   r	      sç   … ñð &€OØ€K�ÓØ€O�SÓØÐ�sÓØ!Ð˜Ó!Ø€L�#ÓØ€J�ÓØ46€J��d˜3‘i‘ %¨¨S¨¡/Ñ1Ó6Ø€J�ÓØ!€N�EÓ!Ø%(Ð�u˜s‘{Ó(Ø$Ð�uÓ$Ø€HˆdÓØ€K�ÓØ€K�ÓØ€K�ÓØ7DÐ˜˜c™ U¨3°¨8¡_Ñ4Ó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        «       | _         n4t        | j                   t        «      rt        di | j                   ¤Ž| _         t	        ‰| �  di |¤Ž y )Nr2   )r
   r	   Ú
isinstanceÚdictÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €r4   rA   zSLANeXtConfig.__post_init___   sP   ø€ Ø×ÑÐ%Ü!4Ó!6ˆDÕÜ˜×*Ñ*¬DÔ1Ü!4Ñ!J°t×7IÑ7IÑ!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   sm   ø… ñð  €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      sr   ðõ, /å 3Ý #ñ ÐCÔDØô!Ð*ó !ó ó Eð!ñH ÐCÔDØô (Ð$ó  (ó ó Eð (ðF Ð
�r3   