Ë
    ÜÓ^j/  ã                   ó~   — d dl mZ ddlmZ ddlmZ ddlmZ ddlm	Z	  ed¬	«      e G d
„ de«      «       «       Z
dgZy)é    )Ústricté   )Ú%consolidate_backbone_kwargs_to_config)ÚPreTrainedConfig)Úauto_docstringé   )Ú
AutoConfigz$PaddlePaddle/SLANet_plus_safetensors)Ú
checkpointc                   ó¬   ‡ — e Zd ZU dZdZdei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z  dz  e	d<   dZee	d<   dZee	d<   dZee	d<   ˆ fd„Zˆ xZS )ÚSLANetConfiga™  
    post_conv_out_channels (`int`, *optional*, defaults to 96):
        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 256):
        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.
    csp_kernel_size (`int`, *optional*, defaults to 5):
        The kernel size of the Cross Stage Partial (CSP) layer.
    csp_num_blocks (`int`, *optional*, defaults to 1):
        Number of blocks within the Cross Stage Partial (CSP) layer.
    ÚslanetÚbackbone_configé`   Úpost_conv_out_channelsé2   Úout_channelsé   Úhidden_sizeiô  Úmax_text_lengthNÚ	hardswishÚ
hidden_acté   Úcsp_kernel_sizeé   Úcsp_num_blocksc           
      óx   •— t        d| j                  ddg d¢g d¢ddœdœ|¤Ž\  | _        }t        ‰| �  di |¤Ž y )	NÚpp_lcnetr   )Ústage2Ústage3Ústage4Ústage5)r   r   é   r   é   )ÚscaleÚout_featuresÚout_indicesÚdivisor)r   Údefault_config_typeÚdefault_config_kwargs© )r   r   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €úz/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/slanet/configuration_slanet.pyr,   zSLANetConfig.__post_init__>   sS   ø€ Ü'Lð 
(
Ø ×0Ñ0Ø *àÚ HÚ+Øñ	#ñ
(
ð ñ
(
Ñ$ˆÔ˜fô 	‰ÑÑ' Ó'ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer	   Úsub_configsr   ÚintÚ__annotations__r   r   r   r   Údictr   r   Ústrr   r   r,   Ú__classcell__)r/   s   @r0   r   r      s   ø… ñð  €Jà$ jÐ1€KØ"$Ð˜CÓ$Ø€L�#ÓØ€K�ÓØ€O�SÓØ6:€O�TÐ,Ñ,¨tÑ3Ó:à!€J�Ó!Ø€O�SÓØ€N�CÓ÷(ð (r1   r   N)Úhuggingface_hub.dataclassesr   Úbackbone_utilsr   Úconfiguration_utilsr   Úutilsr   Úautor	   r   Ú__all__r*   r1   r0   ú<module>rC      sL   ðõ, /å CÝ 3Ý #Ý ñ ÐAÔBØô*(Ð#ó *(ó ó Cð*(ðZ Ð
�r1   