
    ^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_channels2   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1K"$C$L#KOS6:OT,,t3:!J!OSNC( (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   